Unhelpful message when removing an external gateway information from a router
Bug #1757063 reported by
Itzik Brown
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-
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
summary: |
- Removing external gateway information from the router fails + Removing an external gateway information from a router fails |
affects: | networking-odl → python-openstackclient |
description: | updated |
summary: |
- Removing an external gateway information from a router fails + Unhelpful message when removing an external gateway information from a + router |
description: | updated |
Changed in python-openstackclient: | |
assignee: | nobody → Dongcan Ye (hellochosen) |
Changed in python-openstackclient: | |
assignee: | Dongcan Ye (hellochosen) → yanpuqing (ycx) |
To post a comment you must log in.
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-d9fb0d6a20 18, since a gateway to external network 837321e5- 43a7-4b23- 9b03-8db6a869eb cd is required by one or more floating IPs.", "type": lGatewayInUseBy FloatingIp" , "detail": ""}}
"RouterExterna
but this should indeed get propagated to the user in a helpful way.