]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove time formatting in agent clock error
authorKevin Benton <blak111@gmail.com>
Wed, 27 May 2015 21:52:06 +0000 (14:52 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 27 May 2015 21:56:54 +0000 (14:56 -0700)
commit2b7e6552e82f899a91ce3d6973d90778440fac8c
tree68702de9274cdc984b1a517d493f56698d94dc65
parent420ca31da23cfe9a49b128cbce2d0b7cd9388974
Remove time formatting in agent clock error

This removes time formatting that may be hiding timezone
issues that are leading to a delta being calculated between
the agent and the server even when it shows none. It also
adds logging of the difference so we can see how far off it
thinks they are.

Example message:
during the registration of Open vSwitch agent has a timestamp:
2015-05-19T18:15:27Z. This differs from the current server
timestamp: 2015-05-19T18:15:27Z by more than the threshold agent
downtime: 75.

Note that the timestamps are exactly the same after formatting.

Change-Id: Ibfc30444b7a167fb18ae9051a775266236d4ecce
Related-Bug: #1456760
neutron/db/agents_db.py