kolla/compose/nova-compute.yml
Steven Dake 5408a4f556 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
2015-04-21 13:10:19 -07:00

35 lines
685 B
YAML

computedata:
image: kollaglue/centos-rdo-nova-compute-data
name: computedata
libvirt:
image: kollaglue/centos-rdo-nova-libvirt
name: libvirt
net: host
pid: host
privileged: true
restart: always
env_file:
- openstack.env
volumes:
- /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup
- /lib/modules:/lib/modules:ro
volumes_from:
- computedata
novacompute:
image: kollaglue/centos-rdo-nova-compute
name: nova-compute
net: host
privileged: true
restart: always
env_file:
- openstack.env
volumes:
- /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup
- /lib/modules:/lib/modules:ro
volumes_from:
- computedata