Log connection info returned from driver
Currently there is no way to verify the connection info returned from the driver to cinder is the same as what cinder sends to nova (or other consumers) to connect to the volume. This log will help narrow down issues during attachments since there are many components involved (nova, cinder, os-brick). Change-Id: I8ed3567f8ae6c6384244cc1d07f1eaafbd7bf58e
This commit is contained in:
parent
c93131faf6
commit
6a0b41a8ff
|
@ -47,6 +47,7 @@ from oslo_serialization import jsonutils
|
|||
from oslo_service import periodic_task
|
||||
from oslo_utils import excutils
|
||||
from oslo_utils import importutils
|
||||
from oslo_utils import strutils
|
||||
from oslo_utils import timeutils
|
||||
from oslo_utils import units
|
||||
from oslo_utils import uuidutils
|
||||
|
@ -4727,6 +4728,9 @@ class VolumeManager(manager.CleanableManager,
|
|||
self.db.volume_attachment_update(ctxt, attachment.id, values)
|
||||
|
||||
connection_info['attachment_id'] = attachment.id
|
||||
LOG.debug("Connection info returned from driver %(connection_info)s",
|
||||
{'connection_info':
|
||||
strutils.mask_dict_password(connection_info)})
|
||||
return connection_info
|
||||
|
||||
def attachment_update(self,
|
||||
|
|
Loading…
Reference in New Issue