Commit Graph

27726 Commits (master)

Author SHA1 Message Date
Zuul f00a08a188 Merge "[Trivial] speed up l3_db floating IP port janitor DB query" 2023-12-07 18:52:01 +00:00
Zuul 1296bf1cfb Merge "Support rarp protocol for egress table" 2023-12-07 04:38:53 +00:00
Slawek Kaplonski 58dcd30dbb [Fullstack] Double check that agent is dead when it should be dead
In some fullstack tests it is expected that agent is DOWN in the Neutron
DB. It could happen sometimes that in almost the same time test's client
was doing GET /v2.0/agents/{agent_id} call and got result with
"alive=False" and in other thread rpc worker was processing heartbeat
from the agent so it was revived just after API request was finished.
That was causing test failures in some cases.
This patch adds second API call to get agent again after 2 seconds if it
was already marked as DEAD, just to make sure that it is really dead ;)

Closes-Bug: #2045757
Change-Id: I1c20c90b8abd760f3a53b24024f19ef2bd189b5a
2023-12-06 12:56:30 +01:00
Zuul 71e056e614 Merge "Remove some useless else statements" 2023-12-06 08:38:25 +00:00
Zuul 3238bcb44d Merge "Fix assignment-from-none warnings" 2023-12-06 06:30:45 +00:00
Zuul f8b08c8a35 Merge "Fix consider-using-from-import warnings" 2023-12-06 06:10:01 +00:00
Zuul 518d27739f Merge "Metadata: handle process exceptions" 2023-12-05 23:20:05 +00:00
Zuul 92bff7aec6 Merge "Remove migrate_to_port_groups maintenance task" 2023-12-05 17:08:32 +00:00
Zuul d593e1684a Merge "Remove migrate_to_stateful_fips maintenance task" 2023-12-05 17:03:09 +00:00
Zuul 7a223b12a1 Merge "Fix simplifiable-if-expression warning" 2023-12-05 11:38:33 +00:00
Zuul da96b6966b Merge "Fix deprecated-method warning" 2023-12-05 11:38:17 +00:00
Zuul 4b5746d72a Merge "Remove re-importation of uuid library" 2023-12-05 11:38:13 +00:00
Zuul c69ac37833 Merge "Fix format-string-without-interpolation" 2023-12-05 11:38:08 +00:00
Zuul ed2eb94520 Merge "Make ``OVNMechanismDriver.post_fork_initialize`` callback cancellable" 2023-12-05 11:37:57 +00:00
LIU Yulong 3fe59efd22 [Trivial] speed up l3_db floating IP port janitor DB query
It's not necessary to get all port informations for the
floating IP port DB query. And the device_id and
device_owner is unique for the DB query.

Change-Id: If7ed1d1b1d9798c0df676bc8c452fb0fa9e288d1
2023-12-05 16:08:26 +08:00
Zuul 729baeb4e7 Merge "Remove deprected and unused argument from update_port_status()" 2023-12-04 23:25:26 +00:00
Rodolfo Alonso Hernandez bb1114c8b1 Make ``OVNMechanismDriver.post_fork_initialize`` callback cancellable
If the callback method ``OVNMechanismDriver.post_fork_initialize``
fails, the callback manager must raise an exception and finish the
process. If that happens in a Neutron worker, the
``oslo_service.service.Services`` class will restart the process.

The neutron-lib version is bumped to 3.9.0. It contains [1], needed
for this patch.

[1]https://review.opendev.org/c/openstack/neutron-lib/+/895940

Partial-Bug: #2036607
Change-Id: I2aca9a522bda2d69962369748b70fa9270fbe245
2023-12-04 07:00:08 +00:00
Zuul 119c3ba85c Merge "Allow neutron managed ports to bypass PREROUTING chain" 2023-12-02 20:18:47 +00:00
Zuul 463f04bf6e Merge "Use is_ovn_metadata_port from the ovn utils" 2023-12-02 20:05:14 +00:00
Zuul bfb50d2297 Merge "Add more logging for lrp scheduling on gtws" 2023-12-02 19:46:53 +00:00
Brian Haley b687414570 Fix consider-using-from-import warnings
Refactor import statements to be like most others
in the tree. Functionality unchanged.

TrivialFix

