diff options
author | Zuul <zuul@review.opendev.org> | 2023-02-28 09:05:35 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-02-28 09:05:35 +0000 |
commit | ef2d30dbf80b3e343da25db26de9dc2265de97fb (patch) | |
tree | 250ad7c76c50d08196bc5631a7d917f22b15bd64 /neutron/plugins | |
parent | 0e23f0aeebf81669f64cbcd0083d857b14b8d694 (diff) | |
parent | 827fbd01c306ce292e46b0d881bc3cc804202285 (diff) | |
download | neutron-ef2d30dbf80b3e343da25db26de9dc2265de97fb.tar.gz |
Merge "Normalise format of OVN agent heartbeat timestamp"
Diffstat (limited to 'neutron/plugins')
-rw-r--r-- | neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py b/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py index 61f8ded970..222c9e9cce 100644 --- a/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py +++ b/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py @@ -81,7 +81,8 @@ class NeutronAgent(abc.ABC): return { 'binary': self.binary, 'host': self.chassis.hostname, - 'heartbeat_timestamp': self.updated_at, + 'heartbeat_timestamp': timeutils.normalize_time( + self.updated_at.replace(microsecond=0)), 'availability_zone': ', '.join( ovn_utils.get_chassis_availability_zones(self.chassis)), 'topic': 'n/a', |