Activity log for bug #1172286

Date Who What changed Old value New value Message
2013-04-24 13:52:48 Tomasz Czekajło bug added bug
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!
2013-04-25 07:02:20 Tomasz Czekajło summary RBD driver doesn't get volume_backend_name from configuration file RBD driver doesn't get volume_backend_name value from configuration file
2013-04-25 20:06:14 Josh Durgin cinder: status New Confirmed
2013-04-25 20:06:25 Josh Durgin cinder: importance Undecided High
2013-05-03 21:39:21 OpenStack Infra cinder: status Confirmed In Progress
2013-05-03 21:39:21 OpenStack Infra cinder: assignee Walt Boring (walter-boring)
2013-05-07 16:13:23 OpenStack Infra cinder: status In Progress Fix Committed
2013-05-08 17:13:29 OpenStack Infra tags in-stable-grizzly
2013-05-08 23:13:25 Adam Gandelman nominated for series cinder/grizzly
2013-05-08 23:13:25 Adam Gandelman bug task added cinder/grizzly
2013-05-08 23:13:34 Adam Gandelman cinder/grizzly: status New Fix Committed
2013-05-08 23:13:39 Adam Gandelman cinder/grizzly: milestone 2013.1.1
2013-05-08 23:13:45 Adam Gandelman cinder/grizzly: importance Undecided High
2013-05-09 22:54:53 Alan Pevec cinder/grizzly: assignee John Griffith (john-griffith)
2013-05-09 22:55:01 Alan Pevec tags in-stable-grizzly
2013-05-10 00:14:45 Alan Pevec cinder/grizzly: status Fix Committed Fix Released
2013-05-29 09:10:50 Thierry Carrez cinder: status Fix Committed Fix Released
2013-05-29 09:10:50 Thierry Carrez cinder: milestone havana-1
2013-10-17 10:18:24 Thierry Carrez cinder: milestone havana-1 2013.2