Storwize/SVC driver detach volume failed

Bug #1310559 reported by Li Min Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Li Min Liu
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

The case on our system where create two hosts, one for fc and the other is iscsi

larry@larry-ubuntu:~$ ssh superuser@9.115.247.251 'lshost'
superuser@9.115.247.251's password:
id name port_count iogrp_count status
...
7 OpenstackUbun-28670410 1 4 offline
...
9 OpenstackUbun-20533817 2 4 degraded

larry@larry-ubuntu:~/Desktop$ less -R screen-c-vol.2014-04-16-162932.log
larry@larry-ubuntu:~/Desktop$ ssh superuser@9.115.247.251 'lsvdiskhostmap volume-d86758fb-190a-44b9-9442-845c8af93d16'
superuser@9.115.247.251's password:
id name SCSI_id host_id host_name vdisk_UID IO_group_id IO_group_name
162 volume-d86758fb-190a-44b9-9442-845c8af93d16 0 7 OpenstackUbun-28670410 60050760008F03000C00000000000104 0 io_grp0

2014-04-18 13:55:45.683 ERROR cinder.volume.drivers.ibm.storwize_svc.ssh [req-e31cb4b8-cd98-4415-a8cf-ca525e416524 cbf3ff0436ed4c13a9da2fb2eb4e9277 36e2e0918ba54edaa4ce561926870bca] CLI Exception output:
 command: ['svctask', 'rmvdiskhostmap', '-host', '"OpenstackUbun-20533817"', u'volume-d86758fb-190a-44b9-9442-845c8af93d16']
 stdout:
 stderr: CMMVC5842E The action failed because an object that was specified in the command does not exist.

when detach the volume, find the host logic error.

Li Min Liu (liminliu)
tags: added: storwize
Changed in cinder:
assignee: nobody → Li Min Liu (liminliu)
Li Min Liu (liminliu)
Changed in cinder:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to cinder (master)

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

Jay Bryant (jsbryant)
Changed in cinder:
importance: Undecided → Medium
tags: added: icehouse-backport-potential
Mike Perez (thingee)
tags: added: drivers
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/89462
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=a221a30b32aa94077f352719b2637b51c1809069
Submitter: Jenkins
Branch: master

commit a221a30b32aa94077f352719b2637b51c1809069
Author: Li Min Liu <email address hidden>
Date: Tue Apr 22 10:56:54 2014 +0800

    Storwize/SVC driver detach volume failed

    If config two backends on the same storage, but the protocol is
    different, one is FC and the other is iSCSI, that will create two
    hosts on the storage.

    When detaching the volume which is attached to the iSCSI host, the
    driver will get FC host by default, that causes volume status keeps
    'detaching'.

    Change-Id: Idbdb3861574197549625b4a6b6141197e42857ff
    Closes-Bug: #1310559

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to cinder (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/91163

Thierry Carrez (ttx)
Changed in cinder:
milestone: none → juno-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/icehouse)

Reviewed: https://review.openstack.org/91163
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=f96e991895b1720bd2e47884cf5e9b92dc1e755f
Submitter: Jenkins
Branch: stable/icehouse

commit f96e991895b1720bd2e47884cf5e9b92dc1e755f
Author: Li Min Liu <email address hidden>
Date: Tue Apr 22 10:56:54 2014 +0800

    Storwize/SVC driver detach volume failed

    If config two backends on the same storage, but the protocol is
    different, one is FC and the other is iSCSI, that will create two
    hosts on the storage.

    When detaching the volume which is attached to the iSCSI host, the
    driver will get FC host by default, that causes volume status keeps
    'detaching'.

    Change-Id: Idbdb3861574197549625b4a6b6141197e42857ff
    (cherry picked from commit a221a30b32aa94077f352719b2637b51c1809069)
    Closes-Bug: #1310559

tags: added: in-stable-icehouse
Chuck Short (zulcss)
tags: removed: icehouse-backport-potential
Thierry Carrez (ttx)
Changed in cinder:
milestone: juno-1 → 2014.2
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.