热门标签 | HotTags
当前位置:  开发笔记 > 前端 > 正文

O052、CreateVolume操作(PartIII)

参考https:www.cnblogs.comCloudMan6p5617980.htmlJun2017:15:56
参考 https://www.cnblogs.com/CloudMan6/p/5617980.html
 
 
 
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    |             |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+
 
 
 
 

推荐阅读
  • 使用 Azure Service Principal 和 Microsoft Graph API 获取 AAD 用户列表
    本文介绍了一段通用代码示例,该代码不仅能够操作 Azure Active Directory (AAD),还可以通过 Azure Service Principal 的授权访问和管理 Azure 订阅资源。Azure 的架构可以分为两个层级:AAD 和 Subscription。 ... [详细]
  • 本文介绍如何使用Python进行文本处理,包括分词和生成词云图。通过整合多个文本文件、去除停用词并生成词云图,展示文本数据的可视化分析方法。 ... [详细]
  • QBlog开源博客系统:Page_Load生命周期与参数传递优化(第四部分)
    本教程将深入探讨QBlog开源博客系统的Page_Load生命周期,并介绍一种简洁的参数传递重构方法。通过视频演示和详细讲解,帮助开发者更好地理解和应用这些技术。 ... [详细]
  • 技术分享:从动态网站提取站点密钥的解决方案
    本文探讨了如何从动态网站中提取站点密钥,特别是针对验证码(reCAPTCHA)的处理方法。通过结合Selenium和requests库,提供了详细的代码示例和优化建议。 ... [详细]
  • 本文探讨了如何像程序员一样思考,强调了将复杂问题分解为更小模块的重要性,并讨论了如何通过妥善管理和复用已有代码来提高编程效率。 ... [详细]
  • python的交互模式怎么输出名文汉字[python常见问题]
    在命令行模式下敲命令python,就看到类似如下的一堆文本输出,然后就进入到Python交互模式,它的提示符是>>>,此时我们可以使用print() ... [详细]
  • 火星商店问题:线段树分治与持久化Trie树的应用
    本题涉及编号为1至n的火星商店,每个商店有一个永久商品价值v。操作包括每天在指定商店增加一个新商品,以及查询某段时间内某些商店中所有商品(含永久商品)与给定密码值的最大异或结果。通过线段树分治和持久化Trie树来高效解决此问题。 ... [详细]
  • Java 中的 BigDecimal pow()方法,示例 ... [详细]
  • 本文总结了汇编语言中第五至第八章的关键知识点,涵盖间接寻址、指令格式、安全编程空间、逻辑运算指令及数据重复定义等内容。通过详细解析这些内容,帮助读者更好地理解和应用汇编语言的高级特性。 ... [详细]
  • 本文详细介绍了如何使用Maven高效管理多模块项目,涵盖项目结构设计、依赖管理和构建优化等方面。通过具体的实例和配置说明,帮助开发者更好地理解和应用Maven在复杂项目中的优势。 ... [详细]
  • 深入理解Cookie与Session会话管理
    本文详细介绍了如何通过HTTP响应和请求处理浏览器的Cookie信息,以及如何创建、设置和管理Cookie。同时探讨了会话跟踪技术中的Session机制,解释其原理及应用场景。 ... [详细]
  • 本文详细介绍了如何使用Python编写爬虫程序,从豆瓣电影Top250页面抓取电影信息。文章涵盖了从基础的网页请求到处理反爬虫机制,再到多页数据抓取的全过程,并提供了完整的代码示例。 ... [详细]
  • 如何配置Unturned服务器及其消息设置
    本文详细介绍了Unturned服务器的配置方法和消息设置技巧,帮助用户了解并优化服务器管理。同时,提供了关于云服务资源操作记录、远程登录设置以及文件传输的相关补充信息。 ... [详细]
  • Hadoop入门与核心组件详解
    本文详细介绍了Hadoop的基础知识及其核心组件,包括HDFS、MapReduce和YARN。通过本文,读者可以全面了解Hadoop的生态系统及应用场景。 ... [详细]
  • 京东云图片上传注册指南
    本文详细介绍了如何在京东云平台完成账号注册并实现图片上传功能,涵盖从注册到配置的完整流程。 ... [详细]
author-avatar
小琪宝宝2010
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有