Change-Id: I74995505d5857f473918587b84a07e986e02ba60
2023-12-02 11:40:50 -05:00
Zuul fd98ee34e1 Merge "Add support for OVN MAC_Binding aging" 2023-12-02 01:24:41 +00:00
Zuul 0f5f5c6aa8 Merge "l3_extra_gws: Add PRECOMMIT_UPDATE receiver" 2023-12-02 01:20:54 +00:00
Zuul 2e24a75999 Merge "l3_extra_gws: Fix update_external_gateways handling" 2023-12-02 01:12:14 +00:00
Zuul e26a921572 Merge "Fix consider-using-in warning" 2023-12-02 00:56:00 +00:00
Zuul 0fa45c8684 Merge "Fix pylint "W" missing-timeout warnings" 2023-12-02 00:55:55 +00:00
Zuul 92753807b7 Merge "l3_extra_gws: Fix KeyError when removing extra GW port" 2023-12-01 23:58:06 +00:00
Zuul 2b3ead1ffc Merge "l3_extra_gws: Listing GW ports requires admin context" 2023-12-01 23:58:02 +00:00
Zuul 420ad91bcb Merge "Remove ovs_integration_bridge configuration option" 2023-12-01 18:20:23 +00:00
Zuul 6b362ed5bf Merge "Add python3.10 support in testing runtime" 2023-12-01 13:11:30 +00:00
Zuul 946fedb4e2 Merge "TestSegmentHostMappingNoStore class is missing config" 2023-12-01 13:11:26 +00:00
Zuul dc31582b82 Merge "[ovn]Only synchronize non dynamic segments" 2023-12-01 13:11:22 +00:00
Zuul 4ead1a68a9 Merge "Remove a print statement from the iptables unit test" 2023-12-01 13:11:18 +00:00
Zuul 5b9a47207a Merge "Remove agent veth_mtu configuration option" 2023-12-01 11:27:23 +00:00
Zuul 2b5f640aa7 Merge "Fix releasenote location" 2023-12-01 01:48:47 +00:00
Zuul 9fc1aeed14 Merge "Remove ovn_l3_mode configuration option" 2023-12-01 01:48:43 +00:00
Zuul 36e49c5e01 Merge "Replace network type names by constants" 2023-12-01 01:19:55 +00:00
Brian Haley 673e373b6f Fix assignment-from-none warnings
test_clear_ip_rate_limit() was not properly testing
the TC code, relying on the return value (of None)
to be success. Call get_filter_id_for_ip() to verify
the limit has been removed (will trigger exception).

The other flat driver case just re-factored the code
to remove the warning.

TrivialFix

Change-Id: Ie4d5a4b96202bce5541ced241975cfdf2bf19aaa
2023-11-30 18:07:50 -05:00
Brian Haley c794227941 Remove some useless else statements
Fix useless-else-on-loop, no-else-raise warnings and
no-else-continue in some test files. Noticed while
making another change.

TrivialFix

Change-Id: I9f3100ab2fe97275906e52a764a5023039622728
2023-11-30 17:39:09 -05:00
Brian Haley 5943685c88 Fix consider-using-in warning
Change test_get_agents() to use 'in' to remove warning,
no change in code.

TrivialFix

Change-Id: I610e34b7d7d3035c8484b06420a2257a5bf2f261
2023-11-30 17:28:18 -05:00
Brian Haley bdeec3577c Fix simplifiable-if-expression warning
No need for the extra code in _create_environment()

TrivialFix

Change-Id: I365589602d306dcc8683d82d7ba958939c822247
2023-11-30 17:23:05 -05:00
Brian Haley 8d899c8d33 Fix deprecated-method warning
test_delete_unmoved_global() was using a long-ago
deprecated method failUnlessRaises, just use
assertRaises.

TrivialFix

Change-Id: I8f3cc84a186de0e2a58b696ce7805dbc42ba7c98
2023-11-30 17:10:22 -05:00
Brian Haley 4b0d433472 Fix format-string-without-interpolation
Remove unused IPTABLES_ARG argument.
Introduced by accident in 5b7c71a3.

Trivialfix

Change-Id: Ia8096be03bc6d119a34912b7a52375b88a29cac7
2023-11-30 17:01:58 -05:00
Zuul 54035b1b16 Merge "Remove logic for old LBaaS(v2)" 2023-11-30 21:45:23 +00:00
Brian Haley a246fd6567 Remove re-importation of uuid library
test_placement_report.py:249:8: W0404: Reimport 'uuid'

Trivialfix

Change-Id: I493c1a5e7a68ed4162fba59cfcee2482793d6ce6
2023-11-30 15:52:32 -05:00
Miro Tomaska ed0515737b Metadata: handle process exceptions
Both metadata agents (OVN and non-OVN) should handle
process exceptions when spawning haproxy processes
such that the agent can continue its operation for
other haproxy processes.

Closes-Bug: #2033305
Change-Id: I6da1b135c83ecfc41ec91e907ebf8500325a7a80
2023-11-29 16:18:53 -05:00
Brian Haley dfb083657f Remove migrate_to_port_groups maintenance task
TODO says this was introduced in Q and can be
removed in U, so let's do it.

Removed the DB sync as well.

Removed the related OVSDB code to get and delete
address sets as these were the only callers
according to codesearch.

Change-Id: I13dfce7a8f6a5cb9ec91d548242bedce785f8340
2023-11-29 13:01:52 -05:00
Brian Haley 1fe3aefd4b Remove migrate_to_stateful_fips maintenance task
TODO says this can be removed in Z+1, so let's do it.

Removed DB sync code as well.

Change-Id: I18376f2ec545b9d6be65a9546ab14dd64a914b91
2023-11-29 13:00:09 -05:00
Zuul fce1b4c7d7 Merge "Validate ip versions" 2023-11-28 23:42:31 +00:00
Zuul 3fe1261a80 Merge "Add [metadata_rate_limiting] options to example config files" 2023-11-28 23:40:42 +00:00