yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24185
[Bug 1386975] [NEW] VMWare: scan iscsi hba on wrong host and can't discover iscsi target
Public bug reported:
When try to attach a raw iscsi volume to a VM (using RDMp), current code
will try to get the iscsi target on the first host of the cluster. While
the VM perhaps locates on other host, and an error will be thrown as
this:
The virtual disk is either corrupted or not a supported format.
To fix this issue, need to replace get_host_ref with get_host_ref_for_vm
in the following places:
in volumeops.py:
def _iscsi_get_target(self, data):
target_portal = data['target_portal']
target_iqn = data['target_iqn']
host_mor = vm_util.get_host_ref(self._session, self._cluster) #need to get the host in which the VM resides
....
def _iscsi_rescan_hba(self, target_portal):
host_mor = vm_util.get_host_ref(self._session, self._cluster) #need to get the host in which the VM resides
......
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1386975
Title:
VMWare: scan iscsi hba on wrong host and can't discover iscsi target
Status in OpenStack Compute (Nova):
New
Bug description:
When try to attach a raw iscsi volume to a VM (using RDMp), current
code will try to get the iscsi target on the first host of the
cluster. While the VM perhaps locates on other host, and an error will
be thrown as this:
The virtual disk is either corrupted or not a supported format.
To fix this issue, need to replace get_host_ref with
get_host_ref_for_vm in the following places:
in volumeops.py:
def _iscsi_get_target(self, data):
target_portal = data['target_portal']
target_iqn = data['target_iqn']
host_mor = vm_util.get_host_ref(self._session, self._cluster) #need to get the host in which the VM resides
....
def _iscsi_rescan_hba(self, target_portal):
host_mor = vm_util.get_host_ref(self._session, self._cluster) #need to get the host in which the VM resides
......
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1386975/+subscriptions
Follow ups
References