Added ceph config for cinder controller.

This commit is contained in:
Egon Rijpkema 2018-09-17 13:25:44 +02:00
parent d161a24200
commit 17ee2aa487
3 changed files with 12 additions and 1 deletions

View File

@ -15,6 +15,8 @@ RUN set -x \
python-oslo.cache \
cinder-api \
cinder-scheduler \
python-ceph \
python-rbd \
&& apt-get -y clean
EXPOSE 8776

View File

@ -11,6 +11,7 @@ connection = mysql+pymysql://$CINDER_USER:$CINDER_PASSWORD@$MYSQL_HOST/cinder
[DEFAULT]
auth_strategy = keystone
transport_url = rabbit://$RABBIT_USER:$RABBIT_PASSWORD@$MY_IP
enabled_backends = RBD-backend
my_ip = $MY_IP
[keystone_authtoken]
@ -27,4 +28,12 @@ password = $CINDER_PASSWORD
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
[RBD-backend]
volume_backend_name = RBD-backend
rbd_pool = volumes
rbd_user = volumes
rbd_secret_uuid = $RBD_SECRET_UUID
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_ceph_conf = /etc/ceph/ceph.conf
EOF

View File

@ -15,7 +15,7 @@ RUN set -x \
python-openstackclient \
python-oslo.cache \
lvm2 \
python-ceph \
python-ceph \
python-rbd \
&& apt-get -y clean