aboutsummaryrefslogtreecommitdiff
path: root/compose
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-04-21 13:07:18 -0700
committerSteven Dake <stdake@cisco.com>2015-04-21 13:10:19 -0700
commit5408a4f5569bbe6b7942d9a2787167c6020c6ed9 (patch)
treed7d318037ce05ec363d9dcd71f97bd4476ae3f2a /compose
parenta2eb42744baaf1c4af5e4dbbf11435622ec0c011 (diff)
downloadkolla-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
Diffstat (limited to 'compose')
-rw-r--r--compose/nova-compute.yml8
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