Browse Source

Merge "Ensure directories managed by libvirt-daemon exist" into stable/queens

tags/8.4.1
Zuul 1 month ago
parent
commit
5c41e2c006
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      docker/services/nova-libvirt.yaml

+ 9
- 1
docker/services/nova-libvirt.yaml View File

@@ -310,7 +310,7 @@ outputs:
310 310
                   - /run:/run
311 311
                   - /sys/fs/cgroup:/sys/fs/cgroup
312 312
                   - /var/lib/nova:/var/lib/nova:shared
313
-                  - /var/run/libvirt:/var/run/libvirt
313
+                  - /var/run/libvirt:/var/run/libvirt:shared
314 314
                   - /var/lib/libvirt:/var/lib/libvirt
315 315
                   - /etc/libvirt/qemu:/etc/libvirt/qemu:ro
316 316
                   - /var/log/libvirt/qemu:/var/log/libvirt/qemu
@@ -409,6 +409,9 @@ outputs:
409 409
             - /etc/libvirt/qemu
410 410
             - /var/lib/libvirt
411 411
             - /var/log/containers/libvirt
412
+            - /var/run/libvirt
413
+            - /var/log/libvirt
414
+            - /var/log/libvirt/qemu
412 415
         # qemu user on host will be cretaed by libvirt package install, ensure
413 416
         # the qemu user created with same uid/gid as like libvirt package.
414 417
         # These specific values are required since ovs is running on host.
@@ -452,6 +455,11 @@ outputs:
452 455
             - libvirtd.service
453 456
             - virtlogd.socket
454 457
           when: libvirt_installed.rc == 0
458
+        - name: ensure /var/run/libvirt is present upon reboot
459
+          copy:
460
+            dest: /etc/tmpfiles.d/var-run-libvirt.conf
461
+            content: |
462
+              d /var/run/libvirt 0755 root root - -
455 463
       metadata_settings:
456 464
         get_attr: [NovaLibvirtBase, role_data, metadata_settings]
457 465
       upgrade_tasks:

Loading…
Cancel
Save