diff options
-rw-r--r-- | glance_store/_drivers/cinder/store.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glance_store/_drivers/cinder/store.py b/glance_store/_drivers/cinder/store.py index 17fb96b..b587c7e 100644 --- a/glance_store/_drivers/cinder/store.py +++ b/glance_store/_drivers/cinder/store.py @@ -514,6 +514,12 @@ class Store(glance_store.driver.Store): Check to verify if the volume types configured for the cinder store exist in deployment and if not, log a warning. """ + if cinderclient is None: + reason = _("cinderclient is not available.") + LOG.error(reason) + raise exceptions.BadStoreConfiguration(store_name="cinder", + reason=reason) + cinder_volume_type = self.store_conf.cinder_volume_type if cinder_volume_type: # NOTE: `cinder_volume_type` is configured, check |