lvm+tgt Volume detach fails on Suse Linux

Bug #1334091 reported by ZhangChi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

SUSE Linux / Icehouse / CINDER /LVM TGT iSCSI

I am trying to dettach volume using Icehouse version. The backend model is LVM, tgt and iSCSI.
However, after a long while, the volume keeps in "dettaching" status.
Then I open cinder-volume.log, find exceptions as bellows:

2014-06-20 14:38:22.438 28194 DEBUG cinder.openstack.common.processutils [req-838ec792-58b1-43d8-abfa-91ffc73b9682 be28e258705447bfbeb82bfa40aeafb3 01a37fd860394171b127ac4fd3692cda - - -] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --force --delete iqn.2010-10.org.openstack:volume-1f5396df-8bc9-4717-8b41-a18209ef16d3 execute /usr/lib64/python2.6/site-packages/cinder/openstack/common/processutils.py:142
2014-06-20 14:38:22.531 28194 DEBUG cinder.openstack.common.processutils [req-838ec792-58b1-43d8-abfa-91ffc73b9682 be28e258705447bfbeb82bfa40aeafb3 01a37fd860394171b127ac4fd3692cda - - -] Result was 22 execute /usr/lib64/python2.6/site-packages/cinder/openstack/common/processutils.py:167
2014-06-20 14:38:22.532 28194 ERROR cinder.brick.iscsi.iscsi [req-838ec792-58b1-43d8-abfa-91ffc73b9682 be28e258705447bfbeb82bfa40aeafb3 01a37fd860394171b127ac4fd3692cda - - -] Failed to remove iscsi target for volume id:1f5396df-8bc9-4717-8b41-a18209ef16d3: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --force --delete iqn.2010-10.org.openstack:volume-1f5396df-8bc9-4717-8b41-a18209ef16d3
Exit code: 22
2014-06-20 14:39:26.580 28194 TRACE cinder.volume.manager Traceback (most recent call last):
2014-06-20 14:39:26.580 28194 TRACE cinder.volume.manager self.driver.remove_export(context.elevated(), volume_ref)
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib64/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib64/python2.6/site-packages/cinder/volume/manager.py", line 874, in terminate_connection
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher raise exception.RemoveExportException(volume=volume_id, reason=ex)
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher RemoveExportException: Failed to remove export for volume 1f5396df-8bc9-4717-8b41-a18209ef16d3: Failed to remove iscsi target for volume 1f5396df-8bc9-4717-8b41-a18209ef16d3.
2014-06-20 14:39:26.582 28194 TRACE oslo.messaging.rpc.dispatcher

Seems like the problem appears because execute the cmd : sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --force --delete iqn.2010-10.org.openstack:volume-1f5396df-8bc9-4717-8b41-a18209ef16d3 return error code 22
and using cmd tgt-admin -s shows:
Target 8: iqn.2010-10.org.openstack:volume-1f5396df-8bc9-4717-8b41-a18209ef16d3
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 9
            Initiator: iqn.1996-04.de.suse:01:c758bf924a8a
            Connection: 0
                IP Address: 10.67.144.60
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET 00080000
            SCSI SN: beaf80
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: None
        LUN: 1
            Type: disk
            SCSI ID: IET 00080001
            SCSI SN: beaf81
            Size: 1074 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: /dev/cinder-volumes/volume-1f5396df-8bc9-4717-8b41-a18209ef16d3
    Account information:
    ACL information:

and links from compute node still exist and using iscsiadm -m node -T iqn.2010-10.org.openstack:volume-1f5396df-8bc9-4717-8b41-a18209ef16d3 –u seems help resovle this problem.

I am wondering why the problem appears all the time, can anybody help me. Many thanks

ZhangChi (chzhang8)
description: updated
description: updated
Revision history for this message
ZhangChi (chzhang8) wrote :

Does somebody met the probem before in SUSE Linux Enterprise Server 11 SP3? tks

Revision history for this message
ZhangChi (chzhang8) wrote :

Ok, I find Icehouse dettaching volume all right in Ubuntu.

ZhangChi (chzhang8)
description: updated
summary: - lvm+tgt Volume dettach
+ lvm+tgt Volume detach fails on Suse Linux
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Cleanup

Closing stale bug. If this is still an issue please reopen.

Changed in cinder:
status: New → Invalid
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.