Comment 0 for bug 1172286

Revision history for this message
Tomasz Czekajło (coldgunpl) wrote : RBD driver doesn't get volume_backend_name from configuration file

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!