一、实验说明
按照官方文档搭建queens版本openstack,拓扑如下图所示:
二、实验目的
准备好openstack组件安装前所需要的其他软件,如MariaDB,RabbitMQ等。
三、操作步骤
- 修改所有节点/etc/hosts文件
如果hosts文件中有将主机名解析到127.0.0.1的配置段,将其注销 - 所有节点关闭NetworkManager
[[email protected] ~]# systemctl stop NetworkManager.service
[[email protected] ~]# systemctl disable NetworkManager.service - 所有节点添加openstack需要的yum源
[[email protected] ~]# vim /etc/yum.repo.d/OpenStack-Queens.repo[OpenStack-Queens] name=OpenStack-Queens baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-queens/ enable=1 gpgcheck=0
- 安装NTP服务
controller节点进行以下操作:
[[email protected] ~]# yum install chrony
[[email protected] ~]# vim /etc/chrony.confallow 172.16.80.0/24
[[email protected] ~]# systemctl enable chronyd.service
[[email protected] ~]# systemctl start chronyd.service
[[email protected] ~]# chronyc sources
其他节点进行以下操作:
[[email protected] ~]# yum install chrony
[[email protected] ~]# vim /etc/chrony.confserver controller iburst
[[email protected] ~]# systemctl enable chronyd.service
[[email protected] ~]# systemctl start chronyd.service
[[email protected] ~]# chronyc sources - 安装数据库
原文地址:http://blog.51cto.com/arkling/2133898
时间: 2024-10-27 11:25:56