diff options
| author | Steven Dake <stdake@cisco.com> | 2015-04-21 13:07:18 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-04-21 13:10:19 -0700 |
| commit | 5408a4f5569bbe6b7942d9a2787167c6020c6ed9 (patch) | |
| tree | d7d318037ce05ec363d9dcd71f97bd4476ae3f2a | |
| parent | a2eb42744baaf1c4af5e4dbbf11435622ec0c011 (diff) | |
| download | kolla-5408a4f5569bbe6b7942d9a2787167c6020c6ed9.tar.gz kolla-5408a4f5569bbe6b7942d9a2787167c6020c6ed9.zip | |
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
| -rw-r--r-- | compose/nova-compute.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compose/nova-compute.yml b/compose/nova-compute.yml index 87e7e4ad6..a5d0abe30 100644 --- a/compose/nova-compute.yml +++ b/compose/nova-compute.yml @@ -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 |
