]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add debug output indicating provider_location
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 28 Oct 2014 16:21:52 +0000 (10:21 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 28 Oct 2014 16:22:23 +0000 (10:22 -0600)
Just add a simple debug statement to indicate the resultant
provider location of a tgtadm volume after create_export.

Change-Id: Ide12986400c54978ee5b387d615b203c0f93f029

cinder/volume/iscsi.py

index 3835ff578c3f0117d4feafc4d919b1cf7e58b298..78a9a7d6d017756de099c0ddf5f199ea766fd0df 100644 (file)
@@ -58,6 +58,8 @@ class _ExportMixin(object):
         data = {}
         data['location'] = self._iscsi_location(
             conf.iscsi_ip_address, tid, iscsi_name, conf.iscsi_port, lun)
+
+        LOG.debug('Set provider_location to: %s', data['location'])
         data['auth'] = self._iscsi_authentication(
             'CHAP', chap_username, chap_password)
         return data