diff --git a/docker/services/neutron-dhcp.yaml b/docker/services/neutron-dhcp.yaml index ac072dea64..28a905478c 100644 --- a/docker/services/neutron-dhcp.yaml +++ b/docker/services/neutron-dhcp.yaml @@ -259,6 +259,14 @@ outputs: host_prep_tasks: list_concat: - {get_attr: [NeutronLogging, host_prep_tasks]} + - - name: create /run/netns with temp namespace + command: ip netns add ns_temp + register: ipnetns_add_result + ignore_errors: True + - - name: remove temp namespace + command: ip netns delete ns_temp + ignore_errors: True + when: ipnetns_add_result.rc == 0 - - name: create /var/lib/neutron file: path: /var/lib/neutron diff --git a/docker/services/neutron-l3.yaml b/docker/services/neutron-l3.yaml index 9044b8a512..11f75633df 100644 --- a/docker/services/neutron-l3.yaml +++ b/docker/services/neutron-l3.yaml @@ -256,6 +256,14 @@ outputs: host_prep_tasks: list_concat: - {get_attr: [NeutronLogging, host_prep_tasks]} + - - name: create /run/netns with temp namespace + command: ip netns add ns_temp + register: ipnetns_add_result + ignore_errors: True + - - name: remove temp namespace + command: ip netns delete ns_temp + ignore_errors: True + when: ipnetns_add_result.rc == 0 - - name: create /var/lib/neutron file: path: /var/lib/neutron diff --git a/docker/services/ovn-metadata.yaml b/docker/services/ovn-metadata.yaml index e519d14b9d..dc32c0165a 100644 --- a/docker/services/ovn-metadata.yaml +++ b/docker/services/ovn-metadata.yaml @@ -210,6 +210,14 @@ outputs: host_prep_tasks: list_concat: - {get_attr: [NeutronLogging, host_prep_tasks]} + - - name: create /run/netns with temp namespace + command: ip netns add ns_temp + register: ipnetns_add_result + ignore_errors: True + - - name: remove temp namespace + command: ip netns delete ns_temp + ignore_errors: True + when: ipnetns_add_result.rc == 0 - - name: create /var/lib/neutron file: path: /var/lib/neutron