[Openstack] Cinder created volume with status error

Wilson Kwok leiw324 at gmail.com
Tue May 12 06:31:16 UTC 2015


Hello,

*I have using following command to create cinder volume:*

root at openstack:/home/wilson# cinder create --display-name Vol1 10
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2015-05-12T06:26:11.094705      |
| display_description |                 None                 |
|     display_name    |                 Vol1                 |
|      encrypted      |                False                 |
|          id         | a577999a-64f3-4ffb-9044-af5758a260cd |
|       metadata      |                  {}                  |
|         size        |                  10                  |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+

*After created this volume, I type cinder list that displaying Status
error:*

root at openstack:/home/wilson# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
|                  ID                  | Status | Display Name | Size |
Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| a577999a-64f3-4ffb-9044-af5758a260cd | error  |     Vol1     |  10  |
None    |  false   |             |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+

*Here is vgscan information:*

root at openstack:/home/wilson# vgs
  VG             #PV #LV #SN Attr   VSize  VFree
  cinder-volumes   1   0   0 wz--n- 10.00g 10.00g

*Here is cinder.conf information:*

[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
#volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes

backend = cinder.openstack.common.rpc.impl_kombu
rabbit_host = 172.28.0.111
rabbit_port = 5672
rabbit_userid = guest
rabbit_password = 123RabbitMQFluX7

[keystone_authtoken]
auth_url = http://172.28.0.111:5000
auth_host = 172.28.0.111
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = OpenStackNLinK

[database]
connection = mysql://cinderUser:StrongPass@localhost/cinder

*Here is cinder-scheduler.log:*

2015-05-12 14:00:42.997 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:01:43.007 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:02:43.012 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:03:43.010 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:04:43.041 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:05:43.045 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:06:43.040 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:07:43.028 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:08:43.036 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:09:43.040 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:10:43.033 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:11:43.040 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:12:43.042 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:13:43.049 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:14:43.041 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:15:43.041 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:16:43.042 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:17:43.045 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:18:43.045 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:19:43.047 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:20:43.047 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:21:43.055 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:22:43.058 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:23:43.056 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:24:43.060 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:25:43.060 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:26:11.164 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': u'bdc7eb8989f5426c93ac9135a6dc0877',
'tenant': u'9fd79c4ff16949f0b154fb321abedf66', 'user_identity':
u'bdc7eb8989f5426c93ac9135a6dc0877 9fd79c4ff16949f0b154fb321abedf66 - - -'}
2015-05-12 14:26:11.553 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': u'bdc7eb8989f5426c93ac9135a6dc0877',
'tenant': u'9fd79c4ff16949f0b154fb321abedf66', 'user_identity':
u'bdc7eb8989f5426c93ac9135a6dc0877 9fd79c4ff16949f0b154fb321abedf66 - - -'}
2015-05-12 14:26:11.561 1895 ERROR cinder.scheduler.filter_scheduler
[req-52d1d731-88a2-4f26-9a60-568f3e675a2c bdc7eb8989f5426c93ac9135a6dc0877
9fd79c4ff16949f0b154fb321abedf66 - - -] Error scheduling None from last
vol-service: openstack : [u'Traceback (most recent call last):\n', u'  File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/executor.py",
line 36, in _execute_task\n    result = task.execute(**arguments)\n', u'
 File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 594, in execute\n    **volume_spec)\n', u'  File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 564, in _create_raw_volume\n    return
self.driver.create_volume(volume_ref)\n', u'  File
"/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 196,
in create_volume\n    mirror_count)\n', u'  File
"/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 185,
in _create_volume\n    vg_ref.create_volume(name, size, lvm_type,
mirror_count)\n', u'  File
"/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 475,
in create_volume\n    run_as_root=True)\n', u'  File
"/usr/lib/python2.7/dist-packages/cinder/utils.py", line 136, in execute\n
   return processutils.execute(*cmd, **kwargs)\n', u'  File
"/usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py",
line 179, in execute\n    cmd=sanitized_cmd)\n', u'ProcessExecutionError:
Unexpected error while running command.\nCommand: sudo cinder-rootwrap
/etc/cinder/rootwrap.conf lvcreate -n
volume-a577999a-64f3-4ffb-9044-af5758a260cd cinder-volumes -L 10g\nExit
code: 5\nStdout: u\'\'\nStderr: u\'  Volume group "cinder-volumes" has
insufficient free space (2559 extents): 2560 required.\\n\'\n']
2015-05-12 14:26:11.565 1895 WARNING
cinder.scheduler.filters.capacity_filter
[req-52d1d731-88a2-4f26-9a60-568f3e675a2c bdc7eb8989f5426c93ac9135a6dc0877
9fd79c4ff16949f0b154fb321abedf66 - - -] Insufficient free space for volume
creation (requested / avail): 10/0.0
2015-05-12 14:26:11.570 1895 ERROR cinder.scheduler.flows.create_volume
[req-52d1d731-88a2-4f26-9a60-568f3e675a2c bdc7eb8989f5426c93ac9135a6dc0877
9fd79c4ff16949f0b154fb321abedf66 - - -] Failed to schedule_create_volume:
No valid host was found.
2015-05-12 14:26:43.064 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:27:43.062 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2015-05-12 14:28:43.081 1895 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}

