How to add a new RBD pool to OpenStack (and configure as a new volume type)¶
Your Ceph master has just created a new pool full with SSD disks. Let’s configure Juju and OpenStack to serve it to the users!
Juju configuration¶
The pool name is cinder-ceph-ssd
We assume that the OpenStack cluster is connected to the Ceph cluster via the ceph-proxy charm.
First of all we add a new cinder-ceph charm with the same name as the pool, and relate it to the relevant applications:
juju deploy cinder-ceph cinder-ceph-ssd
juju add-relation cinder cinder-ceph-ssd
juju add-relation ceph-proxy cinder-ceph-ssd:ceph
juju add-relation nova-compute cinder-ceph-ssd
OpenStack configuration¶
Source cloud_admin credentials then:
openstack volume type create --public --description "SSD, backend ceph pool cinder-ceph-ssd" SSD
openstack volume type set --property volume_backend_name="cinder-ceph-ssd" SSD
That’s all! Now users can create new SSD volumes selecting the correspondent volume type, e.g.:
openstack volume create --type SSD --size 10 test-ssd
openstack server add volume my-vm test-ssd
Note: when a new volume type is created, the correspondent quota parameter appears, with quota “-1” (i.e. no quota) by default.