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:
Steven Dake 2015-04-21 13:07:18 -07:00
parent a2eb42744b
commit 5408a4f556

View File

@ -14,9 +14,7 @@ libvirt:
volumes: volumes:
- /run:/run - /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup - /sys/fs/cgroup:/sys/fs/cgroup
- /var/lib/nova:/var/lib/nova - /lib/modules:/lib/modules:ro
- /var/lib/libvirt:/var/lib/libvirt
- /etc/libvirt/qemu:/etc/libvirt/qemu
volumes_from: volumes_from:
- computedata - computedata
@ -31,8 +29,6 @@ novacompute:
volumes: volumes:
- /run:/run - /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup - /sys/fs/cgroup:/sys/fs/cgroup
- /var/lib/nova:/var/lib/nova - /lib/modules:/lib/modules:ro
- /var/lib/libvirt:/var/lib/libvirt
- /etc/libvirt/qemu:/etc/libvirt/qemu
volumes_from: volumes_from:
- computedata - computedata