美文网首页虚拟化
OpenStack安装笔记四

OpenStack安装笔记四

作者: zhouf_cq | 来源:发表于2019-02-09 09:44 被阅读0次

之前安装了nova 的controller node,今天试一下compute node
参照官网文档 Install and configure a compute node
进入CentOS版本

Install the packages

yum install -y openstack-nova-compute

下载安装的包有205个,有许多的依赖包

修改配置文件/etc/nova/nova.conf
修改完配置文件后,检查cpu虚拟化支持

egrep -c '(vmx|svm)' /proc/cpuinfo

根据查询结果进行配置修改
开启并启动服务

systemctl enable libvirtd.service openstack-nova-compute.service
systemctl start libvirtd.service openstack-nova-compute.service

在controller端添加compute node的注册

[root@controller ~]# . admin-openrc
[root@controller ~]# openstack compute service list --service nova-compute
+----+--------------+----------+------+---------+-------+----------------------------+
| ID | Binary       | Host     | Zone | Status  | State | Updated At                 |
+----+--------------+----------+------+---------+-------+----------------------------+
|  6 | nova-compute | computer | nova | enabled | up    | 2019-02-09T05:27:04.000000 |
+----+--------------+----------+------+---------+-------+----------------------------+
[root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'cell1': c2b3d0d9-a848-4b70-9880-1131bf442adb
Checking host mapping for compute host 'computer': fd0cd889-6b4c-4cab-9072-d113b420b118
Creating host mapping for compute host 'computer': fd0cd889-6b4c-4cab-9072-d113b420b118
Found 1 unmapped computes in cell: c2b3d0d9-a848-4b70-9880-1131bf442adb

接下来验证

[root@controller ~]# . admin-openrc
[root@controller ~]# openstack compute service list
[root@controller ~]# openstack catalog list
[root@controller ~]# openstack image list
[root@controller ~]# nova-status upgrade check

其它验证都正常,只是image list显示结果为空,未知,待查

......

网上找到了处理image list为空的方法,参考 https://www.cnblogs.com/charles1ee/p/6404412.html

首先下载镜像

wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

使用glance创建一个镜像

openstack image create "cirros" \
  --file cirros-0.3.4-x86_64-disk.img \
  --disk-format qcow2 --container-format bare \
  --public

单独一行命令为

openstack image create "cirros"  --file cirros-0.3.4-x86_64-disk.img  --disk-format qcow2 --container-format bare  --public

这个需要之前的环境admin-openrc
重新查看image list就有显示了

[root@controller ~]# openstack image list
+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| 6bf059f4-b31c-4ff0-ab45-db28e8a154bc | cirros | active |
+--------------------------------------+--------+--------+

相关文章

  • OpenStack安装笔记四

    之前安装了nova 的controller node,今天试一下compute node参照官网文档 Instal...

  • openstack(一、环境准备)

    参考Centos7.1搭建openstack私有云云计算Openstack-Liberty版-安装教程 -学习笔记...

  • OpenStack安装笔记一

    在此记录安装OpenStack笔记,安装CentOS7及配置网络过程在此略过 以下内容参考了网上的文档,其中包括 ...

  • 安装OpenStack Glance 组件

    安装OpenStack Glance 组件 本篇主要记录一下 如何安装 OpenStack 的 Glance 镜像...

  • OpenStack安装笔记二

    前面按照官网上的操作进行了一部分,之前的一部分来源于官网中文版后面发现中文版和英文版有此内容不一致,中文版的“环境...

  • OpenStack安装笔记三

    之前安装了Identity Service接下来试下Image service – glance installa...

  • OpenStack安装笔记六

    为了方便操作,看看OpenStack的控制台,准备安装一下 Dashboard – horizon install...

  • OpenStack安装笔记五

    今天应该是配置网络部分Networking Service,参考官方文档当前版本 neutron 11.0.7.d...

  • Openstack安装-Keystone

    本篇开始安装Openstack,在VMware上的单个虚拟机上安装 Keystone 概念 它是Openstack...

  • OpenStack部署-1安装环境

    利用Devstack 可以安装快速openstack,但为了更好的理清openstack,本文使用手动安装。参考安...

网友评论

    本文标题:OpenStack安装笔记四

    本文链接:https://www.haomeiwen.com/subject/edeasqtx.html