Browse Source

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

tags/9.4.1
Zuul 1 month ago
parent
commit
8703f8972c

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

@@ -236,6 +236,14 @@ outputs:
236 236
       host_prep_tasks:
237 237
         list_concat:
238 238
           - {get_attr: [NeutronLogging, host_prep_tasks]}
239
+          - - name: create /run/netns with temp namespace
240
+              command: ip netns add ns_temp
241
+              register: ipnetns_add_result
242
+              ignore_errors: True
243
+          - - name: remove temp namespace
244
+              command: ip netns delete ns_temp
245
+              ignore_errors: True
246
+              when: ipnetns_add_result.rc == 0
239 247
           - - name: create /var/lib/neutron
240 248
               file:
241 249
                 path: /var/lib/neutron

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

@@ -232,6 +232,14 @@ outputs:
232 232
       host_prep_tasks:
233 233
         list_concat:
234 234
           - {get_attr: [NeutronLogging, host_prep_tasks]}
235
+          - - name: create /run/netns with temp namespace
236
+              command: ip netns add ns_temp
237
+              register: ipnetns_add_result
238
+              ignore_errors: True
239
+          - - name: remove temp namespace
240
+              command: ip netns delete ns_temp
241
+              ignore_errors: True
242
+              when: ipnetns_add_result.rc == 0
235 243
           - - name: create /var/lib/neutron
236 244
               file:
237 245
                 path: /var/lib/neutron

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

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

Loading…
Cancel
Save