25283 Commits

Author SHA1 Message Date
347fd599ae Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I307fdfc8957028671706265f0575789afa5e60af
2021-09-15 17:39:14 +00:00
Zuul
f1d0558626 Merge "Use neutron-lib standard_attr" 2021-09-15 14:11:58 +00:00
Zuul
6db2619628 Merge "[DVR] Set arp entries only for single IPs given as allowed addr pair" 2021-09-15 09:59:24 +00:00
Zuul
ed3374746d Merge "Revert "[L3][HA] Retry when setting HA router GW status."" 2021-09-15 09:49:32 +00:00
Nurmatov Mamatisa
ce3b86eef3 Use neutron-lib standard_attr
Now only neutron uses neutron/db/standard_attr.py
Shim can be removed

Change-Id: I980265335c5f3f6b5ee2e5fbcad9491aad91defe
2021-09-15 09:19:26 +00:00
Zuul
c23dd997a0 Merge "[L2] no provisioning block for internal service port" 2021-09-14 18:39:18 +00:00
Zuul
1a106870be Merge "Delete SG log entries when SG is deleted" 2021-09-14 12:01:46 +00:00
Zuul
0fa97ecceb Merge "Redefine "neutron-ovn-tempest-ovs-master-fedora" CI job" 2021-09-13 10:34:25 +00:00
Zuul
7cdc4de11b Merge "[Functional] Wait for the initial state of ha router before test" 2021-09-12 19:35:46 +00:00
Zuul
90cee3c27b Merge "Rename notify to publish" 2021-09-11 22:50:45 +00:00
Zuul
0a7186a8ff Merge "update subport status when trunk/subport create/delete is triggerred" 2021-09-11 08:39:25 +00:00
Zuul
c39896bd07 Merge "[OVN] Change ControllerAgent type dinamically" 2021-09-09 23:03:19 +00:00
Rodolfo Alonso Hernandez
421dc2195c Redefine "neutron-ovn-tempest-ovs-master-fedora" CI job
The CI job "neutron-ovn-tempest-ovs-master-fedora" should be the same
as "neutron-ovn-tempest-ovs-master" but executed in the Fedora nodeset.

Related-Bug: #1942913
Change-Id: I89700030dedab33c28baf95993206cf5cdd1e6d6
2021-09-09 16:14:51 +00:00
Nurmatov Mamatisa
43871e0654 Rename notify to publish
Neutron-lib patch [1] neutron-functional-with-uwsgi test is
failing because missed some code with notify

1) https://review.opendev.org/c/openstack/neutron-lib/+/807869

Change-Id: I2b4048a6bbcb9d1a385702755810714db5ea2d94
2021-09-09 18:11:27 +03:00
Slawek Kaplonski
b8ef8e722a [Functional] Wait for the initial state of ha router before test
In functional tests of the HA and DVR HA routers, when e.g.
failover is tested, we should always wait for routers to be in the
expected initial state (primary or backup) before router failover
will actually be done.
Without that, we may hit race condition when initial router's state
is enqueued but not processed yet and then state will be changed thus
no any action will be performed by L3 agent and test may fail.

Closes-Bug: #1939507
Change-Id: Ibd8f78fc822b04965c6a79b57b13be364934f64f
2021-09-09 15:10:40 +02:00
Wenhai Li
101ccbaeb3 update subport status when trunk/subport create/delete is triggerred
When trunk or subport is created or deleted, notifications are sent. In
the meanwhile, subport status is not updated accordingly.

device_id device_owner and binding:host_id should be updated when
notifications are received.

In this patch, notifications are listened and subport status should be
updated when trunk/subport is created and subport is already added to
trunk:

    device_id: <trunk_id>
    device_owner: trunk:subport
    binding:host_id: <parent port host_id>

When trunk/subport is deleted or subport is removed from trunk, subport
status should be updated:

    device_id: None
    device_owner: None
    binding:host_id: None

Closes-Bug: #1942413
Change-Id: I0bdc5aabae0125926253b530fd0c6e79ba7bcbb9
2021-09-09 21:04:21 +08:00
Zuul
d1a89af312 Merge "Skip FIP check if VALIDATE_MIGRATION is not True" 2021-09-07 14:34:08 +00:00
Zuul
57176eac5b Merge "[DVR] Fix update of the MTU in the SNAT namespace" 2021-09-07 12:33:23 +00:00
Zuul
2ed28e4e01 Merge "Agent RPC step size in config." 2021-09-07 12:33:19 +00:00
Zuul
b04d405487 Merge "Don't use singleton in routes.middleware.RoutesMiddleware" 2021-09-07 02:39:06 +00:00
Slawek Kaplonski
7f06322355 Delete SG log entries when SG is deleted
When security group is deleted, log entries configured for that SG
weren't removed and stayed in the DB as orphaned entries.
That patch fixes that by subscribe logapi service plugin to the
AFTER_DELETE security group events.

Closes-bug: #1939558
Change-Id: Ibffbbd3b529c31372715d9a064f7cb6bada8c424
2021-09-06 15:03:54 +00:00
Zuul
7c28f39287 Merge "Rename notify to publish in unit tests" 2021-09-06 14:24:34 +00:00
Zuul
6345fa835b Merge "Ensure net dict has provider info on precommit delete" 2021-09-06 14:24:30 +00:00
Zuul
d726785687 Merge "neutron-lib: Skip functional tests for changes in unit tests code" 2021-09-06 14:24:15 +00:00
Zuul
99db0d79b9 Merge "Replace deprecated assertDictContainsSubset" 2021-09-06 11:48:18 +00:00
Takashi Kajinami
34acbd6ff8 Replace deprecated assertDictContainsSubset
The method is deprecated since Python 3.2[1] and shows the following
DeprecationWarning.

