Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【openstack使用中问题】单独在卷管理界面创建卷失败(使用镜像源创建卷) #6

Closed
meetbill opened this issue Jan 29, 2018 · 0 comments

Comments

@meetbill
Copy link
Owner

meetbill commented Jan 29, 2018

0 openstack 使用中issues

issues 汇总表

1 现象

【项目】-->【卷】-->【创建卷】

卷来源勾选为镜像,然后进行创建卷,创建失败

2 日志

/var/log/cinder/volume.log

2018-01-29 14:23:11.269 24105 INFO cinder.volume.manager [req-59bd7665-64f0-4e82-964a-fb3cd9987052 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Deleted volume successfully.
2018-01-29 14:23:23.653 24105 INFO cinder.volume.flows.manager.create_volume [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Volume bcd93ca4-7518-4960-94d2-3c0c7221727a: being created as image with specification: {'status': u'creating', 'image_location': (None, None), 'volume_size': 40, 'volume_name': 'volume-bcd93ca4-7518-4960-94d2-3c0c7221727a', 'image_id': '4f1835aa-9cd3-430d-a1cd-2765b62a4a06', 'image_service': <cinder.image.glance.GlanceImageService object at 0x7054350>, 'image_meta': {'status': u'active', 'name': u'SUSE_12', 'deleted': False, 'container_format': u'bare', 'created_at': datetime.datetime(2018, 1, 2, 1, 30, 40, tzinfo=<iso8601.Utc>), 'disk_format': u'qcow2', 'updated_at': datetime.datetime(2018, 1, 2, 1, 33, 21, tzinfo=<iso8601.Utc>), 'id': u'4f1835aa-9cd3-430d-a1cd-2765b62a4a06', 'owner': u'26c5d6f2c0d042d28810691a488fa52f', 'protected': False, 'min_ram': 0, 'checksum': u'10a56dda21c68f5a263e90ac8487b120', 'min_disk': 0, 'is_public': True, 'deleted_at': None, 'properties': {}, 'size': 10739318784}}
2018-01-29 14:23:23.660 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (7ea6d1b7-ade4-40c3-8a25-e62f3fed0733) transitioned into state 'FAILURE' from state 'RUNNING'
5 predecessors (most recent first):
  Atom 'cinder.volume.flows.manager.create_volume.NotifyVolumeActionTask;volume:create, create.start' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'volume': Volume(_name_id=None,admin_metadata=<?>,attach_status='detached',availability_zone='nova',bootable=False,cluster=<?>,cluster_name=None,consistencygroup=<?>,consistencygroup_id=None,created_at=2018-01-29T06:23:22Z,deleted=False,deleted_at=None,display_description='',display_name='SUSE_12',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host='controller@ceph#RBD',id=bcd93ca4-7518-4960-94d2-3c0c7221727a,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='367aa003a97349ba8fcd54de4a24185b',provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status=None,scheduled_at=2018-01-29T06:23:23Z,size=40,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=2018-01-29T06:23:23Z,user_id='640cdb8784be4a479f4da40b32d52b66',volume_attachment=<?>,volume_type=<?>,volume_type_id=None), 'context': <cinder.context.RequestContext object at 0x776ddd0>}, 'provides': None}
  |__Atom 'cinder.volume.flows.manager.create_volume.ExtractVolumeSpecTask;volume:create' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'volume': Volume(_name_id=None,admin_metadata=<?>,attach_status='detached',availability_zone='nova',bootable=False,cluster=<?>,cluster_name=None,consistencygroup=<?>,consistencygroup_id=None,created_at=2018-01-29T06:23:22Z,deleted=False,deleted_at=None,display_description='',display_name='SUSE_12',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host='controller@ceph#RBD',id=bcd93ca4-7518-4960-94d2-3c0c7221727a,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='367aa003a97349ba8fcd54de4a24185b',provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status=None,scheduled_at=2018-01-29T06:23:23Z,size=40,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=2018-01-29T06:23:23Z,user_id='640cdb8784be4a479f4da40b32d52b66',volume_attachment=<?>,volume_type=<?>,volume_type_id=None), 'request_spec': RequestSpec(CG_backend=<?>,cgsnapshot_id=None,consistencygroup_id=None,group_backend=<?>,group_id=None,image_id=4f1835aa-9cd3-430d-a1cd-2765b62a4a06,snapshot_id=None,source_replicaid=None,source_volid=None,volume=Volume(bcd93ca4-7518-4960-94d2-3c0c7221727a),volume_id=bcd93ca4-7518-4960-94d2-3c0c7221727a,volume_properties=VolumeProperties,volume_type=None), 'context': <cinder.context.RequestContext object at 0x776ddd0>}, 'provides': {'status': u'creating', 'image_location': (None, None), 'image_id': '4f1835aa-9cd3-430d-a1cd-2765b62a4a06', 'volume_id': 'bcd93ca4-7518-4960-94d2-3c0c7221727a', 'volume_size': 40, 'image_service': <cinder.image.glance.GlanceImageService object at 0x7054350>, 'image_meta': {'status': u'active', 'name': u'SUSE_12', 'deleted': False, 'container_format': u'bare', 'created_at': datetime.datetime(2018, 1, 2, 1, 30, 40, tzinfo=<iso8601.Utc>), 'disk_format': u'qcow2', 'updated_at': datetime.datetime(2018, 1, 2, 1, 33, 21, tzinfo=<iso8601.Utc>), 'id': u'4f1835aa-9cd3-430d-a1cd-2765b62a4a06', 'owner': u'26c5d6f2c0d042d28810691a488fa52f', 'protected': False, 'min_ram': 0, 'checksum': u'10a56dda21c68f5a263e90ac8487b120', 'min_disk': 0, 'is_public': True, 'deleted_at': None, 'properties': {}, 'size': 10739318784}, 'volume_name': 'volume-bcd93ca4-7518-4960-94d2-3c0c7221727a', 'type': 'image'}}
     |__Atom 'cinder.volume.flows.manager.create_volume.OnFailureRescheduleTask;volume:create' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'volume': Volume(_name_id=None,admin_metadata=<?>,attach_status='detached',availability_zone='nova',bootable=False,cluster=<?>,cluster_name=None,consistencygroup=<?>,consistencygroup_id=None,created_at=2018-01-29T06:23:22Z,deleted=False,deleted_at=None,display_description='',display_name='SUSE_12',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host='controller@ceph#RBD',id=bcd93ca4-7518-4960-94d2-3c0c7221727a,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='367aa003a97349ba8fcd54de4a24185b',provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status=None,scheduled_at=2018-01-29T06:23:23Z,size=40,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=2018-01-29T06:23:23Z,user_id='640cdb8784be4a479f4da40b32d52b66',volume_attachment=<?>,volume_type=<?>,volume_type_id=None), 'filter_properties': {u'config_options': {}, u'request_spec': {u'resource_properties': {u'status': u'creating', u'volume_type_id': None, u'group_id': None, u'user_id': u'640cdb8784be4a479f4da40b32d52b66', u'availability_zone': u'nova', u'reservations': [u'0c7ffd91-32f2-426c-b839-f0cd96150aa5', u'c867cb15-2e94-46cb-a5d6-6b35ffddf25e'], u'multiattach': False, u'attach_status': u'detached', u'source_volid': None, u'cgsnapshot_id': None, u'metadata': {}, u'qos_specs': None, u'encryption_key_id': None, u'display_description': u'', u'snapshot_id': None, u'source_replicaid': None, u'project_id': u'367aa003a97349ba8fcd54de4a24185b', u'consistencygroup_id': None, u'size': 40, u'display_name': u'SUSE_12'}, u'source_replicaid': None, u'volume_properties': {u'status': u'creating', u'volume_type_id': None, u'group_id': None, u'user_id': u'640cdb8784be4a479f4da40b32d52b66', u'availability_zone': u'nova', u'reservations': [u'0c7ffd91-32f2-426c-b839-f0cd96150aa5', u'c867cb15-2e94-46cb-a5d6-6b35ffddf25e'], u'multiattach': False, u'attach_status': u'detached', u'source_volid': None, u'cgsnapshot_id': None, u'metadata': {}, u'qos_specs': None, u'encryption_key_id': None, u'display_description': u'', u'snapshot_id': None, u'source_replicaid': None, u'project_id': u'367aa003a97349ba8fcd54de4a24185b', u'consistencygroup_id': None, u'size': 40, u'display_name': u'SUSE_12'}, u'source_volid': None, u'cgsnapshot_id': None, u'volume': {u'migration_status': None, u'provider_id': None, u'availability_zone': u'nova', u'terminated_at': None, u'updated_at': None, u'provider_geometry': None, u'replication_extended_status': None, u'replication_status': None, u'snapshot_id': None, u'ec2_id': None, u'deleted_at': None, u'id': u'bcd93ca4-7518-4960-94d2-3c0c7221727a', u'size': 40, u'display_name': u'SUSE_12', u'display_description': u'', u'cluster_name': None, u'name_id': u'bcd93ca4-7518-4960-94d2-3c0c7221727a', u'volume_admin_metadata': [], u'project_id': u'367aa003a97349ba8fcd54de4a24185b', u'launched_at': None, u'scheduled_at': None, u'status': u'creating', u'volume_type_id': None, u'multiattach': False, u'deleted': False, u'provider_location': None, u'volume_glance_metadata': [], u'host': None, u'consistencygroup_id': None, u'source_volid': None, u'provider_auth': None, u'previous_status': None, u'group_id': None, u'name': u'volume-bcd93ca4-7518-4960-94d2-3c0c7221727a', u'user_id': u'640cdb8784be4a479f4da40b32d52b66', u'bootable': False, u'created_at': u'2018-01-29T06:23:22.000000', u'attach_status': u'detached', u'volume_metadata': [], u'_name_id': None, u'encryption_key_id': None, u'replication_driver_data': None, u'metadata': {}}, u'image_id': u'4f1835aa-9cd3-430d-a1cd-2765b62a4a06', u'snapshot_id': None, u'consistencygroup_id': None, u'volume_type': None, u'volume_id': u'bcd93ca4-7518-4960-94d2-3c0c7221727a', u'group_id': None}, u'user_id': u'640cdb8784be4a479f4da40b32d52b66', u'availability_zone': u'nova', u'volume_type': None, u'qos_specs': None, u'retry': {u'num_attempts': 1, u'backends': [u'controller@ceph#RBD'], u'hosts': [u'controller@ceph#RBD']}, u'metadata': {}, u'resource_type': None, u'size': 40}, 'context': <cinder.context.RequestContext object at 0x776ddd0>, 'request_spec': RequestSpec(CG_backend=<?>,cgsnapshot_id=None,consistencygroup_id=None,group_backend=<?>,group_id=None,image_id=4f1835aa-9cd3-430d-a1cd-2765b62a4a06,snapshot_id=None,source_replicaid=None,source_volid=None,volume=Volume(bcd93ca4-7518-4960-94d2-3c0c7221727a),volume_id=bcd93ca4-7518-4960-94d2-3c0c7221727a,volume_properties=VolumeProperties,volume_type=None)}, 'provides': None}
        |__Atom 'cinder.volume.flows.manager.create_volume.ExtractVolumeRefTask;volume:create' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'volume': Volume(_name_id=None,admin_metadata=<?>,attach_status='detached',availability_zone='nova',bootable=False,cluster=<?>,cluster_name=None,consistencygroup=<?>,consistencygroup_id=None,created_at=2018-01-29T06:23:22Z,deleted=False,deleted_at=None,display_description='',display_name='SUSE_12',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host='controller@ceph#RBD',id=bcd93ca4-7518-4960-94d2-3c0c7221727a,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='367aa003a97349ba8fcd54de4a24185b',provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status=None,scheduled_at=2018-01-29T06:23:23Z,size=40,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=2018-01-29T06:23:23Z,user_id='640cdb8784be4a479f4da40b32d52b66',volume_attachment=<?>,volume_type=<?>,volume_type_id=None), 'context': <cinder.context.RequestContext object at 0x776ddd0>}, 'provides': Volume(_name_id=None,admin_metadata=<?>,attach_status='detached',availability_zone='nova',bootable=False,cluster=<?>,cluster_name=None,consistencygroup=<?>,consistencygroup_id=None,created_at=2018-01-29T06:23:22Z,deleted=False,deleted_at=None,display_description='',display_name='SUSE_12',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host='controller@ceph#RBD',id=bcd93ca4-7518-4960-94d2-3c0c7221727a,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='367aa003a97349ba8fcd54de4a24185b',provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status=None,scheduled_at=2018-01-29T06:23:23Z,size=40,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=2018-01-29T06:23:23Z,user_id='640cdb8784be4a479f4da40b32d52b66',volume_attachment=<?>,volume_type=<?>,volume_type_id=None)}
           |__Flow 'volume_create_manager'
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager Traceback (most recent call last):
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager     result = task.execute(**arguments)
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 902, in execute
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager     **volume_spec)
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 807, in _create_from_image
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager     image_meta['size'], image_id)
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 493, in check_available_space
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager     raise exception.ImageUnacceptable(image_id=image_id, reason=msg)
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager ImageUnacceptable: Image 4f1835aa-9cd3-430d-a1cd-2765b62a4a06 is unacceptable: There is no space to convert image. Requested: 10739318784, available: 3903762432
2018-01-29 14:23:23.660 24105 ERROR cinder.volume.manager 
2018-01-29 14:23:23.668 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (7ea6d1b7-ade4-40c3-8a25-e62f3fed0733) transitioned into state 'REVERTED' from state 'REVERTING'
2018-01-29 14:23:23.672 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Task 'cinder.volume.flows.manager.create_volume.NotifyVolumeActionTask;volume:create, create.start' (8435ae82-fe66-4e33-a9aa-a6932900841e) transitioned into state 'REVERTED' from state 'REVERTING'
2018-01-29 14:23:23.676 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeSpecTask;volume:create' (4c43cf81-0ece-493c-8744-360d6dd9a386) transitioned into state 'REVERTED' from state 'REVERTING'
2018-01-29 14:23:23.685 24105 ERROR cinder.volume.flows.manager.create_volume [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Volume bcd93ca4-7518-4960-94d2-3c0c7221727a: create failed
2018-01-29 14:23:23.687 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Task 'cinder.volume.flows.manager.create_volume.OnFailureRescheduleTask;volume:create' (e029cb9c-b5f6-475f-9d7e-f2b1412169f2) transitioned into state 'REVERTED' from state 'REVERTING'
2018-01-29 14:23:23.690 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeRefTask;volume:create' (e9343fcb-1247-46f1-885e-4f7b09f44ef2) transitioned into state 'REVERTED' from state 'REVERTING'
2018-01-29 14:23:23.693 24105 WARNING cinder.volume.manager [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Flow 'volume_create_manager' (ee61fe36-378e-47a4-8a18-3ecc65665611) transitioned into state 'REVERTED' from state 'RUNNING'
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server [req-f89511b3-8899-44e0-8cc8-4ab87e1c7bde 640cdb8784be4a479f4da40b32d52b66 367aa003a97349ba8fcd54de4a24185b - default default] Exception during message handling
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "<string>", line 2, in create_volume
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/objects/cleanable.py", line 207, in wrapper
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     result = f(*args, **kwargs)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 654, in create_volume
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     _run_flow()
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 646, in _run_flow
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     flow_engine.run()
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     for _state in self.run_iter(timeout=timeout):
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     failure.Failure.reraise_if_any(er_failures)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 336, in reraise_if_any
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     failures[0].reraise()
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 343, in reraise
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     six.reraise(*self._exc_info)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     result = task.execute(**arguments)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 902, in execute
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     **volume_spec)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 807, in _create_from_image
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     image_meta['size'], image_id)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 493, in check_available_space
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server     raise exception.ImageUnacceptable(image_id=image_id, reason=msg)
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server ImageUnacceptable: Image 4f1835aa-9cd3-430d-a1cd-2765b62a4a06 is unacceptable: There is no space to convert image. Requested: 10739318784, available: 3903762432
2018-01-29 14:23:23.700 24105 ERROR oslo_messaging.rpc.server

3 分析及解决方法

3.1 排查日志

cinder 日志中提示将镜像转换为卷时空间不足,cinder 是在控制节点

3.2 查看源代码

根据日志中提示,查看/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py的 807行

image_utils.check_available_space(CONF.image_conversion_dir,image_meta['size'], image_id)

代码中看到是拿配置文件中的 image_conversion_dir 目录和镜像大小进行对比

openstack 中数据目录说明可以看---目录结构说明

3.3 找到问题

问题原因是,使用镜像源创建卷时(即使用卷来创建虚拟机的系统盘),cinder 会将镜像先下载到 /etc/cinder/cinder.conf 中的 image_conversion_dir 配置的目录中,然后进行转换,此目录空间不足导致转换失败

3.4 解决问题

将将数据迁移到一个空间比较足的目录中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant