openstack queens 第一节

系统:centos7 x86_64

controller 2c+6g+40g 192.168.147.50 可以nat上网
compute 1c+4g+40g 192.168.147.60 可以nat上网
neutron 1c+2g+20g 192.168.147.70 可以nat上网

关闭selinux:

sudo setenforce 0 && sudo sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config && sestatus

关团防火墙

systemctl stop firewalld.service
systemctl disable firewalld.service

配置hostname:

vim /etc/hosts

192.168.72.50 openstack-controller openstack-controller.com
192.168.72.60 openstack-compute openstack-compute.com
192.168.72.70 openstack-neutron openstack-neutron.com

重启并配置网关

reboot
echo "nameserver 192.168.72.2" > /etc/resolv.conf

安装

所有节点 -基础软件包:

yum install openssl openssl-devel net-tools vim wget -y

时间同步:

Controller节点:

yum install chrony -y
vim /etc/chrony.conf

加入:

server time.windows.com iburst
allow 192.168.72.0/24

启动服务:

systemctl enable chronyd.service
systemctl start chronyd.service

其他节点:

yum install chrony -y
vim /etc/chrony.conf

加入:

server time.windows.com iburst
server 192.168.72.50 iburst

启动服务:

systemctl enable chronyd.service
systemctl start chronyd.service

所有节点:

同步时钟:

chronyc sources

确保所以的时间都是同步的。
使用timedatectl status查看:
[root@openstack-compute ~]#

timedatectl status
Local time: 一 2018-03-12 23:14:13 CST
Universal time: 一 2018-03-12 15:14:13 UTC
RTC time: 一 2018-03-12 15:14:13
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a

所有节点:安装openstack的yum 源:

yum install centos-release-openstack-queens -y
yum upgrade -y
yum install python-openstackclient -y

如果系统关闭了selinux可以不用安装这个包:

yum install openstack-selinux -y

未完待续

发布了94 篇原创文章 · 获赞 119 · 访问量 68万+

猜你喜欢

转载自blog.csdn.net/haifengid/article/details/79829159
今日推荐