Support floating ip associate/disassociate
Bug #1701079 reported by
hongbin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
Right now, OSC has the following commands:
server add floating ip Add floating IP address to server
server remove floating ip Remove floating IP address from server
These commands only work for Nova but couldn't work in general (i.e. add floating ip to Kuryr-enabled container). This bug suggested to bring the following Neutron commands to OSC:
floatingip-
floatingip-
To post a comment you must log in.
I was also hit an error with following command:
$ openstack server add floating ip demo1 $(openstack floating ip create public1 -f value -c floating_ ip_address) --debug
[Error] lib/python2. 7/dist- packages/ cliff/app. py", line 400, in run_subcommand parsed_ args) lib/python2. 7/dist- packages/ osc_lib/ command/ command. py", line 41, in run parsed_ args) lib/python2. 7/dist- packages/ cliff/command. py", line 184, in run action( parsed_ args) or 0 lib/python2. 7/dist- packages/ openstackclient /compute/ v2/server. py", line 267, in take_action add_floating_ ip(parsed_ args.ip_ address, lib/python2. 7/dist- packages/ novaclient/ base.py" , line 180, in __getattr__ lib/python2. 7/dist- packages/ osc_lib/ shell.py" , line 134, in run Shell, self).run(argv) lib/python2. 7/dist- packages/ cliff/app. py", line 279, in run subcommand( remainder) lib/python2. 7/dist- packages/ osc_lib/ shell.py" , line 169, in run_subcommand Shell, self).run_ subcommand( argv) lib/python2. 7/dist- packages/ cliff/app. py", line 400, in run_subcommand parsed_ args) lib/python2. 7/dist- packages/ osc_lib/ command/ command. py", line 41, in run parsed_ args) lib/python2. 7/dist- packages/ cliff/command. py", line 184, in run action( parsed_ args) or 0 lib/python2. 7/dist- packages/ openstackclient /compute/ v2/server. py", line 267, in take_action add_floating_ ip(parsed_ args.ip_ address, lib/python2. 7/dist- packages/ novaclient/ base.py" , line 180, in __getattr__
..(snip)...
add_floating_ip
Traceback (most recent call last):
File "/usr/local/
result = cmd.run(
File "/usr/local/
return super(Command, self).run(
File "/usr/local/
return_code = self.take_
File "/usr/local/
server.
File "/usr/local/
raise AttributeError(k)
AttributeError: add_floating_ip
clean_up AddFloatingIP: add_floating_ip
Traceback (most recent call last):
File "/usr/local/
ret_val = super(OpenStack
File "/usr/local/
result = self.run_
File "/usr/local/
ret_value = super(OpenStack
File "/usr/local/
result = cmd.run(
File "/usr/local/
return super(Command, self).run(
File "/usr/local/
return_code = self.take_
File "/usr/local/
server.
File "/usr/local/
raise AttributeError(k)
AttributeError: add_floating_ip