Bug 2209090

Summary: Change default neutron gateway port scheduler behavior to deny scheduling to an empty AZ
Product: Red Hat OpenStack Reporter: Ihar Hrachyshka <ihrachys>
Component: python-networking-ovnAssignee: Rodolfo Alonso <ralonsoh>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: aandrade, apevec, camorris, chrisw, ekuris, fesilva, ftaylor, gkadam, hakhande, ihrachys, jamsmith, jelynch, joflynn, ldenny, lhh, lseki, majopela, mariel, mblue, ralonsoh, rycaputo, scohen, spapa, sukar, ykarel
Target Milestone: z6Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.4.2-2.20220409154881.el8ost Doc Type: Enhancement
Doc Text:
This update improves the way that the L3 scheduler handles OVN logical router port (LRP) assignments that cannot be correctly completed because there are no gateway chassis available in the availability zone (AZ). + Previously, if you attempted to assign an LRP to an AZ that did not have a gateway chassis, the L3 scheduler incorrectly assigned the LRP to a random set of chassis. + Now the L3 scheduler writes a warning to the logs and assigns the port to a chassis with the warning label “neutron-ovn-invalid-chassis”. There are no changes to existing LRP-to-chassis assignments.
Story Points: ---
Clone Of: 2195898
: 2209092 (view as bug list) Environment:
Last Closed: 2023-11-08 19:18:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2195898, 2209100    
Bug Blocks: 2209092, 2218465    

Comment 11 Vadim Khitrin 2023-10-08 08:06:14 UTC
Compose `RHOS-16.2-RHEL-8-20231005.n.3` includes the container with this RPM.

Comment 15 Vadim Khitrin 2023-10-15 12:57:16 UTC
I can confirm that I can reproduce this log message, verified on compose `RHOS-16.2-RHEL-8-20231005.n.3`:
```
# Modify OVN GW
ovs-vsctl set Open_vSwitch . external-ids:ovn-cms-options="enable-chassis-as-gw,availability-zones=zoneTEST"
# Create a router in a particular zone
openstack --os-cloud overcloud router create --availability-zone-hint zone2 TEST_ROUTER
# Assign external gateway
openstack --os-cloud overcloud router set --external-gateway 150973cb-cfbc-4bf2-950a-dfd978baa362 TEST_ROUTER
# Message is logged
neutron/server.log:2023-10-15 12:50:33.370 29 WARNING networking_ovn.l3.l3_ovn_scheduler [req-8c40c7cb-f436-4bd4-87d6-9cb71fe1a5bf 89a9956befa641fdb163e4121aedc4c9 b0bc95baedb840bd90d784ea9da96584 - default default] Gateway lrp-60fd73ed-7719-44c9-bbed-5bc7db14cac4 was not scheduled on any chassis, no candidates are available
```

Comment 21 errata-xmlrpc 2023-11-08 19:18:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.2.6 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6307