2013-04-25 07:01:35 |
Tomasz Czekajło |
description |
Hi,
I wanted to use multi-backend feature with RBD/Ceph. I prepared configuration but there was still problem when i chose type volume with extra specs. In logs i can see notification that valid host not exist.
After a long search the reasons why my configuration does't work i find in cinder/volume/drivers/rbd.py that my option included in backend configuration in cinder.conf is not taken into account by RBD driver.
Below my changes:
*** 55,61 ****
super(RBDDriver, self).__init__(*args, **kwargs)
self.configuration.append_config_values(rbd_opts)
self._stats = dict(
! volume_backend_name='RBD',
vendor_name='Open Source',
driver_version=VERSION,
storage_protocol='ceph',
--- 55,61 ----
super(RBDDriver, self).__init__(*args, **kwargs)
self.configuration.append_config_values(rbd_opts)
self._stats = dict(
! volume_backend_name=self.configuration.volume_backend_name or 'RBD',
vendor_name='Open Source',
driver_version=VERSION,
storage_protocol='ceph',
***************
And now works! Hura! |
Hi,
I wanted to use multi-backend feature with RBD/Ceph. I prepared configuration but there was still problem when i chose type volume with extra specs. In logs i can see notification that valid host not exist.
After a long search the reasons why my configuration does't work i find in cinder/volume/drivers/rbd.py that my option included in backend configuration in cinder.conf is not taken into account by RBD driver.
root@openstack-1:~# cinder extra-specs-list
+--------------------------------------+------+----------------------------------------+
| ID | Name | extra_specs |
+--------------------------------------+------+----------------------------------------+
| 591caaa5-8de7-4c7d-bf26-8f34a684175f | SAS | {u'volume_backend_name': u'CEPH_SAS'} |
| 68842cdc-34b0-4371-b038-f9c34b231e02 | SATA | {u'volume_backend_name': u'CEPH_SATA'} |
+--------------------------------------+------+----------------------------------------+
My cinder.conf
enabled_backends=storage-sas,storage-sata
[storage-sas]
volume_driver=cinder.volume.driver.RBDDriver
volume_name_template = volume-%s
volume_backend_name=CEPH_SAS
rbd_pool=sas_volumes
rbd_user=volumes
rbd_secret_uuid=xxx
[storage-sata]
volume_name_template = volume-%s
volume_driver=cinder.volume.driver.RBDDriver
volume_backend_name=CEPH_SATA
rbd_pool=sata_volumes
rbd_user=volumes
rbd_secret_uuid=xxx
Below my changes:
*** 55,61 ****
super(RBDDriver, self).__init__(*args, **kwargs)
self.configuration.append_config_values(rbd_opts)
self._stats = dict(
! volume_backend_name='RBD',
vendor_name='Open Source',
driver_version=VERSION,
storage_protocol='ceph',
--- 55,61 ----
super(RBDDriver, self).__init__(*args, **kwargs)
self.configuration.append_config_values(rbd_opts)
self._stats = dict(
! volume_backend_name=self.configuration.volume_backend_name or 'RBD',
vendor_name='Open Source',
driver_version=VERSION,
storage_protocol='ceph',
***************
And now works! Hura! |
|