Nova API doesn't differentiate between fixed and floating IPs

Bug #909209 reported by Paul McMillan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

The Nova API doesn't provide a way to differentiate between fixed and floating IPs in the addresses property of an instance. The basic view method should return a flag indicating whether the IP is floating.

https://github.com/openstack/nova/blob/master/nova/api/openstack/v2/views/addresses.py#L34

Tags: v2-api-audit
Revision history for this message
Brian Waldon (bcwaldon) wrote :

I would consider adding it as a part of the os-floating-ips extension. As a workaround, you can get a list of allocated/assigned floating ips for your project from GET /<tenant>/os-floating-ips

Changed in nova:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Paul McMillan (paul-mcmillan) wrote :

If you look at the code, the core nova API is already returning floating IPs there, and knows exactly what they are. Either floating IPs are part of an extension, and so core nova shouldn't be returning them there, or the core nova API can pass that info along to the consumer.

https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/views/addresses.py#L43

Should I open a bug "nova core doesn't work without the os-floating-ips extension"?

tags: added: v2-api-audit
Revision history for this message
Joe Gordon (jogo) wrote :

Is this still valid?

Changed in nova:
status: Triaged → Incomplete
Sean Dague (sdague)
Changed in nova:
status: Incomplete → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.