cinder backend by ceph HA setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Setup:
openstack havana installed on ubuntu precise on 10 servers.
Cinder has as a backend a ceph cluster. Here is a an example of the cinder.conf:
[DEFAULT]
debug=true
verbose=true
rabbit_
rabbit_
rabbit_userid=guest
sql_connection=
sql_idle_timeout=30
sql_max_retries=-1
sql_retry_
osapi_volume_listen = 10.6.5.10
rootwrap_config = /etc/cinder/
api_paste_confg = /etc/cinder/
volume_
auth_strategy = keystone
volume_
rbd_pool=volumes
glance_
rbd_ceph_
rbd_flatten_
service_down_time=5
report_interval=1
glance_
Here are the agents running:
root@opstck10:~# cinder service-list
+------
| Binary | Host | Zone | Status | State | Updated_at |
+------
| cinder-scheduler | opstck08 | nova | enabled | up | 2014-02-
| cinder-scheduler | opstck09 | nova | enabled | up | 2014-02-
| cinder-scheduler | opstck10 | nova | enabled | up | 2014-02-
| cinder-volume | opstck01 | nova | enabled | up | 2014-02-
| cinder-volume | opstck03 | nova | enabled | up | 2014-02-
| cinder-volume | opstck04 | nova | enabled | up | 2014-02-
| cinder-volume | opstck05 | nova | enabled | up | 2014-02-
| cinder-volume | opstck06 | nova | enabled | up | 2014-02-
| cinder-volume | opstck08 | nova | enabled | up | 2014-02-
| cinder-volume | opstck09 | nova | enabled | up | 2014-02-
| cinder-volume | opstck10 | nova | enabled | up | 2014-02-
+------
The problem that I am seeing is that I cannot configure cinder to be truly HA.
For example I have this volume:
cinder show 2f5be8c9-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-02-
| display_description | |
| display_name | cirros-0.3.1 |
| id | 2f5be8c9-
| metadata | {u'readonly': u'False'} |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| volume_type | None |
+------
As can be seen the parent host of this volume is opstck01. But in reality this volume is not on the hdd of the opstck01. It is on a ceph cluster:
root@opstck10:~# rbd -p volumes ls |grep 2f5be8c9-
volume-
If cinder-volume on opstck01 is down it cannot be spawned a new instance from that volume even it is accessible.
tags: | added: ceph rbd |
Changed in cinder: | |
status: | Invalid → New |
tags: |
added: drivers removed: rbd |
tags: | added: sts |
The solution for HA cinder is the parameter <host> in /etc/cinder/ cinder. conf on the machines that are running cinder-volume service.
If you set this parameter to the same string on all the hosts that are running cinder-volume service than all the hosts will be parent to any volume in the ceph cluster, so any host can create a volume from an already existing volume.
So I am suggesting to close the bug as designed. I will log a bug against the documentation.
Thanks,
Gabriel