Merge "Create /run/netns if does not exist" into stable/rocky

This commit is contained in:
Zuul 2019-08-09 17:32:45 +00:00 committed by Gerrit Code Review
commit 8703f8972c
3 changed files with 24 additions and 0 deletions

View File

@ -236,6 +236,14 @@ outputs:
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NeutronLogging, host_prep_tasks]} - {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 - - name: create /var/lib/neutron
file: file:
path: /var/lib/neutron path: /var/lib/neutron

View File

@ -232,6 +232,14 @@ outputs:
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NeutronLogging, host_prep_tasks]} - {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 - - name: create /var/lib/neutron
file: file:
path: /var/lib/neutron path: /var/lib/neutron

View File

@ -186,6 +186,14 @@ outputs:
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NeutronLogging, host_prep_tasks]} - {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 - - name: create /var/lib/neutron
file: file:
path: /var/lib/neutron path: /var/lib/neutron