neutron/neutron/tests/unit/common/ovn
Jakub Libosvar a84462f698 ovn: Always use UTC for Hash ring timestamps
When a node is created in ovn_hash_ring table, it used to use timestamp
depending on the system or mysql timezone. This caused troubles for
machines using western timezones when getting active nodes before the
first liveness check, becaus the time difference between UTC and local
time was always in hours and the limit is 30 seconds.

This patch configures OVN Hash Ring model to always use UTC when
creating a node so the times are always compared to UTC, regardless of
the used timezone. Note that the created_at and updated_at are not user
facing columns.

Change-Id: I9172254ce9b1880833128bdcaacacb93821933dd
Closes-bug: #1894117
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
2020-09-08 12:09:48 -04:00
..
__init__.py [OVN] Move OVN commons to neutron tree 2019-12-04 13:15:16 +00:00
test_acl.py Merge "[ovn] Use normalized remote prefix IPs in OVN driver" 2020-07-29 16:38:08 +00:00
test_hash_ring_manager.py ovn: Always use UTC for Hash ring timestamps 2020-09-08 12:09:48 -04:00
test_utils.py [ovn]: port forwarding -- core changes 2020-08-11 14:54:05 -04:00