]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add periodic agents health check.
authorEugene Nikanorov <enikanorov@mirantis.com>
Wed, 6 May 2015 21:06:09 +0000 (01:06 +0400)
committerenikanorov <enikanorov@mirantis.com>
Thu, 1 Oct 2015 09:21:54 +0000 (09:21 +0000)
commit8ee51f253cac950787273ca117611b4660ed4523
treed0c4f61a5c64a8c993b4ff60ae85b3521efe6a67
parent6fac4b8331a70bcf0f1c5757f2bbfcd0bcb328a0
Add periodic agents health check.

In addition to periodic checks of L3 and DHCP agents
add periodic checks of overall health of registered agents.
Log total count of agents at debug level so it can be
seen in logs of neutron-server.
In case some agents found dead - log detailed info about them:
Type of agent, last heartbeat, host.

Change-Id: I5db81dad4e9e8325ad3fa3a3e6d5d2d0deb297dd
Closes-Bug: #1453320
neutron/db/agents_db.py
neutron/db/agentschedulers_db.py
neutron/db/l3_agentschedulers_db.py
neutron/plugins/ml2/plugin.py
neutron/tests/base.py
neutron/tests/unit/db/test_agents_db.py