]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Big Switch: Retry on 503 errors from backend
authorKevin Benton <blak111@gmail.com>
Wed, 13 Aug 2014 11:31:45 +0000 (04:31 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 2 Sep 2014 12:04:13 +0000 (05:04 -0700)
commit48a2221648f490540fdf1ee099d39b8e5230f053
tree91d56c81eb40fe6c6db4c23d9eb24e40874405fd
parent9ddc2267a83de954c4e5b7fed58a40dc030b04fe
Big Switch: Retry on 503 errors from backend

Retries requests to the backend controller up to 3
additional times with 3 seconds in between each request
if a 503 service unavailable message was returned.
The scenarios that return 503 messages from floodlight
are normally short lived locks for things like OpenStack
synchronization or upgrade blocks. Retrying should work
in the majority of cases.

Closes-Bug: #1357105
Change-Id: Ifacd3a384cfc797ba6d6af5f3c8649c333473259
neutron/plugins/bigswitch/servermanager.py
neutron/tests/unit/bigswitch/test_servermanager.py