]> 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)
committerOleg Bondarev <obondarev@mirantis.com>
Tue, 7 Jan 2014 11:41:20 +0000 (15:41 +0400)
commitc15a794a832e0453075d363df949684c0fb86657
tree811a3dfce38da81320ff64ebc74b666a54b97d20
parent22886eb49f3d1d04888168e2705a00ef733ac4bc
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