Unhelpful message when removing an external gateway information from a router

Bug #1757063 reported by Itzik Brown on 2018-03-20
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) on 2018-03-20
summary: - Removing external gateway information from the router fails
+ Removing an external gateway information from a router fails
Itzik Brown (itzikb1) on 2018-03-20
affects: networking-odl → python-openstackclient
Itzik Brown (itzikb1) on 2018-03-20
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) on 2018-03-20
description: updated
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) on 2018-04-12
Changed in python-openstackclient:
assignee: nobody → Dongcan Ye (hellochosen)
yanpuqing (ycx) on 2018-06-01
Changed in python-openstackclient:
assignee: Dongcan Ye (hellochosen) → yanpuqing (ycx)
yanpuqing (ycx) wrote :
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.

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

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  Edit
Everyone can see this information.

Other bug subscribers