Browse Source

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

tags/9.4.1
Zuul 1 month ago
parent
commit
5125cd863d
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
@@ -411,6 +411,9 @@ outputs:
411 411
             - /etc/libvirt/qemu
412 412
             - /var/lib/libvirt
413 413
             - /var/log/containers/libvirt
414
+            - /var/run/libvirt
415
+            - /var/log/libvirt
416
+            - /var/log/libvirt/qemu
414 417
         # qemu user on host will be cretaed by libvirt package install, ensure
415 418
         # the qemu user created with same uid/gid as like libvirt package.
416 419
         # These specific values are required since ovs is running on host.
@@ -455,6 +458,11 @@ outputs:
455 458
             - libvirtd.service
456 459
             - virtlogd.socket
457 460
           when: libvirt_installed.rc == 0
461
+        - name: ensure /var/run/libvirt is present upon reboot
462
+          copy:
463
+            dest: /etc/tmpfiles.d/var-run-libvirt.conf
464
+            content: |
465
+              d /var/run/libvirt 0755 root root - -
458 466
       metadata_settings:
459 467
         get_attr: [NovaLibvirtBase, role_data, metadata_settings]
460 468
       upgrade_tasks:

Loading…
Cancel
Save