]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
LBaaS: handle NotFound exceptions in update_status callback
authorOleg Bondarev <obondarev@mirantis.com>
Mon, 16 Dec 2013 09:17:48 +0000 (13:17 +0400)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:11 +0000 (15:20 +0800)
commitc8515c24782c88f2802a22fe968fb01b584920c1
tree086e5a7252134b9256d7193c94ac1aa28520b80b
parent5ad53b2171219c2860b0ea37c014c3f161c295d4
LBaaS: handle NotFound exceptions in update_status callback

LBaaS agent may send update_status requests to server on objects
which were already deleted from db: this is due to creating and
deleting objects with a high rate (like tempest API tests do).
As a result errors and stacktraces appear in server and agent logs.
The proposed solution is to catch NotFound exceptions and print a warning.

Change-Id: I4446b678893d0bda578ad7ccdf3f109cb1c91b4d
Closes-Bug: #1260682
neutron/services/loadbalancer/drivers/haproxy/plugin_driver.py
neutron/tests/unit/services/loadbalancer/drivers/haproxy/test_plugin_driver.py