Description of problem:
openvswitch is installed by tripleo but not started on a controller containing just neutron_api which leads to failure during the OVS->OVN migration.
Attempt migration from OVS->OVN
Actual results:
ovn_controller container failing to start on non existent /run/openvswitch directory:
2021-03-17 14:05:47,314 INFO: 35043 -- Image already exists: director-c.infra.prod.upshift.rdu2.redhat.com:8787/rhosp-rhel8/openstack-neutron-server-ovn:16.1.3\n2021-03-17 14:05:50,411 ERROR: 35042 -- ['/usr/bin/podman', 'run', '--user', '0', '--name', 'container-puppet-ovn_controller', '--env', 'PUPPET_TAGS=file,file_line,concat,augeas,cron,vs_config,exec', '--env', 'NAME=ovn_controller', '--env', 'HOSTNAME=ctrl-net-c-04', '--env', 'NO_ARCHIVE=', '--env', 'STEP=6', '--env', 'NET_HOST=true', '--env', 'DEBUG=False', '--volume', '/etc/localtime:/etc/localtime:ro', '--volume', '/tmp/tmpi9ii6nqu:/etc/config.pp:ro', '--volume', '/etc/puppet/:/tmp/puppet-etc/:ro', '--volume', '/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro', '--volume', '/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro', '--volume', '/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro', '--volume', '/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro', '--volume', '/var/lib/config-data:/var/lib/config-data/:rw', '--volume', '/var/lib/container-puppet/puppetlabs/facter.conf:/etc/puppetlabs/facter/facter.conf:ro', '--volume', '/var/lib/container-puppet/puppetlabs/:/opt/puppetlabs/:ro', '--volume', '/dev/log:/dev/log:rw', '--rm', '--log-driver', 'k8s-file', '--log-opt', 'path=/var/log/containers/stdouts/container-puppet-ovn_controller.log', '--security-opt', 'label=disable', '--volume', '/usr/share/openstack-puppet/modules/:/usr/share/openstack-puppet/modules/:ro', '--volume', '/lib/modules:/lib/modules:ro', '--volume', '/run/openvswitch:/run/openvswitch:shared,z', '--volume', '/etc/sysconfig/modules:/etc/sysconfig/modules', '--entrypoint', '/var/lib/container-puppet/container-puppet.sh', '--net', 'host', '--volume', '/etc/hosts:/etc/hosts:ro', '--volume', '/var/lib/container-puppet/container-puppet.sh:/var/lib/container-puppet/container-puppet.sh:ro', 'director-c.infra.prod.upshift.rdu2.redhat.com:8787/rhosp-rhel8/openstack-ovn-controller:16.1.3'] run failed after Error: error checking path \"/run/openvswitch\": stat /run/openvswitch: no such file or directory\n attempt(s): 1\n2021-03-17 14:05:50,412 WARNING: 35042 -- Retrying running container: ovn_controller\n2021-03-17 14:05:53,559 ERROR: 35042 -- ['/usr/bin/podman', 'run', '--user', '0', '--name', 'container-puppet-ovn_controller', '--env', 'PUPPET_TAGS=file,file_line,concat,augeas,cron,vs_config,exec', '--env', 'NAME=ovn_controller', '--env', 'HOSTNAME=ctrl-net-c-04', '--env', 'NO_ARCHIVE=', '--env', 'STEP=6', '--env', 'NET_HOST=true', '--env', 'DEBUG=False', '--volume', '/etc/localtime:/etc/localtime:ro', '--volume', '/tmp/tmpi9ii6nqu:/etc/config.pp:ro', '--volume', '/etc/puppet/:/tmp/puppet-etc/:ro', '--volume', '/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro', '--volume', '/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro', '--volume', '/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro', '--volume', '/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro', '--volume', '/var/lib/config-data:/var/lib/config-data/:rw', '--volume', '/var/lib/container-puppet/puppetlabs/facter.conf:/etc/puppetlabs/facter/facter.conf:ro', '--volume', '/var/lib/container-puppet/puppetlabs/:/opt/puppetlabs/:ro', '--volume', '/dev/log:/dev/log:rw', '--rm', '--log-driver', 'k8s-file', '--log-opt', 'path=/var/log/containers/stdouts/container-puppet-ovn_controller.log', '--security-opt', 'label=disable', '--volume', '/usr/share/openstack-puppet/modules/:/usr/share/openstack-puppet/modules/:ro', '--volume', '/lib/modules:/lib/modules:ro', '--volume', '/run/openvswitch:/run/openvswitch:shared,z', '--volume', '/etc/sysconfig/modules:/etc/sysconfig/modules', '--entrypoint', '/var/lib/container-puppet/container-puppet.sh', '--net', 'host', '--volume', '/etc/hosts:/etc/hosts:ro', '--volume', '/var/lib/container-puppet/container-puppet.sh:/var/lib/container-puppet/container-puppet.sh:ro', 'director-c.infra.prod.upshift.rdu2.redhat.com:8787/rhosp-rhel8/openstack-ovn-controller:16.1.3'] run failed after Error: error checking path \"/run/openvswitch\": stat /run/openvswitch: no such file or directory\n attempt(s): 2
Expected results:
OVN migration succeeds and openvswitch is started out of the box
Fix proposed to branch: stable/victoria /review. opendev. org/c/openstack /tripleo- heat-templates/ +/786968
Review: https:/