Do not bindmount nova-compute directories
Nova uses a data container. Data containers are expected to use the VOLUME keyword and then use volumes_from to access those volumes. Throwing in a bindmount to the host filesystem results in unpredicble behavior, usually in the form of files being stored on the host filesystem that should be persisted in the compute data volume. Change-Id: I60a7873995c9397368ed4df61d5a6d4e8250f3c2
This commit is contained in:
parent
a2eb42744b
commit
5408a4f556
@ -14,9 +14,7 @@ libvirt:
|
||||
volumes:
|
||||
- /run:/run
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup
|
||||
- /var/lib/nova:/var/lib/nova
|
||||
- /var/lib/libvirt:/var/lib/libvirt
|
||||
- /etc/libvirt/qemu:/etc/libvirt/qemu
|
||||
- /lib/modules:/lib/modules:ro
|
||||
volumes_from:
|
||||
- computedata
|
||||
|
||||
@ -31,8 +29,6 @@ novacompute:
|
||||
volumes:
|
||||
- /run:/run
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup
|
||||
- /var/lib/nova:/var/lib/nova
|
||||
- /var/lib/libvirt:/var/lib/libvirt
|
||||
- /etc/libvirt/qemu:/etc/libvirt/qemu
|
||||
- /lib/modules:/lib/modules:ro
|
||||
volumes_from:
|
||||
- computedata
|
||||
|
Loading…
Reference in New Issue
Block a user