Description of problem: An OVS patch port can specified in tripleo nic templates e.g - type: ovs_bridge name: br-tenant use_dhcp: false - type: ovs_patch_port name: patch-ex-tenant bridge_name: br-tenant peer: patch-tenant-ex - type: ovs_patch_port name: patch-tenant-ex bridge_name: br-ex peer: patch-tenant which is rendered in json for os-net-config as this { "type": "ovs_patch_port", "peer": "patch-tenant-ex", "name": "patch-ex-tenant", "bridge_name": "br-tenant" }, { "type": "ovs_patch_port", "peer": "patch-tenant", "name": "patch-tenant-ex", "bridge_name": "br-ex" } however the tripleo script run-os-netconfig.sh script replaces 'bridge_name' with br-ex|br-storage using a sed command. this needs updating as follows to ensure it only selects bridge_name as a value, not as a key, in the json script. $ diff /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh.bak /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh 132c132 < sed -i "s/bridge_name/${bridge_name:-''}/" /etc/os-net-config/config.json --- > sed -i "s/: bridge_name/: ${bridge_name:-''}/" /etc/os-net-config/config.json Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
apologies slight typo in above - the required change is diff /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh.bak /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh 132c132 < sed -i "s/bridge_name/${bridge_name:-''}/" /etc/os-net-config/config.json --- > sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/" /etc/os-net-config/config.json
Added upstream fix https://review.opendev.org/696898
Fix merged in upstream master; backported it back to stable/queens.
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, 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-2020:0760