Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Unable to Remove Fixed IP Address
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Unable to Remove Fixed IP Address using Openstack CLI.
x
# 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-24c5448742c9remove_fixed_ipTraceback (most recent call last):File "/usr/lib/python2.7/site-packages/cliff/app.py", line 402, in run_subcommandresult = cmd.run(parsed_args)File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in runreturn super(Command, self).run(parsed_args)File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in runreturn_code = self.take_action(parsed_args) or 0File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 1658, in take_actionserver.remove_fixed_ip(parsed_args.ip_address)File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 180, in __getattr__raise AttributeError(k)AttributeError: remove_fixed_ipclean_up RemoveFixedIP: remove_fixed_ipTraceback (most recent call last):File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in runret_val = super(OpenStackShell, self).run(argv)File "/usr/lib/python2.7/site-packages/cliff/app.py", line 281, in runresult = self.run_subcommand(remainder)File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 175, in run_subcommandret_value = super(OpenStackShell, self).run_subcommand(argv)File "/usr/lib/python2.7/site-packages/cliff/app.py", line 402, in run_subcommandresult = cmd.run(parsed_args)File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in runreturn super(Command, self).run(parsed_args)File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in runreturn_code = self.take_action(parsed_args) or 0File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 1658, in take_actionserver.remove_fixed_ip(parsed_args.ip_address)File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 180, in __getattr__raise AttributeError(k)AttributeError: remove_fixed_ip END return value: 1Environment
- 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:
- Remove the Fixed IP from the Platform9 U/I. Select
Instance => Network => Remove Fixed IP. - Use python-novaclient===9.1.3 compatible with Openstack Pike on your local client machine to run Openstack operations.
- Download the requirements.txt file from Platform9's Github.
- 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.txtThis will install OpenStack CLI clients for the core OpenStack projects in addition to several other supported projects for the Pike release.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message