openstack集群部署—集群环境

环境信息

相关主机信息:

IP地址 主机名
192.168.182.131 controller01
192.168.182.132 controller02

环境准备

设置hosts

机器都需执行

1
2
3
4
5
[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
1
2
[root@localhost ~]# hostnamectl  set-hostname controller01
[root@localhost ~]# hostnamectl set-hostname controller02

ntp

可以使用chrony,自己做ntp

这里直接ntpdate同步阿里云的时间服务器

1
[root@localhost ~]# ntpdate ntp1.aliyun.com

关防火墙,关selinux

设置openstack packages

1
2
3
4
[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/
1
2
3
4
5
6
[root@controller01 ~]# yum upgrade -y

# 安装openstackclient
[root@controller01 ~]# yum install python-openstackclient -y
# selinux开启时需要安装openstack-selinux,这里已将seliux设置为默认关闭
[root@controller01 ~]# yum install openstack-selinux -y
Donate