VMAX driver - superfluous debug messages causing error
When creating a boot volume, there is an error that is thrown
when the volume is the only volume in the default storage group.
Closes-Bug:
@@ -641,28 +641,12 @@ class VMAXMasking(object):
:param storageGroupInstanceName: storage group instance name
:raises: VolumeBackendAPIException
"""
-
- assocVolumeInstanceNames = self.get_devices_from_storage_group(
- conn, storageGroupInstanceName)
- LOG.debug(
- "There are %(length)lu associated with the default storage group "
- "before removing volume %(volumeName)s.",
- {'length': len(assocVolumeInstanceNames),
- 'volumeName': volumeName})
volInstance = conn.GetInstance(volumeInstanceName, LocalOnly=False)
self._remove_volume_from_sg(
conn, controllerConfigService, storageGroupInstanceName,
volInstance, maskingViewDict['extraSpecs'])
- assocVolumeInstanceNames = self.get_devices_from_storage_group(
- conn, storageGroupInstanceName)
- LOG.debug(
- "There are %(length)lu associated with the default storage group "
- "after removing volume %(volumeName)s.",
- {'length': len(assocVolumeInstanceNames),
- 'volumeName': volumeName})
-
# Required for unit tests.
emptyStorageGroupInstanceName = (
self._wrap_get_storage_group_from_volume(
