Merge "Log detailed attach/detach volumes info"
This commit is contained in:
commit
4fef72f32f
@ -1026,12 +1026,12 @@ class VolumeManager(manager.CleanableManager,
|
||||
# and the volume status updated.
|
||||
utils.require_driver_initialized(self.driver)
|
||||
|
||||
LOG.debug('Attaching volume %(volume_id)s to instance '
|
||||
'%(instance)s at mountpoint %(mount)s on host '
|
||||
'%(host)s.',
|
||||
{'volume_id': volume.id, 'instance': instance_uuid,
|
||||
'mount': mountpoint, 'host': host_name_sanitized},
|
||||
resource=volume)
|
||||
LOG.info(_LI('Attaching volume %(volume_id)s to instance '
|
||||
'%(instance)s at mountpoint %(mount)s on host '
|
||||
'%(host)s.'),
|
||||
{'volume_id': volume_id, 'instance': instance_uuid,
|
||||
'mount': mountpoint, 'host': host_name_sanitized},
|
||||
resource=volume)
|
||||
self.driver.attach_volume(context,
|
||||
volume,
|
||||
instance_uuid,
|
||||
@ -1108,11 +1108,11 @@ class VolumeManager(manager.CleanableManager,
|
||||
# and the volume status updated.
|
||||
utils.require_driver_initialized(self.driver)
|
||||
|
||||
LOG.debug('Detaching volume %(volume_id)s from instance '
|
||||
'%(instance)s.',
|
||||
{'volume_id': volume_id,
|
||||
'instance': attachment.get('instance_uuid')},
|
||||
resource=volume)
|
||||
LOG.info(_LI('Detaching volume %(volume_id)s from instance '
|
||||
'%(instance)s.'),
|
||||
{'volume_id': volume_id,
|
||||
'instance': attachment.get('instance_uuid')},
|
||||
resource=volume)
|
||||
self.driver.detach_volume(context, volume, attachment)
|
||||
except Exception:
|
||||
with excutils.save_and_reraise_exception():
|
||||
|
Loading…
x
Reference in New Issue
Block a user