*Here is cinder-volume.log:*

2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
**volume_spec)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher   File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 564, in _create_raw_volume
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher     return
self.driver.create_volume(volume_ref)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher   File
"/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 196,
in create_volume
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
mirror_count)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher   File
"/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 185,
in _create_volume
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
vg_ref.create_volume(name, size, lvm_type, mirror_count)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher   File
"/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 475,
in create_volume
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
run_as_root=True)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher   File
"/usr/lib/python2.7/dist-packages/cinder/utils.py", line 136, in execute
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher     return
processutils.execute(*cmd, **kwargs)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher   File
"/usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py",
line 179, in execute
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
cmd=sanitized_cmd)
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
ProcessExecutionError: Unexpected error while running command.
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher Command:
sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n
volume-a577999a-64f3-4ffb-9044-af5758a260cd cinder-volumes -L 10g
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher Exit code:
5
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher Stdout: u''
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher Stderr: u'
 Volume group "cinder-volumes" has insufficient free space (2559 extents):
2560 required.\n'
2015-05-12 14:26:11.610 1943 TRACE oslo.messaging.rpc.dispatcher
2015-05-12 14:26:11.653 1943 ERROR oslo.messaging._drivers.common
[req-52d1d731-88a2-4f26-9a60-568f3e675a2c bdc7eb8989f5426c93ac9135a6dc0877
9fd79c4ff16949f0b154fb321abedf66 - - -] Returning exception Unexpected
error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n
volume-a577999a-64f3-4ffb-9044-af5758a260cd cinder-volumes -L 10g
Exit code: 5
Stdout: u''
Stderr: u'  Volume group "cinder-volumes" has insufficient free space (2559
extents): 2560 required.\n' to caller
2015-05-12 14:26:11.654 1943 ERROR oslo.messaging._drivers.common
[req-52d1d731-88a2-4f26-9a60-568f3e675a2c bdc7eb8989f5426c93ac9135a6dc0877
9fd79c4ff16949f0b154fb321abedf66 - - -] ['Traceback (most recent call
last):\n', '  File
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
133, in _dispatch_and_reply\n    incoming.message))\n', '  File
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
176, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt,
args)\n', '  File
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
122, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt,
**new_args)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 363, in
create_volume\n    _run_flow()\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 356, in
_run_flow\n    flow_engine.run()\n', '  File
"/usr/lib/python2.7/dist-packages/taskflow/utils/lock_utils.py", line 53,
in wrapper\n    return f(*args, **kwargs)\n', '  File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
line 111, in run\n    self._run()\n', '  File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
line 121, in _run\n    self._revert(misc.Failure())\n', '  File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
line 78, in _revert\n    misc.Failure.reraise_if_any(failures.values())\n',
'  File "/usr/lib/python2.7/dist-packages/taskflow/utils/misc.py", line
558, in reraise_if_any\n    failures[0].reraise()\n', '  File
"/usr/lib/python2.7/dist-packages/taskflow/utils/misc.py", line 565, in
reraise\n    six.reraise(*self._exc_info)\n', '  File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/executor.py",
line 36, in _execute_task\n    result = task.execute(**arguments)\n', '
 File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 594, in execute\n    **volume_spec)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 564, in _create_raw_volume\n    return
self.driver.create_volume(volume_ref)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 196,
in create_volume\n    mirror_count)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 185,
in _create_volume\n    vg_ref.create_volume(name, size, lvm_type,
mirror_count)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 475,
in create_volume\n    run_as_root=True)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/utils.py", line 136, in execute\n
   return processutils.execute(*cmd, **kwargs)\n', '  File
"/usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py",
line 179, in execute\n    cmd=sanitized_cmd)\n', 'ProcessExecutionError:
Unexpected error while running command.\nCommand: sudo cinder-rootwrap
/etc/cinder/rootwrap.conf lvcreate -n
volume-a577999a-64f3-4ffb-9044-af5758a260cd cinder-volumes -L 10g\nExit
code: 5\nStdout: u\'\'\nStderr: u\'  Volume group "cinder-volumes" has
insufficient free space (2559 extents): 2560 required.\\n\'\n']
2015-05-12 14:26:43.067 1943 INFO cinder.volume.manager [-] Updating volume
status
2015-05-12 14:27:43.067 1943 INFO cinder.volume.manager [-] Updating volume
status
2015-05-12 14:28:43.085 1943 INFO cinder.volume.manager [-] Updating volume
status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150512/22927574/attachment.html>


More information about the Openstack mailing list