• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
LeisureZhao
博客园    首页    新随笔    联系   管理    订阅  订阅

08.存储Cinder→5.场景学习→10.Bootable Volume

返回总目录

背景:

描述详细
  1. Volume 除了可以用作 instance 的数据盘,也可以作为启动盘(Bootable Volume)。创建Volume,此时选择Volume Source为image,创建后可以看到该volume是Bootable的。

  1. volume创建过程同未指定Source基本一致。在cinder-volume的CreateVolumeFromSpecTask执行时,会克隆镜像到volume,从source为image创建volume,同时也会标记新创建的volume为bootable
1
2
3
4
5
Jun 24 10:23:18 controller cinder-volume[9747]: DEBUG cinder.volume.manager 
[None req-bb293b6d-e545-4c7c-ab1f-0e13eb985f0f admin None] 
Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' 
(755e4775-3fa9-4279-a9ac-9a4bda7bda4c) transitioned into state 'RUNNING' from state 'PENDING' 
{{(pid=9891) _task_receiver /usr/local/lib/python2.7/dist-packages/taskflow/listeners/logging.py:194
1
2
3
4
5
6
Jun 24 10:23:18 controller cinder-volume[9747]: 
DEBUG cinder.volume.flows.manager.create_volume 
None req-bb293b6d-e545-4c7c-ab1f-0e13eb985f0f admin None] 
Cloning 0b2f9486-5433-4321-a1a8-5acec04d1b03 from image 0b8481c1-62e5-481c-ab60-a0e4d2676430  
at location (None, None). 
{(pid=9891) _create_from_image /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:880}}

1
2
3
4
5
Jun 24 10:23:20 controller cinder-volume[9747]: 
DEBUG cinder.volume.flows.manager.create_volume 
[None req-8fc4b821-b4c7-4892-a840-8f21c1af0fbb None None] 
Creating from source image-volume 8461a721-a77b-4b59-977d-9f65c00ce7ce 
{{(pid=9891) _create_from_image_cache /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:702
1
2
3
4
5
Jun 24 10:23:23 controller cinder-volume[9747]: 
DEBUG cinder.volume.flows.manager.create_volume 
[None req-8fc4b821-b4c7-4892-a840-8f21c1af0fbb None None] 
Marking volume 0b2f9486-5433-4321-a1a8-5acec04d1b03 as bootable. 
{{(pid=9891) _enable_bootable_flag /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:474
  1. 创建好的volume可用于launch instance
posted @ 2019-07-14 20:37  LeisureZhao  阅读(149)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3