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 \ python-oslo.cache \
cinder-api \ cinder-api \
cinder-scheduler \ cinder-scheduler \
python-ceph \
python-rbd \
&& apt-get -y clean && apt-get -y clean
EXPOSE 8776 EXPOSE 8776

View File

@ -11,6 +11,7 @@ connection = mysql+pymysql://$CINDER_USER:$CINDER_PASSWORD@$MYSQL_HOST/cinder
[DEFAULT] [DEFAULT]
auth_strategy = keystone auth_strategy = keystone
transport_url = rabbit://$RABBIT_USER:$RABBIT_PASSWORD@$MY_IP transport_url = rabbit://$RABBIT_USER:$RABBIT_PASSWORD@$MY_IP
enabled_backends = RBD-backend
my_ip = $MY_IP my_ip = $MY_IP
[keystone_authtoken] [keystone_authtoken]
@ -27,4 +28,12 @@ password = $CINDER_PASSWORD
[oslo_concurrency] [oslo_concurrency]
lock_path = /var/lib/cinder/tmp 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 EOF

View File

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