Activity log for bug #1300136

Date Who What changed Old value New value Message
2014-03-31 10:26:35 Attila Fazekas bug added bug
2014-04-11 06:34:35 Attila Fazekas description /etc/cinder/cinder.conf: [DEFAULT] iscsi_helper = lioadm As admin user, I am unable delete a volume if it was not attached before. the volume status became: error_deleting $ cinder create 1 $ cinder delete daf0a29a-542b-4571-9d4d-5b9b59a7baf3 $ cinder list +--------------------------------------+----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------+--------------+------+-------------+----------+-------------+ | daf0a29a-542b-4571-9d4d-5b9b59a7baf3 | error_deleting | None | 1 | None | false | | +--------------------------------------+----------------+--------------+------+-------------+----------+-------------+ ../screen-logs/screen-c-vol.log: 2014-03-31 10:16:43.863 787 ERROR oslo.messaging.rpc.dispatcher [req-8f294457-08a3-4039-9626-ce63a2435bed 46a5bd04d46f49aabcf9edf8214df7a1 d587e4e2b14a41e4b38f62b07a130b3e - - -] Exception during message handling: No target id found for volume daf0a29a-542b-4571-9d4d-5b9b59a7baf3. 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher incoming.message)) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 144, in lvo_inner1 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return lvo_inner2(inst, context, volume_id, **kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/openstack/common/lockutils.py", line 233, in inner 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher retval = f(*args, **kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 143, in lvo_inner2 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return f(*_args, **_kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 416, in delete_volume 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher {'status': 'error_deleting'}) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/openstack/common/excutils.py", line 68, in __exit__ 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 400, in delete_volume 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher self.driver.remove_export(context, volume_ref) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/drivers/lvm.py", line 540, in remove_export 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher self.target_helper.remove_export(context, volume) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/iscsi.py", line 232, in remove_export 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher volume['id']) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/db/api.py", line 234, in volume_get_iscsi_target_num 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return IMPL.volume_get_iscsi_target_num(context, volume_id) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/db/sqlalchemy/api.py", line 119, in wrapper 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/db/sqlalchemy/api.py", line 1344, in volume_get_iscsi_target_num 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher raise exception.ISCSITargetNotFoundForVolume(volume_id=volume_id) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher ISCSITargetNotFoundForVolume: No target id found for volume daf0a29a-542b-4571-9d4d-5b9b59a7baf3. 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher When the lioadm is the iscsi helper the target just exists when the volume attached. I should be able to delete a volume what was never attached. The volumes which was attached to a vm before the delete request are deletable. /etc/cinder/cinder.conf: [DEFAULT] iscsi_helper = lioadm As admin user, I am unable to delete a volume if it was not attached before. the volume status became: error_deleting $ cinder create 1 $ cinder delete daf0a29a-542b-4571-9d4d-5b9b59a7baf3 $ cinder list +--------------------------------------+----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------+--------------+------+-------------+----------+-------------+ | daf0a29a-542b-4571-9d4d-5b9b59a7baf3 | error_deleting | None | 1 | None | false | | +--------------------------------------+----------------+--------------+------+-------------+----------+-------------+ ../screen-logs/screen-c-vol.log: 2014-03-31 10:16:43.863 787 ERROR oslo.messaging.rpc.dispatcher [req-8f294457-08a3-4039-9626-ce63a2435bed 46a5bd04d46f49aabcf9edf8214df7a1 d587e4e2b14a41e4b38f62b07a130b3e - - -] Exception during message handling: No target id found for volume daf0a29a-542b-4571-9d4d-5b9b59a7baf3. 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher incoming.message)) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 144, in lvo_inner1 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return lvo_inner2(inst, context, volume_id, **kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/openstack/common/lockutils.py", line 233, in inner 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher retval = f(*args, **kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 143, in lvo_inner2 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return f(*_args, **_kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 416, in delete_volume 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher {'status': 'error_deleting'}) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/openstack/common/excutils.py", line 68, in __exit__ 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/manager.py", line 400, in delete_volume 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher self.driver.remove_export(context, volume_ref) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/drivers/lvm.py", line 540, in remove_export 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher self.target_helper.remove_export(context, volume) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/volume/iscsi.py", line 232, in remove_export 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher volume['id']) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/db/api.py", line 234, in volume_get_iscsi_target_num 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return IMPL.volume_get_iscsi_target_num(context, volume_id) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/db/sqlalchemy/api.py", line 119, in wrapper 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/new/cinder/cinder/db/sqlalchemy/api.py", line 1344, in volume_get_iscsi_target_num 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher raise exception.ISCSITargetNotFoundForVolume(volume_id=volume_id) 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher ISCSITargetNotFoundForVolume: No target id found for volume daf0a29a-542b-4571-9d4d-5b9b59a7baf3. 2014-03-31 10:16:43.863 787 TRACE oslo.messaging.rpc.dispatcher When the lioadm is the iscsi helper the target just exists when the volume attached. I should be able to delete a volume what was never attached. The volumes which was attached to a vm before the delete request are deletable.
2014-05-06 21:00:35 Sergey Gotliv cinder: assignee Sergey Gotliv (sgotliv)
2014-05-06 21:32:15 Openstack Gerrit cinder: status New In Progress
2014-05-08 07:03:42 OpenStack Infra cinder: status In Progress Fix Committed
2014-05-16 15:23:53 Mike Perez tags icehouse-backport-potential lio
2014-05-22 07:28:57 OpenStack Infra tags icehouse-backport-potential lio icehouse-backport-potential in-stable-icehouse lio
2014-06-05 00:27:45 Alan Pevec nominated for series cinder/icehouse
2014-06-05 00:27:45 Alan Pevec bug task added cinder/icehouse
2014-06-05 00:31:24 Alan Pevec cinder/icehouse: status New Fix Committed
2014-06-05 00:31:24 Alan Pevec cinder/icehouse: milestone 2014.1.1
2014-06-05 22:31:08 Alan Pevec cinder/icehouse: status Fix Committed Fix Released
2014-06-07 22:16:31 Alan Pevec cinder: importance Undecided Medium
2014-06-07 22:16:40 Alan Pevec cinder/icehouse: importance Undecided Medium
2014-06-07 22:18:27 Alan Pevec cinder/icehouse: assignee Attila Fazekas (afazekas)
2014-06-07 22:18:37 Alan Pevec tags icehouse-backport-potential in-stable-icehouse lio lio
2014-06-11 20:05:36 Thierry Carrez cinder: status Fix Committed Fix Released
2014-06-11 20:05:36 Thierry Carrez cinder: milestone juno-1
2014-10-16 09:10:01 Thierry Carrez cinder: milestone juno-1 2014.2