Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

11.3. 上传 Atomic 主机镜像

director 需要 Red Hat Enterprise Linux 7 Atomic Host 的 Cloud Image 的副本作为 atomic-image 导入到其镜像中。这是因为在创建 Overcloud 的置备阶段,Compute 节点需要此镜像用于基础操作系统。

从 Red Hat Enterprise Linux 7 Atomic Host 产品页面(https://access.redhat.com/downloads/content/271/ver=/rhel---7/7.2.2-2/x86_64/product-software)下载云镜像的副本,并将其保存到 stack 用户的主目录中的 images 子目录。

镜像下载完成后,以 stack 用户身份将镜像导入到 director。

$ glance image-create --name atomic-image --file ~/images/rhel-atomic-cloud-7.2-12.x86_64.qcow2 --disk-format qcow2 --container-format bare

这会将镜像与其他 Overcloud 镜像一起导入。

$ glance image-list
+--------------------------------------+------------------------+
| ID                                   | Name                   |
+--------------------------------------+------------------------+
| 27b5bad7-f8b2-4dd8-9f69-32dfe84644cf | atomic-image           |
| 08c116c6-8913-427b-b5b0-b55c18a01888 | bm-deploy-kernel       |
| aec4c104-0146-437b-a10b-8ebc351067b9 | bm-deploy-ramdisk      |
| 9012ce83-4c63-4cd7-a976-0c972be747cd | overcloud-full         |
| 376e95df-c1c1-4f2a-b5f3-93f639eb9972 | overcloud-full-initrd  |
| 0b5773eb-4c64-4086-9298-7f28606b68af | overcloud-full-vmlinuz |
+--------------------------------------+------------------------+