Merge "Log detailed attach/detach volumes info"
This commit is contained in:
commit
4fef72f32f
@ -1026,10 +1026,10 @@ class VolumeManager(manager.CleanableManager,
|
||||
# and the volume status updated.
|
||||
utils.require_driver_initialized(self.driver)
|
||||
|
||||
LOG.debug('Attaching volume %(volume_id)s to instance '
|
||||
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,
|
||||
'%(host)s.'),
|
||||
{'volume_id': volume_id, 'instance': instance_uuid,
|
||||
'mount': mountpoint, 'host': host_name_sanitized},
|
||||
resource=volume)
|
||||
self.driver.attach_volume(context,
|
||||
@ -1108,8 +1108,8 @@ 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.',
|
||||
LOG.info(_LI('Detaching volume %(volume_id)s from instance '
|
||||
'%(instance)s.'),
|
||||
{'volume_id': volume_id,
|
||||
'instance': attachment.get('instance_uuid')},
|
||||
resource=volume)
|
||||
|
Loading…
x
Reference in New Issue
Block a user