Browse Source

Remove ovn-cms-options from OVS when OVNCMSOptions is set to ""

This patch resolves issue where ovn-cms-options is left when OVNCMSOptions
is changed to "" in RoleParameters on an existing OVN+DVR+HA environment.

Closes-Bug: #1922168
Change-Id: I649b2a1f7babd86d1fb6a2ebd68b22a3560eb885
changes/22/783222/3
Purandhar Sairam Mannidi 1 year ago
parent
commit
180fcf18bf
  1. 2
      deployment/ovn/ovn-controller-container-puppet.yaml

2
deployment/ovn/ovn-controller-container-puppet.yaml

@ -239,7 +239,7 @@ outputs:
net: host
privileged: true
user: root
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']
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']
image: &ovn_controller_image {get_param: ContainerOvnControllerImage}
volumes:
list_concat:

Loading…
Cancel
Save