Cinder create fails with "ISCSITargetCreateFailed: Failed to create iscsi target"

Solution In Progress - Updated -

Issue

  • 'Cinder create 1' fails with the following status:
# cinder create 1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2013-10-09T04:30:14.290356      |
| display_description |                 None                 |
|     display_name    |                 None                 |
|          id         | d2ef6e9f-631a-40b7-881f-40a2a73a57fe |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+
  • From the logs: (/var/log/cinder/*.log)
2013-10-09 15:30:16    ERROR [cinder.volume.iscsi] Failed to create iscsi target for volume id:volume-d2ef6e9f-631a-40b7-881f-40a2a73a57fe.
2013-10-09 15:30:16    ERROR [cinder.volume.manager] volume volume-d2ef6e9f-631a-40b7-881f-40a2a73a57fe: create failed
2013-10-09 15:30:16    ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)
  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch
    return getattr(proxyobj, method)(ctxt, **kwargs)
  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 288, in create_volume
    LOG.error(_("volume %s: create failed"), volume_ref['name'])
  File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
    self.gen.next()
  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 281, in create_volume
    model_update = self.driver.create_export(context, volume_ref)
  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 486, in create_export
    chap_auth)
  File "/usr/lib/python2.6/site-packages/cinder/volume/iscsi.py", line 168, in create_iscsi_target
    raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-d2ef6e9f-631a-40b7-881f-40a2a73a57fe.
  • We also see:
# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
|                  ID                  | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| 1ddb9d38-d7ea-4d50-8b6b-3390a2cc3092 | error  |     None     |  1   |     None    |  false   |             |
| bbd2852d-3029-4f06-aac1-9faf90445be1 | error  |     None     |  1   |     None    |  false   |             |
| d2ef6e9f-631a-40b7-881f-40a2a73a57fe | error  |     None     |  1   |     None    |  false   |             |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+

Environment

  • Red Hat Enterprise Linux OpenStack Platform 3.0
  • iscsi storage

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In