Description of problem: Disabling DVR in existing OVN+DVR deployment doesn't remove ovn-cms-options from ovs. We have to manually remove the ovn-cms-options. Version-Release number of selected component (if applicable): Red Hat OpenStack Platform 16.1 or later How reproducible: Always Steps to Reproduce: 1. Deploy an overcloud with OVN+DVR+HA 2. Disable DVR by setting EnableNeutronDVR to False 3. Remove OVNCMSOptions from ComputeParameters 4. Rerun the deploy command. Actual results: Compute OVS has ovn-cms-options in OVS Expected results: Compute OVS should not have ovn-cms-options set in Open_vSwitch table of OVS. Additional info:
Issue is at https://github.com/openstack/tripleo-heat-templates/blob/master/deployment/ovn/ovn-controller-container-puppet.yaml#L242 command: ['/bin/bash', '-c', 'CMS_OPTS=$(hiera ovn::controller::ovn_cms_options -c /etc/puppet/hiera.yaml); if [ X"$CMS_OPTS" != X ]; then ovs-vsctl set open . external_ids:ovn-cms-options=$CMS_OPTS; fi'] It should have been: command: ['/bin/bash', '-c', 'CMS_OPTS=$(hiera ovn::controller::ovn_cms_options -c /etc/puppet/hiera.yaml); if [ X"$CMS_OPTS" != X ]; then ovs-vsctl set open . external_ids:ovn-cms-options=$CMS_OPTS;else ovs-vsctl remove open . external_ids ovn-cms-options; fi']
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.1.7 (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-2021:3762