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.
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( backend_ name='RBD' ,
vendor_ name='Open Source',
driver_ version= VERSION,
storage_ protocol= 'ceph',
super( RBDDriver, self)._ _init__ (*args, **kwargs)
self. configuration. append_ config_ values( rbd_opts)
self. _stats = dict( backend_ name=self. configuration. volume_ backend_ name or 'RBD',
vendor_ name='Open Source',
driver_ version= VERSION,
storage_ protocol= 'ceph',
! volume_
--- 55,61 ----
! volume_
***************
And now works! Hura!