Hyper-V attach iscsi base volume failed due to WMI exception

Asked by ChangBo Guo(gcb)

Issue Description:
   I created a volume on RedHat6.3 with "volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver" and created a instance on HyPer-V (windows 2012), then tried to attach the volume to the instance ,but failed . It throwes Exception <x_wmi: Unexpected COM Error (-2147352567, 'Exception occurred.', (0, u'SWbemObjectEx', u'Generic failure ', None, 0, -2147217407), None)>

Test steps:

1. create a volume and boot a instance :
    cinder create 1 --display-name iscsi_volume1
     nova boot --image e73592aa-ea41-4d44-84df-2911483bacca --flavor 1 gcb_iscsi1

 2. check status
 [root@localhost /]# cinder list
+--------------------------------------+-----------+---------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+---------------+------+-------------+----------+-------------+
| 7f4adee1-a615-41c2-955e-4a266dc18693 | available | iscsi_volume1 | 1 | None | false | |
| a1af7c46-ed5e-49f2-a2f8-5e725bf89ed6 | available | iscsi_volume2 | 1 | None | false | |
+--------------------------------------+-----------+---------------+------+-------------+----------+-------------+
[root@localhost /]# nova list
+--------------------------------------+------------+--------+----------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------------+--------+----------------------+
| d1501b79-073e-4f68-9849-e4b767b2e258 | gcb_iscsi1 | ACTIVE | private=192.168.88.2 |
| 58ea7ef2-efee-4434-8b85-57e3cdce63a2 | gcb_iscsi2 | ACTIVE | private=192.168.88.3 |
+--------------------------------------+------------+--------+----------------------+

3. attach volume
 nova volume-attach d1501b79-073e-4f68-9849-e4b767b2e258 7f4adee1-a615-41c2-955e-4a266dc18693 /dev/sdf

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alessandro Pilotti (alexpilotti) said :
#1

iSCSI is a standard protocol, so I expect the same behaviour at least for a large subset of features between MS iSCSI, Linux tgt, Open-iSCSI, etc

Here's a pointer on the MS implementation: http://technet.microsoft.com/en-us/library/ee338476(v=ws.10).aspx
Wikipedia is as usual a good starting point: http://en.wikipedia.org/wiki/ISCSI

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.