9b82a20891
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.
Conflicts:
neutron/tests/unit/common/ovn/test_hash_ring_manager.py
neutron/tests/unit/db/test_ovn_hash_ring_db.py
Change-Id: I9172254ce9b1880833128bdcaacacb93821933dd
Closes-bug: #1894117
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
plugins | ||
README | ||
__init__.py | ||
address_scope.py | ||
agent.py | ||
allowed_address_pair.py | ||
conntrack_helper.py | ||
data_plane_status.py | ||
dns.py | ||
dvr.py | ||
external_net.py | ||
flavor.py | ||
l3.py | ||
l3_attrs.py | ||
l3agent.py | ||
l3ha.py | ||
loggingapi.py | ||
metering.py | ||
network_segment_range.py | ||
ovn.py | ||
port_forwarding.py | ||
portbinding.py | ||
provisioning_block.py | ||
securitygroup.py | ||
segment.py | ||
servicetype.py | ||
subnet_service_type.py | ||
tag.py | ||
uplink_status_propagation.py |
README
This directory is designed to contain all SQLAlchemy models shipped with core Neutron. * The expected directory structure is flat, except for the ML2 plugins. All ML2 plugin models should fall under the plugins subdirectory (i.e. plugins/ml2/gre_allocation). * Module names should use singular forms for nouns (port.py, not ports.py).