diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index d63e2360c89..02e8a9bbaa1 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -2646,10 +2646,11 @@ class VolumeManager(manager.SchedulerDependentManager): # self.host is 'host@backend' # volume_ref['host'] is 'host@backend#pool' # Extract host before doing comparison - new_host = vol_utils.extract_host(volume_ref['host']) - if new_host != self.host: - raise exception.InvalidVolume( - reason=_("Volume is not local to this node")) + if volume_ref['host']: + new_host = vol_utils.extract_host(volume_ref['host']) + if new_host != self.host: + raise exception.InvalidVolume( + reason=_("Volume is not local to this node")) self._notify_about_consistencygroup_usage( context, group, "delete.start")