Currently the volume manager doesn't log the instance ID during
volume detach. This is missing in cinder-api log as well. This
patch adds a log statement to print a message with volume ID and
instance ID before calling driver detach.
Change-Id: I6e765124c4e737e64cff39ec82cb81749bca28ab
# 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)
self.driver.detach_volume(context, volume, attachment)
except Exception:
with excutils.save_and_reraise_exception():