yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #54360
[Bug 1607350] [NEW] floating-ip info doesn't contaion information about instance if associated with nova network
Public bug reported:
[Summary]
floating ip info does not contain information about associated instance if nova-network is used.
behaviour was changed between 11.05.16 and 21.06.16
[Topo]
devstack all-in-one node
libvirt+qemu
nova-network
[Description and expect result]
floating ip info contains information about associated instance as in previous releases.
[Reproduceable or not]
reproduceable
[Recreate Steps]
0) source any credentials. Result is the same for demo credentials of devstack (user=demo project=demo)
and for admin credentials.
1) boot instance
nova boot --image cirros-0.3.4-x86_64-uec --flavor 1 ttt
2) create floating ip
nova floating-ip-create
3) associate floating-ip
nova floating-ip-associate ttt 172.24.4.1
4) list intsances
nova list
+--------------------------------------+------+--------+------------+-------------+------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+------------------------------+
| 8ad61db0-f388-4bc7-bfbd-728782a5b505 | ttt | ACTIVE | - | Running | private=10.0.0.4, 172.24.4.1 |
+--------------------------------------+------+--------+------------+-------------+------------------------------+
5) list floating ips
nova floating-ip-list
+----+------------+-----------+----------+--------+
| Id | IP | Server Id | Fixed IP | Pool |
+----+------------+-----------+----------+--------+
| 1 | 172.24.4.1 | - | - | public |
+----+------------+-----------+----------+--------+
[Root cause anlyze or debug inf]
- database contains information about floating ip and record has a correct id of fixed ip
- database contains informtaion about fixed ip and record has a correct instance uuid
nova 'os-floating-ips' rest api calls network_api.get_floating_ips_by_project
it calls objects.FloatingIPList.get_by_project
it retrieves floating ips from DB and calls obj_base.obj_make_list for each record
obj_make_list calls _from_db_object of passed type and creates FloatingIP object
_from_db_object takes 'fixed_ip' as expected attributes but only
FloatingIP.get_by_id passes it.
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1607350
Title:
floating-ip info doesn't contaion information about instance if
associated with nova network
Status in OpenStack Compute (nova):
New
Bug description:
[Summary]
floating ip info does not contain information about associated instance if nova-network is used.
behaviour was changed between 11.05.16 and 21.06.16
[Topo]
devstack all-in-one node
libvirt+qemu
nova-network
[Description and expect result]
floating ip info contains information about associated instance as in previous releases.
[Reproduceable or not]
reproduceable
[Recreate Steps]
0) source any credentials. Result is the same for demo credentials of devstack (user=demo project=demo)
and for admin credentials.
1) boot instance
nova boot --image cirros-0.3.4-x86_64-uec --flavor 1 ttt
2) create floating ip
nova floating-ip-create
3) associate floating-ip
nova floating-ip-associate ttt 172.24.4.1
4) list intsances
nova list
+--------------------------------------+------+--------+------------+-------------+------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+------------------------------+
| 8ad61db0-f388-4bc7-bfbd-728782a5b505 | ttt | ACTIVE | - | Running | private=10.0.0.4, 172.24.4.1 |
+--------------------------------------+------+--------+------------+-------------+------------------------------+
5) list floating ips
nova floating-ip-list
+----+------------+-----------+----------+--------+
| Id | IP | Server Id | Fixed IP | Pool |
+----+------------+-----------+----------+--------+
| 1 | 172.24.4.1 | - | - | public |
+----+------------+-----------+----------+--------+
[Root cause anlyze or debug inf]
- database contains information about floating ip and record has a correct id of fixed ip
- database contains informtaion about fixed ip and record has a correct instance uuid
nova 'os-floating-ips' rest api calls network_api.get_floating_ips_by_project
it calls objects.FloatingIPList.get_by_project
it retrieves floating ips from DB and calls obj_base.obj_make_list for each record
obj_make_list calls _from_db_object of passed type and creates FloatingIP object
_from_db_object takes 'fixed_ip' as expected attributes but only
FloatingIP.get_by_id passes it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1607350/+subscriptions
Follow ups