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
Fix proposed to branch: master /review. openstack. org/149787
Review: https:/