← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1607350] Re: floating-ip info doesn't contain information about instance if associated (with nova network installation)

 

While this bug is correct, this feature has now been deprecated, and is
bug frozen.

** Changed in: nova
       Status: In Progress => Invalid

-- 
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 contain information about instance if
  associated (with nova network installation)

Status in OpenStack Compute (nova):
  Invalid

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


References