Ask Your Question
0

Can a single nova compute node support multiple ceph cluster as backend storage

asked 2018-12-03 04:35:31 -0600

Ekta gravatar image

Hi ,

I have 2 ceph clusters having 2 config files for example /etc/ceph1/ceph.conf and /etc/ceph/ceph.conf. Is there any way by which I can provide both path inside nova.conf so that instance creation can be distributed to both ceph clusters? Much appreciate any help on this.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-12-04 01:49:43 -0600

eblock gravatar image

AFAIK you can't configure nova to connect to multiple backends, but cinder can. You can create several of these entries in the cinder.conf and choose during volume creation which backend to choose.

[rbd]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = pool1
rbd_user = user1
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_secret_uuid = <SECRET
volume_backend_name = rbd

[rbd2]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = pool2
rbd_user = user2
rbd_ceph_conf = /etc/ceph1/ceph.conf
rbd_secret_uuid = <SECRET>
volume_backend_name = rbd2

Then also set this:

enabled_backends = rbd,rbd2

And via Horizon or the OpenStack CLI you can create a new volume type that connects to the desired backend:

control:~ # openstack volume type show ssd
+--------------------+--------------------------------------+
| Field              | Value                                |
+--------------------+--------------------------------------+
| access_project_ids | None                                 |
| description        | None                                 |
| id                 | 152cb8cb-0f64-4064-9235-8138418f73b9 |
| is_public          | True                                 |
| name               | ssd                                  |
| properties         | volume_backend_name='rbd2'           |
| qos_specs_id       | None                                 |
+--------------------+--------------------------------------+
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-12-03 04:35:31 -0600

Seen: 16 times

Last updated: Dec 04