neutron/neutron/services
Ihar Hrachyshka ac15191f88 Revert "[OVN] Prevent Trunk creation/deletion with parent port bound"
There are three reasons to revert this patch.

1. It broke RPC push API for trunks because it added port db model to
   event payload that is not serializeable.

2. It also broke the callback event payload interface, which requires
   that all entries in .states attribute belong to the same core object.

To quote from neutron-lib,

```
 # an iterable of states for the resource from the newest to the oldest
 # for example db states or api request/response
 # the actual object type for states will vary depending on event caller
 self.states = ...
```

3. There is no good justification why ml2/ovn would not allow this
   operation. The rationale for the original patch was to align the
   behavior with ml2/ovs, but we don't such parity requirements. The 409
   error that can be returned by the API endpoints is backend specific.

To quote api-ref,

```
409 The operation returns this error code for one of these reasons:
    A system configuration prevents the operation from succeeding.
```

AFAIU there is nothing that prevents ml2/ovn to create a trunk in this
situation.

This will have to be backported in all supported branches (the original
patch was backported down to Wallaby).

Conflicts:
	neutron/services/trunk/drivers/ovn/trunk_driver.py

This reverts commit 833a6d82cd.

Closes-Bug: #2065707
Related-Bug: #2022059
Change-Id: I067c2f7286b2684b67b4389ca085d06a93f856ce
2024-05-31 15:39:25 +00:00
..
auto_allocate Return both project_id when validating auto allocate network 2024-05-22 15:28:05 +02:00
conntrack_helper Bump pylint version to support python 3.8 2020-08-06 16:00:30 +02:00
externaldns Merge "Remove deprecated [designate] admin_* parameters" 2023-11-20 21:24:27 +00:00
flavors use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
l3_router [OVN] Enable "ha" API flag for OVN routers 2024-03-06 18:42:29 +00:00
local_ip Add Local IP L2 extension skeleton 2021-11-11 10:25:27 +03:00
logapi Fix the broken neutron gate 2024-05-15 16:13:38 +02:00
loki Bandit: Remove bandit B311, B303 from skip list 2024-03-28 13:55:25 +01:00
metering Fix some pylint indentation warnings 2022-12-01 16:21:37 +00:00
ndp_proxy Fix some pylint indentation warnings 2022-12-01 16:21:37 +00:00
network_ip_availability Fix some new pylint "R" warnings 2023-07-18 18:06:51 -04:00
network_segment_range Remove "six" library 2020-07-28 16:55:52 +00:00
ovn_l3 Enable HA for OVN router flavors 2024-03-26 20:07:52 -05:00
placement_report Update hacking version 2024-02-08 10:34:10 -05:00
portforwarding Log warning about port forwardings that won't work properly 2024-02-09 16:45:45 +01:00
qos Consume code from neutron-lib 2024-01-19 17:18:57 -05:00
rbac Neutron RBAC API and network support 2015-08-20 20:00:17 -07:00
revisions Don't update revision number if object was not modified 2024-05-07 22:16:14 -04:00
segments get_hosts_mapped_with_segments add filter agt_type 2023-10-25 16:31:30 +02:00
tag Fix Loki tempest jobs 2023-04-23 07:26:55 +02:00
timestamp Fix some pylint indentation warnings 2022-12-01 16:21:37 +00:00
trunk Revert "[OVN] Prevent Trunk creation/deletion with parent port bound" 2024-05-31 15:39:25 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
provider_configuration.py Merge "Select service_provider on the basis of service_module" 2018-11-15 12:47:09 +00:00
service_base.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00