Merge "Create /run/netns if does not exist"
This commit is contained in:
commit
0af3101f0f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user