summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glance_store/_drivers/rbd.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/glance_store/_drivers/rbd.py b/glance_store/_drivers/rbd.py
index a9409e9..f45a909 100644
--- a/glance_store/_drivers/rbd.py
+++ b/glance_store/_drivers/rbd.py
@@ -318,6 +318,13 @@ class Store(driver.Store):
this method. If the store was not able to successfully configure
itself, it should raise `exceptions.BadStoreConfiguration`
"""
+ if rbd is None or rados is None:
+ reason = _("The required libraries(rbd and rados) are not "
+ "available")
+ LOG.error(reason)
+ raise exceptions.BadStoreConfiguration(store_name='rbd',
+ reason=reason)
+
try:
if self.backend_group:
chunk = getattr(self.conf,