]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add clock sync error detection on agent registration
authorSudipta Biswas <sbiswas7@in.ibm.com>
Wed, 18 Mar 2015 18:05:57 +0000 (23:35 +0530)
committerSudipta Biswas <sbiswas7@in.ibm.com>
Tue, 14 Apr 2015 04:12:23 +0000 (09:42 +0530)
commit2797efc39faca97039714d3ffb6520634bf65b74
treec7e7ecea603ef2d713213c23a0c670491c543b87
parent071fb81d4709db434bb72f8542592ec5275446ed
Add clock sync error detection on agent registration

For the server to determine if an agent is alive or not,
it depends on the agent's clock being mostly in sync with the server
clock. The neutron-server may reject and return the request if
there's a timestamp difference between the two nodes. Currently
there's no good way to detect this condition from the agent code.

This fix will improve the error handling
logic by writing an appropriate log in the neutron server's log
file for an early detection of the problem.

Change-Id: If884f90c4b1786cfc63d3e2ff2d66f92122258c2
Closes-Bug: #1432582
neutron/db/agents_db.py
neutron/tests/unit/plugins/openvswitch/test_agent_scheduler.py