yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56483
[Bug 1616066] Re: neutron error when trying to update a bgp peer
Reviewed: https://review.openstack.org/367460
Committed: https://git.openstack.org/cgit/openstack/neutron-dynamic-routing/commit/?id=89ed530fecf4b41aa331c7594496d2a048f4d682
Submitter: Jenkins
Branch: master
commit 89ed530fecf4b41aa331c7594496d2a048f4d682
Author: Sreekumar S <sreesiv@xxxxxxxxx>
Date: Thu Sep 8 20:44:42 2016 +0530
Fixes KeyError while updating bgp peer
This will fix the issue of KeyError being thrown when
'password' is not supplied while updating bgp peer.
The dict get() method is used to return None when
'password' key is not available.
Two unit tests are also added which will test the cases
1) Exception thrown if the auth type is 'none', and a
password is supplied when updating
2) When the password is not supplied
Change-Id: Ief9e88ca12b04eb08b0cc4e60f9d883f1e282ae9
Closes-Bug: #1616066
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1616066
Title:
neutron error when trying to update a bgp peer
Status in neutron:
Fix Released
Bug description:
Trying to update a bgp peer in Mitaka with midonet-plugin installed
neutron throws an error.
root@controller:~# neutron bgp-peer-update --name BGP-Peer22 46b91ae4-990c-4d23-9dab-905eae0ec364; tail -f /var/log/neutron/neutron-server.log
Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-4bd46532-1bd5-464c-8f3b-56321c3404fb']
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_log/helpers.py", line 46, in wrapper
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource return method(*args, **kwargs)
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/midonet/neutron/services/bgp/plugin.py", line 183, in update_bgp_peer
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource context, bgp_peer_id, bgp_peer)
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/bgp_db.py", line 269, in update_bgp_peer
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource if ((bp['password'] is not None) and
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource KeyError: 'password'
2016-08-23 09:33:27.040 18778 ERROR neutron.api.v2.resource
2016-08-23 09:33:27.052 18778 INFO neutron.wsgi [req-4bd46532-1bd5-464c-8f3b-56321c3404fb 51a6b639fa6d4205a82c11fafb5e5033 d3d205605c8d4d97808e6ab50a17b26a - - -] 10.99.99.20 - - [23/Aug/2016 09:33:27] "PUT /v2.0/bgp-peers/46b91ae4-990c-4d23-9dab-905eae0ec364.json HTTP/1.1" 500 383 0.022151
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1616066/+subscriptions
References