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.
|
# and the volume status updated.
|
||||||
utils.require_driver_initialized(self.driver)
|
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 '
|
'%(instance)s at mountpoint %(mount)s on host '
|
||||||
'%(host)s.',
|
'%(host)s.'),
|
||||||
{'volume_id': volume.id, 'instance': instance_uuid,
|
{'volume_id': volume_id, 'instance': instance_uuid,
|
||||||
'mount': mountpoint, 'host': host_name_sanitized},
|
'mount': mountpoint, 'host': host_name_sanitized},
|
||||||
resource=volume)
|
resource=volume)
|
||||||
self.driver.attach_volume(context,
|
self.driver.attach_volume(context,
|
||||||
@ -1108,8 +1108,8 @@ class VolumeManager(manager.CleanableManager,
|
|||||||
# and the volume status updated.
|
# and the volume status updated.
|
||||||
utils.require_driver_initialized(self.driver)
|
utils.require_driver_initialized(self.driver)
|
||||||
|
|
||||||
LOG.debug('Detaching volume %(volume_id)s from instance '
|
LOG.info(_LI('Detaching volume %(volume_id)s from instance '
|
||||||
'%(instance)s.',
|
'%(instance)s.'),
|
||||||
{'volume_id': volume_id,
|
{'volume_id': volume_id,
|
||||||
'instance': attachment.get('instance_uuid')},
|
'instance': attachment.get('instance_uuid')},
|
||||||
resource=volume)
|
resource=volume)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user