neutron/neutron/tests/unit
Pierre Riteau 827fbd01c3 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
2023-02-24 05:34:07 +01:00
..
agent Merge "Add debug logs to OVSInterfaceDriver.plug_new" 2023-02-03 02:08:10 +00:00
api dhcp/rpc: retrieve network details with segments 2022-09-01 14:48:54 +02:00
cmd Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
common Merge "Enable rpc notifications only when rpc_workers >= 1" 2023-02-02 19:55:20 +00:00
conf Add a method to retrieve and register "rpc_workers" config knob 2023-02-08 11:48:48 +01:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Allow multiple IPv6 ports on router from same network ml2/ovs+dvr 2023-01-13 12:29:47 +01:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions [UT] Mock the retry decorator when creating duplicated NDPProxy 2023-02-14 04:40:15 +01:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Remove exception ``IpAddressAllocationNotFound`` 2022-03-16 16:48:06 +00:00
notifiers Fix test_nova_send_events_* tests 2022-09-06 11:40:10 +02:00
objects [OVN] Add vnic_type and binding profile capabilities to LSP info 2023-01-18 05:01:21 +01:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins Normalise format of OVN agent heartbeat timestamp 2023-02-24 05:34:07 +01:00
privileged Bump the minimum pyroute2 version to 0.7.3 2023-01-18 04:43:09 +01:00
quota Replace "tenant_id" with "project_id" in Quota engine 2021-09-22 08:27:10 +00:00
scheduler Merge "Improve scheduling L3/DHCP agents, missing lower binding indexes" 2023-02-16 22:14:15 +00:00
services [OVN] Bump the port revision number in trunk driver 2023-02-10 16:08:56 +01:00
tests Merge "Replace assertItemsEqual with assertCountEqual" 2021-04-26 19:12:38 +00:00
__init__.py
_test_extension_portbindings.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py
fake_resources.py Merge "[OVN] Prevent maintenance task fail resource stdattr does not exist" 2022-11-28 18:45:40 +00:00
test_auth.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-06 23:56:14 +09:00
test_policy.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Fix a deprecation warning about escape sequence 2022-08-13 19:03:19 +09:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00