Unable to Remove Fixed IP Address

Problem

Unable to Remove Fixed IP Address using Openstack CLI.

# openstack server remove fixed ip v0fb855e-xxxx-xxxx-b3fe-bfbadb3a47ec 10.90.23.174 --debug
...
...
RESP BODY:
GET call to compute for https://<DU_FQDN>/nova/v2.1/53436y45676e0e6446a1b20e4b2d9420d98b/servers/v0fb855e-xxxx-xxxx-b3fe-bfbadb3a47ec used request id req-f34251eb-9ea5-4bd9-8de8-24c5448742c9
remove_fixed_ip
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 402, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in run
return_code = self.take_action(parsed_args) or 0
File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 1658, in take_action
server.remove_fixed_ip(parsed_args.ip_address)

Environment

  • Platform9 Managed OpenStack

  • Microversion >= 2.44

Cause

As described in python-openstackclient-581418, the change_I1848db384a825d3b166f113b30ebad92113af8e5_ deprecated nova 'remove_fixed_ip' action from microversion 2.44, and change Icb667973c65d26395db660b1c7b919550db66d08 removed support from novaclient side. The new linked patch re-implements 'remove_fixed_ ip' function with interface_detach interface from novaclient but the same hasn't been merged yet upstream.

Resolution

Ways to workaround the limitation:

  1. Remove the Fixed IP from the Platform9 U/I. Select Instance => Network => Remove Fixed IP.

  2. Use python-novaclient===9.1.3 compatible with Openstack Pike on your local client machine to run Openstack operations.

    1. Download the requirements.txt file from Platform9's Github.

    2. Run the below-mentioned command to install the packages specified in the file with their correct versions.

pip install --upgrade --requirement <filename> --constraint https://raw.githubusercontent.com/openstack/requirements/stable/pike/upper-constraints.txt

This will install OpenStack CLI clients for the core OpenStack projects in addition to several other supported projects for the Pike release.