Browse Source

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

tags/8.4.1
Zuul 1 month ago
parent
commit
64cccef371

+ 8
- 0
docker/services/neutron-dhcp.yaml View File

@@ -219,6 +219,14 @@ outputs:
219 219
       host_prep_tasks:
220 220
         list_concat:
221 221
           - {get_attr: [NeutronLogging, host_prep_tasks]}
222
+          - - name: create /run/netns with temp namespace
223
+              command: ip netns add ns_temp
224
+              register: ipnetns_add_result
225
+              ignore_errors: True
226
+          - - name: remove temp namespace
227
+              command: ip netns delete ns_temp
228
+              ignore_errors: True
229
+              when: ipnetns_add_result.rc == 0
222 230
           - - name: create /var/lib/neutron
223 231
               file:
224 232
                 path: /var/lib/neutron

+ 8
- 0
docker/services/neutron-l3.yaml View File

@@ -220,6 +220,14 @@ outputs:
220 220
       host_prep_tasks:
221 221
         list_concat:
222 222
           - {get_attr: [NeutronLogging, host_prep_tasks]}
223
+          - - name: create /run/netns with temp namespace
224
+              command: ip netns add ns_temp
225
+              register: ipnetns_add_result
226
+              ignore_errors: True
227
+          - - name: remove temp namespace
228
+              command: ip netns delete ns_temp
229
+              ignore_errors: True
230
+              when: ipnetns_add_result.rc == 0
223 231
           - - name: create /var/lib/neutron
224 232
               file:
225 233
                 path: /var/lib/neutron

+ 8
- 0
docker/services/ovn-metadata.yaml View File

@@ -181,6 +181,14 @@ outputs:
181 181
       host_prep_tasks:
182 182
         list_concat:
183 183
           - {get_attr: [NeutronLogging, host_prep_tasks]}
184
+          - - name: create /run/netns with temp namespace
185
+              command: ip netns add ns_temp
186
+              register: ipnetns_add_result
187
+              ignore_errors: True
188
+          - - name: remove temp namespace
189
+              command: ip netns delete ns_temp
190
+              ignore_errors: True
191
+              when: ipnetns_add_result.rc == 0
184 192
           - - name: create /var/lib/neutron
185 193
               file:
186 194
                 path: /var/lib/neutron

Loading…
Cancel
Save