diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index 8a01bd20097..f66289adc2e 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -2922,6 +2922,9 @@ class VolumeManager(manager.CleanableManager, if want_objects: driver_entries = (objects.ManageableVolumeList. from_primitives(ctxt, driver_entries)) + except AttributeError: + LOG.debug('Driver does not support listing manageable volumes.') + return [] except Exception: with excutils.save_and_reraise_exception(): LOG.exception("Listing manageable volumes failed, due " @@ -4290,6 +4293,9 @@ class VolumeManager(manager.CleanableManager, if want_objects: driver_entries = (objects.ManageableSnapshotList. from_primitives(ctxt, driver_entries)) + except AttributeError: + LOG.debug('Driver does not support listing manageable snapshots.') + return [] except Exception: with excutils.save_and_reraise_exception(): LOG.exception("Listing manageable snapshots failed, due "