环境信息 相关主机信息:
代码语言:javascript复制IP地址 主机名
192.168.182.131 controller01
192.168.182.132 controller02
环境准备 设置hosts 机器都需执行
代码语言:javascript复制[root@bogon yum.repos.d]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.182.131 controller01
192.168.182.132 controller02
[root@localhost ~]# hostnamectl set-hostname controller01
[root@localhost ~]# hostnamectl set-hostname controller02
ntp 可以使用chrony,自己做ntp
这里直接ntpdate同步阿里云的时间服务器
代码语言:javascript复制[root@localhost ~]# ntpdate ntp1.aliyun.com
关防火墙,关selinux
代码语言:javascript复制设置openstack packages
[root@controller01 yum.repos.d]# yum install centos-release-openstack-rocky -y
将openstack的yum源换成阿里的
https://mirrors.aliyun.com/centos/7.7.1908/cloud/x86_64/
[root@controller01 ~]# yum upgrade -y
# 安装openstackclient
[root@controller01 ~]# yum install python-openstackclient -y
# selinux开启时需要安装openstack-selinux,这里已将seliux设置为默认关闭
[root@controller01 ~]# yum install openstack-selinux -y