Bug 2232562

Summary: OVNAvailabilityZone parameter is not getting applied on controller's OVS configuration
Product: Red Hat OpenStack Reporter: Spoorthi K <spk>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: NEW --- QA Contact: Joe H. Rahme <jhakimra>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17.0 (Wallaby)CC: bshephar, mburns
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Spoorthi K 2023-08-17 11:43:23 UTC
Description of problem:
On 17.0 with "OVNAvailabilityZone: '<availability_zone_value>'" on controller, the OVS configuration doesn't show up the configured values. 

Version-Release number of selected component (if applicable):
Tried on 17.0 and OVNAvailabilityZone didn't seem to work.

How reproducible:
Always

Steps to Reproduce:
1. Create a overcloud environment file. Eg:
parameter_defaults:
  NeutronDefaultAvailabilityZones: 'az-datacenter2,az-datacenter1'
  ControllerParameters:
    OVNCMSOptions: 'enable-chassis-as-gw'
    OVNAvailabilityZone: 'az-datacenter2,az-datacenter1'
2. Trigger overcloud deployment with this environment file.
3. Check the ovn-cms-options in OVS external_ids using "ovs-vsctl get o . external_ids" in controller.

Actual results:
[root@controller-0 ~]# ovs-vsctl get o . external_ids
{hostname=controller-0.localdomain, ovn-bridge=br-int, ovn-bridge-mappings="datacentre:br-ex", ovn-chassis-mac-mappings="datacentre:fa:16:3e:d8:ae:ad", ovn-cms-options=enable-chassis-as-gw, ovn-encap-ip="172.16.4.76", ovn-encap-type=geneve, ovn-match-northd-version="true", ovn-monitor-all="true", ovn-openflow-probe-interval="60", ovn-remote="tcp:172.16.2.110:6642", ovn-remote-probe-interval="60000", rundir="/var/run/openvswitch", system-id="a8fb17f9-11d8-4eba-9efa-ebcb5fc3ea0d"}


Expected results:

[root@controller-0 ~]# ovs-vsctl get o . external_ids
{hostname=controller-0.localdomain, ovn-bridge=br-int, ovn-bridge-mappings="datacentre:br-ex", ovn-chassis-mac-mappings="datacentre:fa:16:3e:d8:ae:ad", ovn-cms-options=enable-chassis-as-gw,availability-zones=az-datacenter2:az-datacenter1, ovn-encap-ip="172.16.4.76", ovn-encap-type=geneve, ovn-match-northd-version="true", ovn-monitor-all="true", ovn-openflow-probe-interval="60", ovn-remote="tcp:172.16.2.110:6642", ovn-remote-probe-interval="60000", rundir="/var/run/openvswitch", system-id="a8fb17f9-11d8-4eba-9efa-ebcb5fc3ea0d"}


Additional info:
Referred this document: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.0/html/networking_guide/use-azs-make-network-nodes-ha_rhosp-network#config-network-service-azs-ovn_config_azs