Mounting the whole of /dev/now in cinder-storage

This commit is contained in:
Egon Rijpkema 2018-12-14 16:16:50 +01:00
parent f011919666
commit 25e2467edc
2 changed files with 3 additions and 4 deletions

View File

@ -22,6 +22,7 @@
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
-e "AVAILABILITY_ZONE={{ ansible_nodename }}"
-e "RABBIT_USER=openstack"
-e "CINDER_STORAGE_VOLUME={{ storage_volume }}"
tags: vars
- name: pull docker image
@ -44,7 +45,7 @@
--privileged
{{ env_vars }}
-v /srv/cinder-storage/root:/root \
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
-v /dev:/dev \
{{ docker_image }} /etc/bootstrap.sh
tags: bootstrap

View File

@ -11,10 +11,8 @@ ExecStartPre=-/usr/bin/docker rm %n
ExecStart=/usr/bin/docker run --name %n \
--privileged \
{{ env_vars | replace('\n', '') }} \
-v "/dev/cinder-volumes/":/dev/cinder-volumes \
-v /srv/cinder-storage/root:/root \
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
-v "/dev/lvm":/dev/lvm \
-v "/dev":/dev \
-v "/srv/cinder-storage/volumes/:/var/lib/cinder/volumes/" \
--network=host \
{{ docker_image }}