Wrong exeption is raised if deleting of LIO iSCSI target is failed

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

Bug Description

When using LVM driver and LIO target, terminate_connection in LIO
target raises ISCSITargetAttachFailed if deleting of iSCSI target
is failed.

This should be raised ISCSITargetDetachFailed.

2015-01-14 12:30:22.664 DEBUG oslo_concurrency.processutils [req-75bc6272-814f-4f79-9ee4-159c6d7a2d43 130e1342922842dbb955643b0b447f96 4f38320ef3fb48c49cf2d0f85307207c] u'sudo cinder-rootwrap /etc/cinder/rootwrap.conf cinder-rtstool delete-initiator iqn.2010-10.org.openstack:volume-7a61b635-369e-4efb-bf61-e122612df458 iqn.1994-05.com.redhat:5a6894679665' failed. Not Retrying. from (pid=30489) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:249
2015-01-14 12:30:22.665 ERROR cinder.volume.targets.lio [req-75bc6272-814f-4f79-9ee4-159c6d7a2d43 130e1342922842dbb955643b0b447f96 4f38320ef3fb48c49cf2d0f85307207c] Failed to delete initiator iqn iqn.1994-05.com.redhat:5a6894679665 to target.
2015-01-14 12:30:22.665 ERROR cinder.volume.manager [req-75bc6272-814f-4f79-9ee4-159c6d7a2d43 130e1342922842dbb955643b0b447f96 4f38320ef3fb48c49cf2d0f85307207c] Unable to terminate volume connection: Failed to attach iSCSI target for volume 7a61b635-369e-4efb-bf61-e122612df458.
2015-01-14 12:30:22.666 ERROR oslo.messaging.rpc.dispatcher [req-75bc6272-814f-4f79-9ee4-159c6d7a2d43 130e1342922842dbb955643b0b447f96 4f38320ef3fb48c49cf2d0f85307207c] Exception during message handling: Bad or unexpected response from the storage volume backend API: Unable to terminate volume connection: Failed to attach iSCSI target for volume 7a61b635-369e-4efb-bf61-e122612df458.
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/manager.py", line 975, in terminate_connection
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher raise exception.VolumeBackendAPIException(data=err_msg)
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to terminate volume connection: Failed to attach iSCSI target for volume 7a61b635-369e-4efb-bf61-e122612df458.
2015-01-14 12:30:22.666 TRACE oslo.messaging.rpc.dispatcher
2015-01-14 12:30:22.668 ERROR oslo.messaging._drivers.common [req-75bc6272-814f-4f79-9ee4-159c6d7a2d43 130e1342922842dbb955643b0b447f96 4f38320ef3fb48c49cf2d0f85307207c] Returning exception Bad or unexpected response from the storage volume backend API: Unable to terminate volume connection: Failed to attach iSCSI target for volume 7a61b635-369e-4efb-bf61-e122612df458. to caller
2015-01-14 12:30:22.668 ERROR oslo.messaging._drivers.common [req-75bc6272-814f-4f79-9ee4-159c6d7a2d43 130e1342922842dbb955643b0b447f96 4f38320ef3fb48c49cf2d0f85307207c] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/opt/stack/cinder/cinder/volume/manager.py", line 975, in terminate_connection\n raise exception.VolumeBackendAPIException(data=err_msg)\n', 'VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to terminate volume connection: Failed to attach iSCSI target for volume 7a61b635-369e-4efb-bf61-e122612df458.\n']
2015-01-14 12:30:24.550 DEBUG cinder.openstack.common.periodic_task [req-a161c024-b10f-47a6-93b5-87c600a97167 None None] Running periodic task VolumeManager._publish_service_capabilities from (pid=30489) run_periodic_tasks /opt/stack/cinder/cinder/openstack/common/periodic_task.py:199

Changed in cinder:
assignee: nobody → Mitsuhiro Tanino (mitsuhiro-tanino)
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/149787

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit 40e7f19a67070af762743b883eeb49e3aca0c379
Author: Mitsuhiro Tanino <email address hidden>
Date: Wed Jan 14 12:40:51 2015 -0500

    Raise correct exception if deleting of LIO iSCSI target is failed

    When using LVM driver and LIO target, terminate_connection in LIO
    target raises ISCSITargetAttachFailed if deleting of iSCSI target
    is failed.

    This should raise ISCSITargetDetachFailed.

    Closes-Bug: #1414207
    Change-Id: I98060d5a0bcd720df15434305ab8d3e31bdb1a43

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-2 → 2015.1.0
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.