From 5408a4f5569bbe6b7942d9a2787167c6020c6ed9 Mon Sep 17 00:00:00 2001
From: Steven Dake <stdake@cisco.com>
Date: Tue, 21 Apr 2015 13:07:18 -0700
Subject: [PATCH] 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
---
 compose/nova-compute.yml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/compose/nova-compute.yml b/compose/nova-compute.yml
index 87e7e4ad6c..a5d0abe309 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