summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Navarro Perez <pednape@gmail.com>2013-03-12 03:37:41 -0700
committerPedro Navarro Perez <pednape@gmail.com>2013-03-14 06:10:06 -0700
commit702beca2a55e70ea014e92dd91784859a2698510 (patch)
treeda14e36c1d920c553f85692f0f5128c232be4763
parent2830ef14eca5695e796e8e3104528bbc8766bafa (diff)
downloadnova-702beca2a55e70ea014e92dd91784859a2698510.tar.gz
nova-702beca2a55e70ea014e92dd91784859a2698510.tar.xz
nova-702beca2a55e70ea014e92dd91784859a2698510.zip
Fixes an iSCSI connector issue in the Hyper-V driver.
It fixes how Hyper-v nova driver is returning iscsi connection information. It affects the way cinder plugins used that information to implement ACL based on initiator_name. Fixes: bug #1153975 Change-Id: I40dc3bba9c9a76585ba9bdd938043d4bfef195c8
-rw-r--r--nova/virt/hyperv/basevolumeutils.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/nova/virt/hyperv/basevolumeutils.py b/nova/virt/hyperv/basevolumeutils.py
index 32221843f..7437bf52f 100644
--- a/nova/virt/hyperv/basevolumeutils.py
+++ b/nova/virt/hyperv/basevolumeutils.py
@@ -28,15 +28,11 @@ if sys.platform == 'win32':
import _winreg
import wmi
-from oslo.config import cfg
-
from nova import block_device
from nova.openstack.common import log as logging
from nova.virt import driver
LOG = logging.getLogger(__name__)
-CONF = cfg.CONF
-CONF.import_opt('my_ip', 'nova.netconf')
class BaseVolumeUtils(object):
@@ -76,10 +72,7 @@ class BaseVolumeUtils(object):
"Choosing the default one"))
computer_system = self._conn_cimv2.Win32_ComputerSystem()[0]
initiator_name = "iqn.1991-05.com.microsoft:" + hostname.lower()
- return {
- 'ip': CONF.my_ip,
- 'initiator': initiator_name,
- }
+ return initiator_name
def volume_in_mapping(self, mount_device, block_device_info):
block_device_list = [block_device.strip_dev(vol['mount_device'])