Huawei drivers: Failed to map lun 0 to instance

Bug #1135618 reported by zhangchao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
zhangchao

Bug Description

If we firstly map a LUN whose host LUN ID is not 0 to host, we can also find LUN 0 in host, but its device path is "-".

root@ubuntu28:~# lsscsi
[1:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[2:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[11:0:0:0] disk HUASY S5500T 2105 -
[11:0:0:1] disk HUASY S5500T 2105 /dev/sdb

Then if we map another LUN whose host LUN ID is 0, the host will failed to find volume.

2013-02-28 12:37:47 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33 -p 111.111.111.33:3260 --login from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:176
2013-02-28 12:37:47 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Result was 0 from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:191
2013-02-28 12:37:47 DEBUG nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] iscsiadm ('--login',): stdout= stderr= from (pid=1878) _run_iscsiadm /usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py:117
2013-02-28 12:37:47 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33 -p 111.111.111.33:3260 --op update -n node.startup -v automatic from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:176
2013-02-28 12:37:47 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Result was 0 from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:191
2013-02-28 12:37:47 DEBUG nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] iscsiadm ('--op', 'update', '-n', 'node.startup', '-v', 'automatic'): stdout= stderr= from (pid=1878) _run_iscsiadm /usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py:117
2013-02-28 12:37:47 WARNING nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] ISCSI volume not yet found at: vdetc. Will rescan & retry. Try number: 0
2013-02-28 12:37:47 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33 -p 111.111.111.33:3260 --rescan from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:176
2013-02-28 12:37:48 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Result was 0 from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:191
2013-02-28 12:37:48 DEBUG nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] iscsiadm ('--rescan',): stdout=Rescanning session [sid: 9, target: iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33, portal: 111.111.111.33,3260]
 stderr= from (pid=1878) _run_iscsiadm /usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py:117
2013-02-28 12:37:49 WARNING nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] ISCSI volume not yet found at: vdetc. Will rescan & retry. Try number: 1
2013-02-28 12:37:49 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33 -p 111.111.111.33:3260 --rescan from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:176
2013-02-28 12:37:49 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Result was 0 from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:191
2013-02-28 12:37:49 DEBUG nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] iscsiadm ('--rescan',): stdout=Rescanning session [sid: 9, target: iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33, portal: 111.111.111.33,3260]
 stderr= from (pid=1878) _run_iscsiadm /usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py:117
2013-02-28 12:37:53 WARNING nova.virt.libvirt.volume [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] ISCSI volume not yet found at: vdetc. Will rescan & retry. Try number: 2
2013-02-28 12:37:53 DEBUG nova.utils [req-43e733de-2f04-4fa4-b972-30606c1a52f4 d4f4bc0acff84395802825c936941c63 82cfc838dcea43fdb7bbef54706e7246] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2006-08.com.huaweisymantec:oceanspace:2100303037303037::1020001:111.111.111.33 -p 111.111.111.33:3260 --rescan from (pid=1878) execute /usr/lib/python2.7/dist-packages/nova/utils.py:176

Tags: drivers
zhangchao (zhangchao010)
Changed in cinder:
assignee: nobody → zhangchao (zhangchao010)
zhangchao (zhangchao010)
Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23338

Mike Perez (thingee)
tags: added: drivers
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/23338
Committed: http://github.com/openstack/cinder/commit/c09f69948df29e84907960f69fb5ef46745ebef6
Submitter: Jenkins
Branch: master

commit c09f69948df29e84907960f69fb5ef46745ebef6
Author: zhangchao010 <email address hidden>
Date: Tue Mar 5 00:07:41 2013 +0800

    Fix bugs for Huawei driver

    This fixes two bugs for Huawei iscsi driver.
    (1)If firstly we map LUN 1(just not LUN 0) to host,we can also
    find LUN 0 mapped,whose device path is '-'.Then we will failed
    to map a real LUN 0.So,we avoid mapping LUN 0 to host by setting
    every volume's host LUN ID larger than 0,instead of generating it
    automatically.
    (2)Check valid size of resource pools when creating snapshot and
    make sure it larger than 1 GB.

    Fixes bug: 1135618
    Fixes bug: 1136980
    Change-Id: I412e78bf84c95cb51431c45cc084e9ec6a8efb78

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: grizzly-rc1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.