diff --git a/sysinv/sysinv/sysinv/sysinv/common/storage_backend_conf.py b/sysinv/sysinv/sysinv/sysinv/common/storage_backend_conf.py index 0b00e772c7..c6a85f7906 100644 --- a/sysinv/sysinv/sysinv/sysinv/common/storage_backend_conf.py +++ b/sysinv/sysinv/sysinv/sysinv/common/storage_backend_conf.py @@ -307,6 +307,11 @@ class StorageBackendConfig(object): constants.CINDER_BACKEND_CEPH ) + # if no backend is added, return default value + if not ceph_backend: + LOG.warning("No Ceph storage backend config") + return 0, 0 + pool_size = int(ceph_backend.capabilities[ constants.CEPH_BACKEND_REPLICATION_CAP]) pool_min_size = int(ceph_backend.capabilities[