Unlike docker with podman you can't mount a host directory
that does not exist. We did some work as part of bug 1799638
take care of this for reboots. However, we need it to be created
for fresh installations, as nodes are not necessarily rebooted
after installing paunch. The real issue without reboots did not
surface before the next patch in this series, as we were using
cni0 bridge network for some containers and that resulted in
namespace being created and the directory existing for
neutron_dhcp and neutron_l3 containers in step 4 to mount them.
This patch creates/removes a temp namespace in host_prep_tasks
to ensure that the directory exists.
Change-Id: I19d660168c98887a5e352b3413235888c800760d
Related-Bug: #1799638
(cherry picked from commit 9b284e74cbdcf43253edaf424534b71a483fdb69)
Reviewed: https:/ /review. opendev. org/675359 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=5d00c7076f6 dc6b5b65b818358 d27d5cce8a5764
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 5d00c7076f6dc6b 5b65b818358d27d 5cce8a5764
Author: Rabi Mishra <email address hidden>
Date: Tue Jan 15 16:13:33 2019 +0530
Create /run/netns if does not exist
Unlike docker with podman you can't mount a host directory
that does not exist. We did some work as part of bug 1799638
take care of this for reboots. However, we need it to be created
for fresh installations, as nodes are not necessarily rebooted
after installing paunch. The real issue without reboots did not
surface before the next patch in this series, as we were using
cni0 bridge network for some containers and that resulted in
namespace being created and the directory existing for
neutron_dhcp and neutron_l3 containers in step 4 to mount them.
This patch creates/removes a temp namespace in host_prep_tasks
to ensure that the directory exists.
Change-Id: I19d660168c9888 7a5e352b3413235 888c800760d 253edaf424534b7 1a483fdb69)
Related-Bug: #1799638
(cherry picked from commit 9b284e74cbdcf43