Server.get_floating_ips() method is broken

Bug #1514449 reported by Stanislaw Szydlo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Confirmed
Medium
Unassigned

Bug Description

In openstack/compute/v2/server.py method get_floating_ips() is broken.

It's trying to get the addresses associated with the server by the name of the server.
This will return following error:

Traceback (most recent call last):
  File "<pyshell#46>", line 1, in <module>
    serv.get_floating_ips()
  File "C:\Python27\lib\site-packages\openstack\compute\v2\server.py", line 146, in get_floating_ips
    addresses = self.addresses[self.name]
KeyError: u'test'

'addresses' dict keys are names of the networks associated to the instance not the instance name.

Additionally multiple networks should be supported and unit tests must be corrected.

Revision history for this message
Brian Curtin (brian.curtin) wrote :

This currently isn't exposed in the proxy so it requires directly using the resource layer. Targeting to 1.1.

Changed in python-openstacksdk:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 1.1
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.