/usr/lib/python3.9/unittest/case.py:1134: DeprecationWarning:
assertDictContainsSubset is deprecated
  warnings.warn('assertDictContainsSubset is deprecated',

[1] https://docs.python.org/3/whatsnew/3.2.html#unittest

Closes-Bug: #1938103
Change-Id: Iab60f52ffbfb3668e9509ce86e105917c616b8a9
2021-09-05 01:01:35 +09:00
Slawek Kaplonski
e610a5eb9e Don't use singleton in routes.middleware.RoutesMiddleware
It seems that using default singleton=True in the
routes.middleware.RoutesMiddleware which is leading to use thread-local
RequestConfig singleton object is not working well with eventlet
monkeypatching of threading library which we are doing in Neutron.
As a result it leaks memory in neutron-api workers every time when API
request to not existing API endpoint is made by user.

To avoid that memory leak, let's use singletone=False in that
RoutesMiddleware object, at least until problem with thread-local
singleton and eventlet monkey patching will be solved.

Closes-Bug: #1942179
Change-Id: Id3a529248d3984506f0166bdc32e334127a01b7b
2021-09-04 09:25:19 +00:00
Zuul
1d2a4cb35a Merge "Use lookup() instead of iterating over table" 2021-09-04 09:13:52 +00:00
Zuul
bc092d4d68 Merge "Add port status to information dictionary in agent RPC" 2021-09-03 15:07:27 +00:00
Zuul
c235232501 Merge "Include oslo.cache options in neutron.conf" 2021-09-03 08:08:30 +00:00
Oleg Bondarev
27edf6b6d3 Ensure net dict has provider info on precommit delete
Commit 80eddc40390e63c9c1102b827997054708f2618b optimized
net delete by including net info into notification payload,
however ML2 plugin needs provider info as well.

Closes-Bug: #1942469
Change-Id: I9f753be0ce5ae7870afb9b3cb74f89be8482356e
2021-09-03 10:32:52 +03:00
Zuul
731303184e Merge "Make OVN driver validate Geneve max_header_size" 2021-09-03 02:08:18 +00:00
Zuul
edd409c0e9 Merge "Add pagging and sorting support for "network_ip_availability"" 2021-09-03 00:42:00 +00:00
Zuul
8995a59869 Merge "[OVN] Document Network Availability Zones" 2021-09-03 00:00:04 +00:00
Zuul
7fdd3970ab Merge "Do not fail when releasing a quota reservation" 2021-09-02 20:44:38 +00:00
Zuul
3e426b9ea6 Merge "[OVN] Make external ports aware of network AZs" 2021-09-02 19:03:14 +00:00
Zuul
2fbd82c07a Merge "Improve content of FloatingIP AFTER callbacks" 2021-09-02 17:54:32 +00:00
Zuul
57f9822a8b Merge "Enable QoS min bw tempest in neutron-ovs-tempest-multinode-full" 2021-09-02 17:29:41 +00:00
Zuul
525e7d348a Merge "Remove IDL classes implemented in ovsdbapp" 2021-09-02 17:18:43 +00:00
Zuul
621a266ec0 Merge "Use payload callback for RPC resource_cache" 2021-09-02 17:18:34 +00:00
Terry Wilson
20a13391a2 Use lookup() instead of iterating over table
The lookup method uses locks to avoid race conditions with other
ovsdbapp threads.

Change-Id: I27ea7ece3a7b81ec8eb3002773a7b71217da3991
2021-09-02 16:07:26 +00:00
Rodolfo Alonso Hernandez
82f72896db Add pagging and sorting support for "network_ip_availability"
Added pagging and sorting support for the extension
"network_ip_availability".

Closes-Bug: #1940518

Change-Id: Ic520ceb060c4a914d72ef66f58eeaa667382c53b
2021-09-02 16:51:08 +02:00
Nurmatov Mamatisa
d0c871df19 Rename notify to publish in unit tests
After [1] patch merging all neutron code will be
switched to payload style callback[2].
Neutron-lib registry.notify can be depricated

1) https://review.opendev.org/c/openstack/neutron/+/806607
2)https://codesearch.openstack.org/?q=registry.notify&i=nope&literal=nope&files=&excludeFiles=&repos=

Change-Id: I5a549c4d09822659f7e4cdd08b085d856f3b65ed
2021-09-02 14:41:18 +00:00
Zuul
dd46eb69fc Merge "Bump neutron-lib to 2.13.0" 2021-09-02 14:39:44 +00:00
Zuul
d5fd878dbf Merge "Remove dhcp_extra_opt value after first newline character" 2021-09-02 12:16:48 +00:00
Rodolfo Alonso Hernandez
c178a37615 Add port status to information dictionary in agent RPC
Added parameter "status" to port dictionary information returned from
the agent RPC.

Change-Id: I34383aa02c7515b3bcd2faa8b4617e730ce3e6c9
Closes-Bug: #1942234
2021-09-02 10:34:43 +00:00
Zuul
33b65b9031 Merge "[Doc] Fix link to the Mellanox documentation in SR-IOV doc" 2021-09-02 10:08:45 +00:00
Zuul
9a12a094db Merge "Use "objects_exist" in PortForwardingPlugin" 2021-09-02 10:08:37 +00:00
Radosław Piliszek
dc4a57d966 Make OVN driver validate Geneve max_header_size
Also updates the docs to be clearer on OVN-Geneve relation topics.

Co-Authored-By: Elvira García Ruiz <egarciar@redhat.com>
Change-Id: Ia253cc4d85261ce1535f4d27b3da91275d879903
Closes-bug: #1868137
2021-09-02 08:41:19 +00:00
Zuul
da9f851dcd Merge "Do not fail if the agent load is not bumped" 2021-09-02 04:04:50 +00:00