O050、Create Volume 操作 (Part I)
参考https://www.cnblogs.com/CloudMan6/p/5603312.html
前面已经学习了Cinder的架构和相关组件,从本节开始详细分析 Cinder 的各种操作,首先讨论 Cinder 如何创建 volume。
Create 操作流程如下:
1、客户(可以是OpenStack 最终用户,也可以是其他程序)向 API(cinder-api)发送请求:帮我创建一个volume
2、API 对请求做一些必要处理后,向Messaging(RabbitMQ)发送了一条消息:让 Scheduler 创建一个volume
3、Scheduler (cinder-scheduler) 从 Messaging(RabbitMQ)获取到API发给他的消息,然后执行调度算法,从若干计算节点中选出节点A
4、Scheduler 向 Messaging 发送了一条消息:让存储节点A创建这个volume
5、存储节点A 的Volume(cinder-volume)从Messaging 中获取到Scheduler发给他的消息,然后通过 driver 在volume provider上创建volume
因为Create Volume操作比较复杂,我们分三次学习:
第一部分:cinder-api 的处理过程
第二部分:cinder-scheduler
第三部分:cinder-volume
向cinder-api发送请求
客户(可以是OpenStack最终用户,也可以是其他程序)向cinder-api发送请求:帮我创建一个volume。GUI上操作的菜单为 Project -> Volumes -> Volumes -> Create Volume
设置 volume 的 name 、type、size、availability zone 等基本信息
这里我们没有设置 Volume Source ,这样会创建一个空白的volume。点击 “Create Volume” 按钮。cinder-api 将接受到创建volume 的请求,可以在日志查看看到请求记录。
1、cinder api 接收到创建volume的请求,下面是访问请求接口的日志和请求的详细信息
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] POST http://10.12.30.21/volume/v3/9ed27f1df9814f91b370d1003b066b0a/volumes
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Action: 'create', calling method: create, body: {"volume": {"backup_id": null, "description": "", "multiattach": false, "source_volid": null, "consistencygroup_id": null, "snapshot_id": null, "size": 1, "name": "vol-1", "imageRef": null, "availability_zone": "nova", "volume_type": "lvmdriver-1", "metadata": {}}} {{(pid=21070) _process_stack /opt/stack/cinder/cinder/api/openstack/wsgi.py:869}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.api.v3.volumes None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Create volume request body: {u'volume': {u'backup_id': None, u'description': u'', u'imageRef': None, u'multiattach': False, u'availability_zone': u'nova', u'source_volid': None, u'name': u'vol-1', u'consistencygroup_id': None, u'volume_type': u'lvmdriver-1', u'snapshot_id': None, u'metadata': {}, u'size': 1}} {{(pid=21070) create /opt/stack/cinder/cinder/api/v3/volumes.py:252}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.api.v3.volumes None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Create volume of 1 GB
2、刷新可用区list
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Availability zone cache updated, next update will occur around 2019-06-20 10:15:56.103032. {{(pid=21070) list_availability_zones /opt/stack/cinder/cinder/volume/api.py:150}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Availability Zones retrieved successfully.
3、cinder-api启动了一个Flow工作流 volume_create_api。Flow 的执行状态依次为:PENDING、RUNNING、SUCCESS,当前状态PENDING->RUNNING。该Flow会创建5个tasks,每个task也会经历PENDING、RUNNING、SUCCESS三个状态
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Flow 'volume_create_api' (658601f4-76e5-4c76-93b7-bbd689bb36e3) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21070) _flow_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:145}}
4、ExtractVolumeRequestTask(PENDING、RUNNING、SUCCESS):获取request信息
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.ExtractVolumeRequestTask;volume:create' (66935235-dbde-4caa-9f1b-387045238e75) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.flows.api.create_volume None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Validating volume size '1' using validate_int {{(pid=21070) _extract_size /opt/stack/cinder/cinder/volume/flows/api/create_volume.py:209}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.ExtractVolumeRequestTask;volume:create' (66935235-dbde-4caa-9f1b-387045238e75) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'volume_type_id': u'22bc1956-6fd6-4142-b72a-4ab6a487944a', 'backup_id': None, 'multiattach': False, 'refresh_az': False, 'source_volid': None, 'qos_specs': None, 'consistencygroup_id': None, 'replication_status': 'disabled', 'snapshot_id': None, 'size': 1, 'availability_zones': [u'nova'], 'volume_type': VolumeType(created_at=2019-06-11T11:18:11Z,deleted=False,deleted_at=None,description=None,extra_specs={volume_backend_name='lvmdriver-1'},id=22bc1956-6fd6-4142-b72a-4ab6a487944a,is_public=True,name='lvmdriver-1',projects=[],qos_specs=<?>,qos_specs_id=None,updated_at=None), 'cgsnapshot_id': None, 'encryption_key_id': None, 'group_id': None}' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
5、QuotaReserveTask(PENDING、RUNNING、SUCCESS):预留配额
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.QuotaReserveTask;volume:create' (abdd06c0-d00d-40ed-80d6-f031f82fc7bc) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.quota None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Created reservations ['cc55830c-b1d3-4433-b47d-57b81d24e172', 'f1a8c38d-fbe2-460a-bfc2-ee678359abe7', 'd7c8c279-1c43-4a98-82bb-672f8104a57d', '4d3680e1-c32b-4659-9237-80379c5724f5'] {{(pid=21070) reserve /opt/stack/cinder/cinder/quota.py:1029}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.QuotaReserveTask;volume:create' (abdd06c0-d00d-40ed-80d6-f031f82fc7bc) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'reservations': ['cc55830c-b1d3-4433-b47d-57b81d24e172', 'f1a8c38d-fbe2-460a-bfc2-ee678359abe7', 'd7c8c279-1c43-4a98-82bb-672f8104a57d', '4d3680e1-c32b-4659-9237-80379c5724f5']}' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
6、EntryCreateTask(PENDING、RUNNING、SUCCESS):在数据库中创建volume条目
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.EntryCreateTask;volume:create' (25c7e874-306c-4e4c-a78c-1e64f2a46411) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.EntryCreateTask;volume:create' (25c7e874-306c-4e4c-a78c-1e64f2a46411) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'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=2019-06-20T09:15:56Z,deleted=False,deleted_at=None,display_description='',display_name='vol-1',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host=None,id=fe3d0886-6dfb-4cc6-898a-72e902fba912,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='9ed27f1df9814f91b370d1003b066b0a',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=None,service_uuid=None,shared_targets=True,size=1,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=None,user_id='0acd431e550c4309be26a1c52e684605',volume_attachment=<?>,volume_type=<?>,volume_type_id=22bc1956-6fd6-4142-b72a-4ab6a487944a), 'volume_properties': VolumeProperties(attach_status='detached',availability_zone='nova',cgsnapshot_id=None,consistencygroup_id=None,display_description='',display_name='vol-1',encryption_key_id=None,group_id=None,group_type_id=<?>,metadata={},multiattach=False,project_id='9ed27f1df9814f91b370d1003b066b0a',qos_specs=None,replication_status=<?>,reservations=['cc55830c-b1d3-4433-b47d-57b81d24e172','f1a8c38d-fbe2-460a-bfc2-ee678359abe7','d7c8c279-1c43-4a98-82bb-672f8104a57d','4d3680e1-c32b-4659-9237-80379c5724f5'],size=1,snapshot_id=None,source_replicaid=<?>,source_volid=None,status='creating',user_id='0acd431e550c4309be26a1c52e684605',volume_type_id=22bc1956-6fd6-4142-b72a-4ab6a487944a), 'volume_id': 'fe3d0886-6dfb-4cc6-898a-72e902fba912'}' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
7、QuotaCommitTask(PENDING、RUNNING、SUCCESS):确认配额
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.QuotaCommitTask;volume:create' (88bd14ec-20a4-4a0e-8f36-39aa11e742dc) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.QuotaCommitTask;volume:create' (88bd14ec-20a4-4a0e-8f36-39aa11e742dc) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'volume_properties': VolumeProperties(attach_status='detached',availability_zone='nova',cgsnapshot_id=None,consistencygroup_id=None,display_description='',display_name='vol-1',encryption_key_id=None,group_id=None,group_type_id=<?>,metadata={},multiattach=False,project_id='9ed27f1df9814f91b370d1003b066b0a',qos_specs=None,replication_status=<?>,reservations=['cc55830c-b1d3-4433-b47d-57b81d24e172','f1a8c38d-fbe2-460a-bfc2-ee678359abe7','d7c8c279-1c43-4a98-82bb-672f8104a57d','4d3680e1-c32b-4659-9237-80379c5724f5'],size=1,snapshot_id=None,source_replicaid=<?>,source_volid=None,status='creating',user_id='0acd431e550c4309be26a1c52e684605',volume_type_id=22bc1956-6fd6-4142-b72a-4ab6a487944a)}' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
8、VolumeCastTask(PENDING、RUNNING、SUCCESS):向cinder-scheduler发送消息,开始调度工作
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.VolumeCastTask;volume:create' (491b9a47-bcaa-4272-92af-590b18d43019) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Task 'cinder.volume.flows.api.create_volume.VolumeCastTask;volume:create' (491b9a47-bcaa-4272-92af-590b18d43019) transitioned into state 'SUCCESS' from state 'RUNNING' with result 'None' {{(pid=21070) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
9、Flow volume_create_api 已经完成,状态变化 RUNNING->SUCCESS
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Flow 'volume_create_api' (658601f4-76e5-4c76-93b7-bbd689bb36e3) transitioned into state 'SUCCESS' from state 'RUNNING' {{(pid=21070) _flow_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:145}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.volume.api None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Create volume request issued successfully.
10、cinder-api向RabbitMQ发送了一条消息,“让cinder-scheduler创建一个volume”,消息是由 VolumeCastTask发出的,但是这个动作并不会记录日志
#################################################################################################################################
1、cinder-scheduler 也会启动一个工作流 volume_create_scheduler
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Flow 'volume_create_scheduler' (3a602319-9392-478e-9fd0-6985deb60c55) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21820) _flow_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:145}}
2、ExtractSchedulerSpecTask
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.scheduler.flows.create_volume.ExtractSchedulerSpecTask;volume:create' (81bd2354-2fb4-4d22-b69b-11da166546ea) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21820) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.scheduler.flows.create_volume.ExtractSchedulerSpecTask;volume:create' (81bd2354-2fb4-4d22-b69b-11da166546ea) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'request_spec': RequestSpec(CG_backend=<?>,availability_zones=['nova'],backup_id=None,cgsnapshot_id=None,consistencygroup_id=None,group_backend=<?>,group_id=None,image_id=None,operation='create_volume',resource_backend=<?>,snapshot_id=None,source_replicaid=<?>,source_volid=None,volume=Volume(fe3d0886-6dfb-4cc6-898a-72e902fba912),volume_id=fe3d0886-6dfb-4cc6-898a-72e902fba912,volume_properties=VolumeProperties,volume_type=VolumeType(22bc1956-6fd6-4142-b72a-4ab6a487944a))}' {{(pid=21820) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
3、ScheduleCreateVolumeTask(主要的filter、weighting工作)
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create' (409faacc-99c6-46f0-bc0c-942115c6606f) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=21820) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] http://10.12.30.21/volume/v3/9ed27f1df9814f91b370d1003b066b0a/volumes returned with HTTP 202
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG oslo_db.sqlalchemy.engines None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION {{(pid=21820) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:308}}
4、ScheduleCreateVolumeTask:更新两个计算节点信息
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.host_manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Updating capabilities for DevStack-Rocky-Controller-21@lvmdriver-1#lvmdriver-1: {u'pool_name': u'lvmdriver-1', u'filter_function': None, u'goodness_function': None, u'multiattach': True, u'total_volumes': 1, u'provisioned_capacity_gb': 0.0, 'timestamp': datetime.datetime(2019, 6, 20, 9, 14, 59, 346371), u'allocated_capacity_gb': 0, 'volume_backend_name': u'lvmdriver-1', u'thin_provisioning_support': True, u'free_capacity_gb': 22.8, 'driver_version': u'3.0.0', u'location_info': u'LVMVolumeDriver:DevStack-Rocky-Controller-21:stack-volumes-lvmdriver-1:thin:0', u'total_capacity_gb': 22.8, u'thick_provisioning_support': False, u'reserved_percentage': 0, u'QoS_support': False, u'max_over_subscription_ratio': u'20.0', 'vendor_name': u'Open Source', 'storage_protocol': u'iSCSI', u'backend_state': u'up'} {{(pid=21820) update_from_volume_capability /opt/stack/cinder/cinder/scheduler/host_manager.py:358}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.host_manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Updating capabilities for DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1: {u'pool_name': u'lvmdriver-1', u'filter_function': None, u'goodness_function': None, u'multiattach': True, u'total_volumes': 1, u'provisioned_capacity_gb': 0.0, 'timestamp': datetime.datetime(2019, 6, 20, 9, 15, 43, 514862), u'allocated_capacity_gb': 0, 'volume_backend_name': u'lvmdriver-1', u'thin_provisioning_support': True, u'free_capacity_gb': 22.8, 'driver_version': u'3.0.0', u'location_info': u'LVMVolumeDriver:DevStack-Rocky-Compute-22:stack-volumes-lvmdriver-1:thin:0', u'total_capacity_gb': 22.8, u'thick_provisioning_support': False, u'reserved_percentage': 0, u'QoS_support': False, u'max_over_subscription_ratio': u'20.0', 'vendor_name': u'Open Source', 'storage_protocol': u'iSCSI', u'backend_state': u'up'} {{(pid=21820) update_from_volume_capability /opt/stack/cinder/cinder/scheduler/host_manager.py:358}}
5、ScheduleCreateVolumeTask:AvailabilityZoneFilter,返回两个结果
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.base_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Starting with 2 host(s) {{(pid=21820) get_filtered_objects /opt/stack/cinder/cinder/scheduler/base_filter.py:95}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.base_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Filter AvailabilityZoneFilter returned 2 host(s) {{(pid=21820) get_filtered_objects /opt/stack/cinder/cinder/scheduler/base_filter.py:125}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filters.capacity_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Checking if host DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1 can create a 1 GB volume (fe3d0886-6dfb-4cc6-898a-72e902fba912) {{(pid=21820) backend_passes /opt/stack/cinder/cinder/scheduler/filters/capacity_filter.py:62}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filters.capacity_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Checking provisioning for request of 1 GB. Backend: host 'DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1':free_capacity_gb: 22.8, total_capacity_gb: 22.8,allocated_capacity_gb: 0, max_over_subscription_ratio: 20.0,reserved_percentage: 0, provisioned_capacity_gb: 0.0,thin_provisioning_support: True, thick_provisioning_support: False,pools: None,updated at: 2019-06-20 09:15:43.514862 {{(pid=21820) backend_passes /opt/stack/cinder/cinder/scheduler/filters/capacity_filter.py:134}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filters.capacity_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Space information for volume creation on host DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1 (requested / avail): 1/22.8 {{(pid=21820) backend_passes /opt/stack/cinder/cinder/scheduler/filters/capacity_filter.py:172}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filters.capacity_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Checking if host DevStack-Rocky-Controller-21@lvmdriver-1#lvmdriver-1 can create a 1 GB volume (fe3d0886-6dfb-4cc6-898a-72e902fba912) {{(pid=21820) backend_passes /opt/stack/cinder/cinder/scheduler/filters/capacity_filter.py:62}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filters.capacity_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Checking provisioning for request of 1 GB. Backend: host 'DevStack-Rocky-Controller-21@lvmdriver-1#lvmdriver-1':free_capacity_gb: 22.8, total_capacity_gb: 22.8,allocated_capacity_gb: 0, max_over_subscription_ratio: 20.0,reserved_percentage: 0, provisioned_capacity_gb: 0.0,thin_provisioning_support: True, thick_provisioning_support: False,pools: None,updated at: 2019-06-20 09:14:59.346371 {{(pid=21820) backend_passes /opt/stack/cinder/cinder/scheduler/filters/capacity_filter.py:134}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filters.capacity_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Space information for volume creation on host DevStack-Rocky-Controller-21@lvmdriver-1#lvmdriver-1 (requested / avail): 1/22.8 {{(pid=21820) backend_passes /opt/stack/cinder/cinder/scheduler/filters/capacity_filter.py:172}}
6、ScheduleCreateVolumeTask:CapacityFilter,返回两个结果
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.base_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Filter CapacityFilter returned 2 host(s) {{(pid=21820) get_filtered_objects /opt/stack/cinder/cinder/scheduler/base_filter.py:125}}
7、ScheduleCreateVolumeTask:CapabilitiesFilter,返回两个结果
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.base_filter None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Filter CapabilitiesFilter returned 2 host(s) {{(pid=21820) get_filtered_objects /opt/stack/cinder/cinder/scheduler/base_filter.py:125}}
8、ScheduleCreateVolumeTask:CapacityWeigher,两个结果权重一样
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filter_scheduler None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Filtered [host 'DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1':free_capacity_gb: 22.8, total_capacity_gb: 22.8,allocated_capacity_gb: 0, max_over_subscription_ratio: 20.0,reserved_percentage: 0, provisioned_capacity_gb: 0.0,thin_provisioning_support: True, thick_provisioning_support: False,pools: None,updated at: 2019-06-20 09:15:43.514862, host 'DevStack-Rocky-Controller-21@lvmdriver-1#lvmdriver-1':free_capacity_gb: 22.8, total_capacity_gb: 22.8,allocated_capacity_gb: 0, max_over_subscription_ratio: 20.0,reserved_percentage: 0, provisioned_capacity_gb: 0.0,thin_provisioning_support: True, thick_provisioning_support: False,pools: None,updated at: 2019-06-20 09:14:59.346371] {{(pid=21820) _get_weighted_candidates /opt/stack/cinder/cinder/scheduler/filter_scheduler.py:342}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.base_weight None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Weigher CapacityWeigher returned, weigher value is {max: 456.0, min: 456.0} {{(pid=21820) get_weighed_objects /opt/stack/cinder/cinder/scheduler/base_weight.py:153}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.host_manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Weighed [WeighedHost [host: DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1, weight: 0.0], WeighedHost [host: DevStack-Rocky-Controller-21@lvmdriver-1#lvmdriver-1, weight: 0.0]] {{(pid=21820) get_weighed_backends /opt/stack/cinder/cinder/scheduler/host_manager.py:500}}
9、ScheduleCreateVolumeTask:选中节点DevStack-Rocky-Compute-22
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.filter_scheduler None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Choosing DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1 {{(pid=21820) _choose_top_backend /opt/stack/cinder/cinder/scheduler/filter_scheduler.py:563}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.host_manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Consumed 1 GB from backend: host 'DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1':free_capacity_gb: 21.8, total_capacity_gb: 22.8,allocated_capacity_gb: 1, max_over_subscription_ratio: 20.0,reserved_percentage: 0, provisioned_capacity_gb: 1.0,thin_provisioning_support: True, thick_provisioning_support: False,pools: None,updated at: 2019-06-20 09:15:56.793673 {{(pid=21820) consume_from_volume /opt/stack/cinder/cinder/scheduler/host_manager.py:316}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] GET http://10.12.30.21/volume//
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Empty body provided in request {{(pid=21070) get_body /opt/stack/cinder/cinder/api/openstack/wsgi.py:718}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: DEBUG cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] Calling method 'all' {{(pid=21070) _process_stack /opt/stack/cinder/cinder/api/openstack/wsgi.py:872}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 devstack@c-api.service: INFO cinder.api.openstack.wsgi None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin admin] http://10.12.30.21/volume// returned with HTTP 300
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create' (409faacc-99c6-46f0-bc0c-942115c6606f) transitioned into state 'SUCCESS' from state 'RUNNING' with result 'None' {{(pid=21820) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
Jun 20 17:15:56 DevStack-Rocky-Controller-21 cinder-scheduler: DEBUG cinder.scheduler.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Flow 'volume_create_scheduler' (3a602319-9392-478e-9fd0-6985deb60c55) transitioned into state 'SUCCESS' from state 'RUNNING' {{(pid=21820) _flow_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:145}}
#################################################################################################################################
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.flows.manager.create_volume None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Volume reschedule parameters: True retry: {u'num_attempts': 1, u'backends': [u'DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1'], u'hosts': [u'DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1']} {{(pid=27933) get_flow /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:1171}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG oslo_db.sqlalchemy.engines None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION {{(pid=27933) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:308}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: INFO cinder.rpc None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Automatically selected cinder-backup objects version 1.37 as minimum service version.
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: INFO cinder.rpc None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Automatically selected cinder-backup RPC version 2.1 as minimum service version.
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: WARNING castellan.key_manager.migration None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None Using MigrationKeyManager to provide support for legacy fixed_key encryption
1、cinder-volume 也会创建一个工作流 volume_create_manager
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Flow 'volume_create_manager' (cb48bde8-986d-4f74-8b2f-91d2ca89bd52) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _flow_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:145}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeRefTask;volume:create' (e2fd4a9b-3f94-41b5-bdc8-757aa314cf19) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG oslo_db.sqlalchemy.engines None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION {{(pid=27933) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:308}}
2、ExtractVolumeRefTask
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeRefTask;volume:create' (e2fd4a9b-3f94-41b5-bdc8-757aa314cf19) transitioned into state 'SUCCESS' from state 'RUNNING' with result 'Volume(_name_id=None,admin_metadata={},attach_status='detached',availability_zone='nova',bootable=False,cluster=<?>,cluster_name=None,consistencygroup=<?>,consistencygroup_id=None,created_at=2019-06-20T09:15:56Z,deleted=False,deleted_at=None,display_description='',display_name='vol-1',ec2_id=None,encryption_key_id=None,glance_metadata=<?>,group=<?>,group_id=None,host='DevStack-Rocky-Compute-22@lvmdriver-1#lvmdriver-1',id=fe3d0886-6dfb-4cc6-898a-72e902fba912,launched_at=None,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id='9ed27f1df9814f91b370d1003b066b0a',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=2019-06-20T09:15:56Z,service_uuid=None,shared_targets=True,size=1,snapshot_id=None,snapshots=<?>,source_volid=None,status='creating',terminated_at=None,updated_at=2019-06-20T09:15:56Z,user_id='0acd431e550c4309be26a1c52e684605',volume_attachment=<?>,volume_type=VolumeType(22bc1956-6fd6-4142-b72a-4ab6a487944a),volume_type_id=22bc1956-6fd6-4142-b72a-4ab6a487944a)' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
3、OnFailureRescheduleTask
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.OnFailureRescheduleTask;volume:create' (74970533-cac6-4039-a947-bf58b46db9d8) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.OnFailureRescheduleTask;volume:create' (74970533-cac6-4039-a947-bf58b46db9d8) transitioned into state 'SUCCESS' from state 'RUNNING' with result 'None' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
4、ExtractVolumeSpecTask
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeSpecTask;volume:create' (9cee2c8a-9f57-4e75-96e2-09e5ebeba1c8) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeSpecTask;volume:create' (9cee2c8a-9f57-4e75-96e2-09e5ebeba1c8) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-fe3d0886-6dfb-4cc6-898a-72e902fba912', 'type': 'raw', 'volume_id': u'fe3d0886-6dfb-4cc6-898a-72e902fba912'}' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
5、NotifyVolumeActionTask
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.NotifyVolumeActionTask;volume:create, create.start' (e7e43eb6-6a5c-4735-8cdb-9473278ceaf4) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.NotifyVolumeActionTask;volume:create, create.start' (e7e43eb6-6a5c-4735-8cdb-9473278ceaf4) transitioned into state 'SUCCESS' from state 'RUNNING' with result 'None' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
6、CreateVolumeFromSpecTask:执行创建动作
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (0e58da85-aea8-4126-a69e-677172fad9e0) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: INFO cinder.volume.flows.manager.create_volume None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Volume fe3d0886-6dfb-4cc6-898a-72e902fba912: being created as raw with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-fe3d0886-6dfb-4cc6-898a-72e902fba912'}
Jun 20 17:15:56 DevStack-Rocky-Compute-22 cinder-volume: DEBUG oslo_concurrency.processutils None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvcreate -T -V 1g -n volume-fe3d0886-6dfb-4cc6-898a-72e902fba912 stack-volumes-lvmdriver-1/stack-volumes-lvmdriver-1-pool {{(pid=27933) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:372}}
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: DEBUG oslo_concurrency.processutils None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] CMD "sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvcreate -T -V 1g -n volume-fe3d0886-6dfb-4cc6-898a-72e902fba912 stack-volumes-lvmdriver-1/stack-volumes-lvmdriver-1-pool" returned: 0 in 0.538s {{(pid=27933) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:409}}
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (0e58da85-aea8-4126-a69e-677172fad9e0) transitioned into state 'SUCCESS' from state 'RUNNING' with result '{'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-fe3d0886-6dfb-4cc6-898a-72e902fba912'}' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
7、CreateVolumeOnFinishTask:收尾工作
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeOnFinishTask;volume:create, create.end' (1b01b714-531c-48d7-9f62-8f13ce1d5413) transitioned into state 'RUNNING' from state 'PENDING' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:194}}
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: INFO cinder.volume.flows.manager.create_volume None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Volume volume-fe3d0886-6dfb-4cc6-898a-72e902fba912 (fe3d0886-6dfb-4cc6-898a-72e902fba912): created successfully
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeOnFinishTask;volume:create, create.end' (1b01b714-531c-48d7-9f62-8f13ce1d5413) transitioned into state 'SUCCESS' from state 'RUNNING' with result 'None' {{(pid=27933) _task_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:183}}
8、volume_create_manager工作流完成
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: DEBUG cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Flow 'volume_create_manager' (cb48bde8-986d-4f74-8b2f-91d2ca89bd52) transitioned into state 'SUCCESS' from state 'RUNNING' {{(pid=27933) _flow_receiver /usr/lib/python2.7/site-packages/taskflow/listeners/logging.py:145}}
Jun 20 17:15:57 DevStack-Rocky-Compute-22 cinder-volume: INFO cinder.volume.manager None req-5eb13d6b-917f-48f6-a28c-17ae0d99c799 admin None] Created volume successfully.
9、查看创建结果
[stack@DevStack-Rocky-Compute-22 ~]$ cinder list
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+
| fe3d0886-6dfb-4cc6-898a-72e902fba912 | available | vol-1 | 1 | lvmdriver-1 | false | |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+