Bug 1558460 - Unhelpful message when removing an external gateway information from a router
Summary: Unhelpful message when removing an external gateway information from a router
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstacksdk
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Brian Haley
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-20 09:23 UTC by Itzik Brown
Modified: 2019-11-06 16:53 UTC (History)
10 users (show)

Fixed In Version: python-openstacksdk-0.17.2-0.20180809182656.3ad9dab.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-06 16:53:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1757063 0 None None None 2018-03-20 09:23:51 UTC
OpenStack gerrit 571101 0 None master: MERGED openstacksdk: Modify the error message when unsetting gateway and setting FIP (I3546bd6b63d10db2c0ae2d643ee1aa61cd83cf29... 2019-04-22 08:10:22 UTC
Red Hat Product Errata RHBA-2019:3747 0 None None None 2019-11-06 16:53:41 UTC

Description Itzik Brown 2018-03-20 09:23:52 UTC
Description of problem:

When running the command
# openstack router unset --external-gateway router1

I get the following error:
HttpException: Unknown error

Version
=======
python-networking-odl-12.0.0-0.20180220171331.8733cf6.el7ost.noarch



Version-Release number of selected component (if applicable):
python-networking-odl-12.0.0-0.20180220171331.8733cf6.el7ost.noarch

How reproducible:


Steps to Reproduce:
1. Create a router
2. Set the router's gateway
3. Run the command 
   $ openstack router unset --external-gateway <router-name/id>

Actual results:


Expected results:


Additional info:

Neutron Server log
==================
2018-03-20 07:31:24.277 25 DEBUG neutron.api.v2.base [req-127f7c44-3f10-4d6e-b070-c478354f2bdd 58f3ccc3684246e28c5a035ed548b014 c45afc7840c0411db2652b6be39f8de0 - default default] Request body: {u'router': {u'external_gateway_info': {}}} prepare_request_body /usr/lib/python2.7/site-packages/neutron/api/v2/base.py:690
    2018-03-20 07:31:24.732 25 INFO neutron.api.v2.resource [req-127f7c44-3f10-4d6e-b070-c478354f2bdd 58f3ccc3684246e28c5a035ed548b014 c45afc7840c0411db2652b6be39f8de0 - default default] update failed (client error): There was a conflict when trying to complete your request.
    2018-03-20 07:31:24.734 25 INFO neutron.wsgi [req-127f7c44-3f10-4d6e-b070-c478354f2bdd 58f3ccc3684246e28c5a035ed548b014 c45afc7840c0411db2652b6be39f8de0 - default default] 172.17.1.22 "PUT /v2.0/routers/2f31ebd8-f9e6-433e-b968-f312350d6a80 HTTP/1.1" status: 409 len: 466 time: 0.4694970

Comment 1 Itzik Brown 2018-03-20 10:41:51 UTC
The bug is not in ODL but in the client.

Comment 2 Julie Pichon 2018-03-20 12:56:55 UTC
Client commands specific to a DFG component also belong to that DFG. FWIW it looks like error messages in networking commands improved a lot recently (cf. bug 1459332), it may be worthwhile trying again with a newer version of python-openstackclient if that's applicable.

Comment 3 Brian Haley 2018-04-17 15:35:41 UTC
This looks like it's related to a couple of other upstream bugs I've seen recently, where the openstackclient is not able to decode the error being returned, but the neutronclient is:

https://bugs.launchpad.net/python-openstackclient/+bug/1760405
https://bugs.launchpad.net/python-openstackclient/+bug/1764259

If you run it with --debug do you see the error in the returned body?

Comment 4 Itzik Brown 2018-04-18 05:50:07 UTC
Yes

Comment 5 Brian Haley 2018-04-18 13:50:00 UTC
Thanks for the info, I'll see if we can make progress on that upstream bug.

Comment 6 Brian Haley 2018-06-01 20:05:47 UTC
This should also now be fixed with the sdk patch merged upstream.

Comment 8 Brian Haley 2019-04-12 21:14:41 UTC
This is in the downstream version of the openstacksdk library:

python-openstacksdk/0.14.0/0.20180619125431.07d3828.el7ost

Comment 11 errata-xmlrpc 2019-11-06 16:53:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3747


Note You need to log in before you can comment on or make changes to this bug.