标签:log upd client EDA 同步服务 时间 system 角色 key
上一篇文章介绍了openstack控制节点的环境配置方法,本篇文章分享一下openstack计算节点的环境配置方法,其他种类节点也基本适用
附:openstack控制节点系统环境配制方法:https://www.cnblogs.com/tssc/p/9857526.html
--------------------- 完美的分割线 ----------------------
计算节点的配置方法与控制节点基本相同,只是在时间同步上需要连接控制节点,保证openstack集群内的服务器时间一致,否则会出现问题,需要注意
# 主机名设置好就不能修改,否则会出问题,控制节点和计算节点配置相同,且都需要配置
hostname openstack02.zuiyoujie.com hostname echo "openstack02.zuiyoujie.com"> /etc/hostname cat /etc/hostname
vim /etc/hosts ---------------------------------- 192.168.1.81 openstack01.zuiyoujie.com controller 192.168.1.82 openstack02.zuiyoujie.com compute02 block02 object02 ----------------------------------
# 依然是将简单的集群内角色名解析也配置上去
# 在CentOS7上面是firewalld
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
setenforce 0 getenforce sed -i ‘s#SELINUX=enforcing#SELINUX=disabled#g‘ /etc/sysconfig/selinux grep SELINUX=disabled /etc/sysconfig/selinux
# 安装时间同步的软件包
yum install chrony -y
vim /etc/chrony.conf ------------------------------------------------------------ # 修改引用控制节点openstack01的IP server 192.168.1.81 iburst ------------------------------------------------------------
systemctl restart chronyd.service
systemctl status chronyd.service
systemctl enable chronyd.service
systemctl list-unit-files |grep chronyd.service
timedatectl set-timezone Asia/Shanghai
chronyc sources
timedatectl status
# 至此,时间同步配置完成
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
# 很显然,计算节点也需要安装openstack的yum源
yum install centos-release-openstack-rocky -y
yum clean all
yum makecache
# 也可以手动创建OpenStack的阿里云yum源地址
vim /etc/yum.repos.d/CentOS-OpenStack-Rocky.repo --------------------------------------------- [centos-openstack-rocky] name=CentOS-7 - OpenStack rocky baseurl=http://mirrors.aliyun.com/centos/7/cloud/$basearch/openstack-rocky/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud [centos-openstack-rocky-test] name=CentOS-7 - OpenStack rocky Testing baseurl=http://mirrors.aliyun.com/centos/7/cloud/$basearch/openstack-rocky/ gpgcheck=0 enabled=0 [centos-openstack-rocky-debuginfo] name=CentOS-7 - OpenStack rocky - Debug baseurl=http://mirrors.aliyun.com/centos/7/cloud/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud [centos-openstack-rocky-source] name=CentOS-7 - OpenStack rocky - Source baseurl=http://mirrors.aliyun.com/centos/7/cloud/$basearch/openstack-rocky/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud [rdo-trunk-rocky-tested] name=OpenStack rocky Trunk Tested baseurl=http://mirrors.aliyun.com/centos/7/cloud/$basearch/rdo-trunk-rocky-tested/ gpgcheck=0 enabled=0 ---------------------------------------------
yum update -y
yum install python-openstackclient openstack-selinux -y
# 至此,openstack计算节点的系统环境配置完成
# 虚拟机的话可以关机做下快照
=============== 完毕,呵呵呵呵 =================
OpenStack教程-02.在CentOS7.5上安装OpenStack-Rocky-系统环境准备-计算节点(其他节点相同)
标签:log upd client EDA 同步服务 时间 system 角色 key
原文地址:https://www.cnblogs.com/tssc/p/9857647.html