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
The bug is not in ODL but in the client.
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.
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?
Yes
Thanks for the info, I'll see if we can make progress on that upstream bug.
This should also now be fixed with the sdk patch merged upstream.
This is in the downstream version of the openstacksdk library: python-openstacksdk/0.14.0/0.20180619125431.07d3828.el7ost
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