Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Issue was that tgtadm failed to create the ISCSI target, the volume entered 'error' state and Cinder does not try to create targets or "fix" volumes that is in the state 'error'. The issue can be seen in the volume.log cinder log as:

2015-01-23 10:53:15.791 3193 ERROR cinder.brick.iscsi.iscsi [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to recover attempt to create iscsi backing lun for volume id:iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/cinder-volumes/volume-5d51f748-aec8-4da7-a3d2-1083afb720b6
2015-01-23 10:53:15.871 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to re-export volume 5d51f748-aec8-4da7-a3d2-1083afb720b6: setting to error state
2015-01-23 10:53:15.872 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.
2015-01-23 10:53:15.872 3193 TRACE cinder.volume.manager ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.

A bug fix is already proposed here: https://review.openstack.org/#/c/147566/5 To solve the issue I did the following: cinder reset-state --state in-use 5d51f748-aec8-4da7-a3d2-1083afb720b6 /etc/init.d/openstack-cinder-volume restart iscsiadm -m node -T iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6 -l

Thanks to Avishay Traeger (avishay on #openstack-cinder) for the help.

Issue was that tgtadm failed to create the ISCSI target, the volume entered 'error' state and Cinder does not try to create targets or "fix" volumes that is in the state 'error'. The issue can be seen in the volume.log cinder log as:

2015-01-23 10:53:15.791 3193 ERROR cinder.brick.iscsi.iscsi [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to recover attempt to create iscsi backing lun for volume id:iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/cinder-volumes/volume-5d51f748-aec8-4da7-a3d2-1083afb720b6
2015-01-23 10:53:15.871 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to re-export volume 5d51f748-aec8-4da7-a3d2-1083afb720b6: setting to error state
2015-01-23 10:53:15.872 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.
2015-01-23 10:53:15.872 3193 TRACE cinder.volume.manager ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.

A bug fix is already proposed here: https://review.openstack.org/#/c/147566/5 https://review.openstack.org/#/c/147566/5

To solve the issue I did the following: cinder reset-state --state in-use 5d51f748-aec8-4da7-a3d2-1083afb720b6 /etc/init.d/openstack-cinder-volume restart iscsiadm -m node -T iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6 -l

Thanks to Avishay Traeger (avishay on #openstack-cinder) for the help.

Issue was that tgtadm failed to create the ISCSI target, the volume entered 'error' state and Cinder does not try to create targets or "fix" volumes that is in the state 'error'. The issue can be seen in the volume.log cinder log as:

2015-01-23 10:53:15.791 3193 ERROR cinder.brick.iscsi.iscsi [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to recover attempt to create iscsi backing lun for volume id:iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/cinder-volumes/volume-5d51f748-aec8-4da7-a3d2-1083afb720b6
2015-01-23 10:53:15.871 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to re-export volume 5d51f748-aec8-4da7-a3d2-1083afb720b6: setting to error state
2015-01-23 10:53:15.872 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.
2015-01-23 10:53:15.872 3193 TRACE cinder.volume.manager ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.

A bug fix is already proposed here: https://review.openstack.org/#/c/147566/5

To solve the issue I did the following: following:

cinder reset-state --state in-use 5d51f748-aec8-4da7-a3d2-1083afb720b6 /etc/init.d/openstack-cinder-volume restart iscsiadm -m node -T iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6 -l

Thanks to Avishay Traeger (avishay on #openstack-cinder) for the help.

Issue was that tgtadm failed to create the ISCSI target, the volume entered 'error' state and Cinder does not try to create targets or "fix" volumes that is in the state 'error'. The issue can be seen in the volume.log cinder log as:

2015-01-23 10:53:15.791 3193 ERROR cinder.brick.iscsi.iscsi [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to recover attempt to create iscsi backing lun for volume id:iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/cinder-volumes/volume-5d51f748-aec8-4da7-a3d2-1083afb720b6
2015-01-23 10:53:15.871 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to re-export volume 5d51f748-aec8-4da7-a3d2-1083afb720b6: setting to error state
2015-01-23 10:53:15.872 3193 ERROR cinder.volume.manager [req-c3c06a94-c49e-470b-a956-cfc0802024bd - - - - -] Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.
2015-01-23 10:53:15.872 3193 TRACE cinder.volume.manager ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-5d51f748-aec8-4da7-a3d2-1083afb720b6.

A bug fix is already proposed here: https://review.openstack.org/#/c/147566/5

To solve the issue I did the following:

cinder reset-state --state in-use 5d51f748-aec8-4da7-a3d2-1083afb720b6
/etc/init.d/openstack-cinder-volume restart
iscsiadm -m node -T iqn.2010-10.org.openstack:volume-5d51f748-aec8-4da7-a3d2-1083afb720b6 -l

-l

Thanks to Avishay Traeger (avishay on #openstack-cinder) for the help.