Bug 1943488 - Changing ovn-cms-options is not reflected on the node
Summary: Changing ovn-cms-options is not reflected on the node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: PURANDHAR SAIRAM MANNIDI
QA Contact: Eduardo Olivares
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-26 08:12 UTC by PURANDHAR SAIRAM MANNIDI
Modified: 2021-12-22 19:13 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210428163859.29a02c1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 20:18:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1922168 0 None None None 2021-04-27 03:09:54 UTC
OpenStack gerrit 783222 0 None MERGED Remove ovn-cms-options from OVS when OVNCMSOptions is set to "" 2021-04-23 12:31:08 UTC
OpenStack gerrit 786102 0 None MERGED Remove ovn-cms-options from OVS when OVNCMSOptions is set to "" 2021-04-23 12:33:57 UTC
Red Hat Issue Tracker OSP-1410 0 None None None 2021-11-18 11:31:13 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:18:54 UTC

Description PURANDHAR SAIRAM MANNIDI 2021-03-26 08:12:31 UTC
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:

Comment 1 PURANDHAR SAIRAM MANNIDI 2021-03-26 08:19:21 UTC
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']

Comment 28 errata-xmlrpc 2021-12-09 20:18:25 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.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


Note You need to log in before you can comment on or make changes to this bug.