server add floating ip fails with "AttributeError: add_floating_ip"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
New
|
Undecided
|
Unassigned |
Bug Description
using the recent v10.0.0 novaclient, I am not able to use the following cli:
openstack --debug server add floating ip fip_vm_1 10.10.10.12
The --debug error is this:
add_floating_ip
Traceback (most recent call last):
File "/tmp/openstack
result = cmd.run(
File "/tmp/openstack
return super(Command, self).run(
File "/tmp/openstack
return_code = self.take_
File "/tmp/openstack
server.
File "/tmp/openstack
raise AttributeError(k)
AttributeError: add_floating_ip
clean_up AddFloatingIP: add_floating_ip
Traceback (most recent call last):
File "/tmp/openstack
ret_val = super(OpenStack
File "/tmp/openstack
result = self.run_
File "/tmp/openstack
ret_value = super(OpenStack
File "/tmp/openstack
result = cmd.run(
File "/tmp/openstack
return super(Command, self).run(
File "/tmp/openstack
return_code = self.take_
File "/tmp/openstack
server.
File "/tmp/openstack
raise AttributeError(k)
AttributeError: add_floating_ip
END return value: 1
downgrading to v9.0.0 (pip install --upgrade python-
problem.
basic steps I used to recreate:
openstack network create l3_ext_net
openstack subnet create --network l3_ext_net --subnet-range 41.0.0.0/24 l3_ext_sub
openstack server create fip_vm_1 --nic net-id=
openstack router add subnet l3_ext_router l3_ext_sub
openstack router set l3_ext_router --external-gateway external-net
openstack floating ip create external-net
openstack --debug server add floating ip fip_vm_1 10.10.10.12
this was noticed in automated CI for the OpenDaylight project yesterday (01/16/2017)
which I think corresponds with the recent version of novaclient. Example:
The error is raised because add_floating_ip has been removed from novaclient, openstackclient should remove related codes.