Unhelpful message when removing an external gateway information from a router

Bug #1757063 reported by Itzik Brown
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Confirmed
Undecided
yanpuqing

Bug Description

When running the command while there are floating IPs associated with ports on the internal network that a router is attached to
# openstack router unset --external-gateway router1

I get the following error:
HttpException: Unknown error

Version
=======
python-openstackclient-lang-3.14.0-0.20180213172604.fbee4eb.el7ost.noarch

How to reproduce
================
1. Create a router
2. Add an interface of an internal network to the router
3. Set the gateway for the router
4. Launch an instance
5. Create a Floating IP and associate it with the instance
6. Run the command
$ openstack router unset --external-gateway router1

Itzik Brown (itzikb1)
summary: - Removing external gateway information from the router fails
+ Removing an external gateway information from a router fails
Itzik Brown (itzikb1)
affects: networking-odl → python-openstackclient
Itzik Brown (itzikb1)
description: updated
summary: - Removing an external gateway information from a router fails
+ Unhelpful message when removing an external gateway information from a
+ router
Itzik Brown (itzikb1)
description: updated
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

When using the --debug option, one can see the response from the neutron API like

RESP BODY: {"NeutronError": {"message": "Gateway cannot be updated for router 7138c66f-9f38-4e9c-9c53-d9fb0d6a2018, since a gateway to external network 837321e5-43a7-4b23-9b03-8db6a869ebcd is required by one or more floating IPs.", "type":
 "RouterExternalGatewayInUseByFloatingIp", "detail": ""}}

but this should indeed get propagated to the user in a helpful way.

Changed in python-openstackclient:
status: New → Confirmed
Dongcan Ye (hellochosen)
Changed in python-openstackclient:
assignee: nobody → Dongcan Ye (hellochosen)
yanpuqing (ycx)
Changed in python-openstackclient:
assignee: Dongcan Ye (hellochosen) → yanpuqing (ycx)
Revision history for this message
yanpuqing (ycx) wrote :
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

The SDK and OSC have migrated to using storyboard, the old bug reports like this one are no longer expected to be updated, see https://storyboard.openstack.org/#!/story/1757063 instead.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstacksdk 0.14.0

This issue was fixed in the openstack/openstacksdk 0.14.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstacksdk 0.11.4

This issue was fixed in the openstack/openstacksdk 0.11.4 release.

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.