diff --git a/.zuul.d/sdn.yaml b/.zuul.d/sdn.yaml index 17c4af0a3..25034021e 100644 --- a/.zuul.d/sdn.yaml +++ b/.zuul.d/sdn.yaml @@ -26,7 +26,7 @@ neutron: https://git.openstack.org/openstack/neutron vars: devstack_localrc: - OVS_HOST_PATH: /usr/local/var/run/openvswitch + VAR_RUN_PATH: /usr/local/var/run Q_USE_PROVIDERNET_FOR_PUBLIC: true PHYSICAL_NETWORK: public OVN_L3_CREATE_PUBLIC_NETWORK: true diff --git a/devstack/lib/kuryr_kubernetes b/devstack/lib/kuryr_kubernetes index 4f70c65c6..ba40bfa94 100644 --- a/devstack/lib/kuryr_kubernetes +++ b/devstack/lib/kuryr_kubernetes @@ -668,10 +668,10 @@ spec: - name: proc mountPath: /host_proc EOF - if [[ -n "$OVS_HOST_PATH" ]]; then + if [[ -n "$VAR_RUN_PATH" ]]; then cat >> "${output_dir}/cni_ds.yml" << EOF - name: openvswitch - mountPath: /var/run/openvswitch + mountPath: /var/run EOF fi if [ "$cni_daemon" == "True" ]; then @@ -705,11 +705,11 @@ EOF hostPath: path: /proc EOF - if [[ -n "$OVS_HOST_PATH" ]]; then + if [[ -n "$VAR_RUN_PATH" ]]; then cat >> "${output_dir}/cni_ds.yml" << EOF - name: openvswitch hostPath: - path: ${OVS_HOST_PATH} + path: ${VAR_RUN_PATH} EOF fi } diff --git a/devstack/local.conf.ovn.sample b/devstack/local.conf.ovn.sample index 93fd5ea23..9b668ebb0 100644 --- a/devstack/local.conf.ovn.sample +++ b/devstack/local.conf.ovn.sample @@ -36,10 +36,10 @@ enable_service networking-ovn-metadata-agent enable_service neutron enable_service q-svc -# OVS HOST PATH +# VAR RUN PATH # ============= -# OVS_HOST_PATH=/var/run/openvswitch -OVS_HOST_PATH=/usr/local/var/run/openvswitch +# VAR_RUN_PATH=/var/run +VAR_RUN_PATH=/usr/local/var/run # OCTAVIA KURYR_K8S_LBAAS_USE_OCTAVIA=True diff --git a/devstack/local.conf.sample b/devstack/local.conf.sample index c82460a11..90e718d50 100644 --- a/devstack/local.conf.sample +++ b/devstack/local.conf.sample @@ -33,9 +33,9 @@ enable_service q-dhcp enable_service q-l3 enable_service q-svc -# OVS HOST PATH +# VAR RUN PATH # ============= -# OVS_HOST_PATH=/var/run/openvswitch +# VAR_RUN_PATH=/var/run # OCTAVIA KURYR_K8S_LBAAS_USE_OCTAVIA=True diff --git a/devstack/settings b/devstack/settings index a1f042fb2..48bb041df 100644 --- a/devstack/settings +++ b/devstack/settings @@ -86,7 +86,7 @@ KURYR_VIF_POOL_MANAGER=${KURYR_VIF_POOL_MANAGER:-False} KURYR_HEALTH_SERVER_PORT=${KURYR_HEALTH_SERVER_PORT:-8082} # OVS HOST PATH -OVS_HOST_PATH=${OVS_HOST_PATH:-/var/run/openvswitch} +VAR_RUN_PATH=${VAR_RUN_PATH:-/var/run} # Health Server KURYR_CNI_HEALTH_SERVER_PORT=${KURYR_CNI_HEALTH_SERVER_PORT:-8090} diff --git a/doc/source/installation/containerized.rst b/doc/source/installation/containerized.rst index 4bf380385..5de9d85be 100644 --- a/doc/source/installation/containerized.rst +++ b/doc/source/installation/containerized.rst @@ -108,6 +108,15 @@ This should generate 5 files in your ````: * controller_deployment.yml * cni_ds.yml +.. note:: + kuryr-cni daemonset mounts /var/run, due to necessity of accessing to several sub directories + like openvswitch and auxiliary directory for vhostuser configuration and socket files. Also when + neutron-openvswitch-agent works with datapath_type = netdev configuration option, kuryr-kubernetes + has to move vhostuser socket to auxilary directory, that auxiliary directory should be on the same + mount point, otherwise connection of this socket will be refused. + In case when Open vSwitch keeps vhostuser socket files not in /var/run/openvswitch, openvswitch + mount point in cni_ds.yaml and [vhostuser] section in config_map.yml should be changed properly. + Deploying Kuryr resources on Kubernetes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~