neutron/neutron/tests/unit/plugins/ml2
Pierre Riteau 177956506e Normalise format of OVN agent heartbeat timestamp
A recent change [1] to show the real heartbeat timestamp from OVN agents
had a side effect of changing the timestamp format, which now includes a
timezone:

    +-------------------+----------------------------------+
    | Field             | Value                            |
    +-------------------+----------------------------------+
    | last_heartbeat_at | 2023-02-23 14:12:07.471000+00:00 |
    +-------------------+----------------------------------+

This unexpected format change causes some clients to fail to parse the
response to GET /v2.0/agents.

Normalise the format of the timestamp to remove timezone information.
Also remove the microsecond part, which was not done for OVN, but is
absent from other network agents.

[1] https://review.opendev.org/c/openstack/neutron/+/844179

Closes-Bug: #2008257
Change-Id: I75a37fb9b49a421e4524da6b56ef8362ceb6107b
(cherry picked from commit 827fbd01c3)
2023-02-27 12:42:19 +00:00
..
drivers Normalise format of OVN agent heartbeat timestamp 2023-02-27 12:42:19 +00:00
extensions Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
__init__.py
_test_mech_agent.py [OVN] Check new added segments in OVN mech driver 2021-11-23 16:21:37 +00:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_db.py Clean up db residual record from dvr port 2022-08-10 08:57:22 +08:00
test_driver_context.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ext_portsecurity.py Make OVN driver validate Geneve max_header_size 2021-09-02 08:41:19 +00:00
test_extension_driver_api.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_managers.py remove unicode from code 2021-12-24 10:02:03 +08:00
test_ovo_rpc.py Get sec group ids after address group update 2020-12-29 16:17:38 +00:00
test_plugin.py Do not ignore attributes in bulk port create 2023-02-07 10:46:44 +00:00
test_port_binding.py Update port MAC from binding profile for PFs 2022-04-21 11:31:05 +02:00
test_rpc.py [QoS] Unify agent "qos_network_policy_id" constant 2022-04-27 16:51:34 +00:00
test_security_group.py Use neutron-lib method is_session_active 2022-08-11 05:58:44 +02:00
test_tracked_resources.py Replace "tenant_id" with "project_id" in Quota engine 2021-09-22 08:27:10 +00:00