1 环境
1.1 主机网络
1.1.1 系统的架构
1)节点分为控制节点、计算节点、块存储节点、对象存储节点
2)所有管理网络(10.168.0.0/24)和虚拟网络都使用私网地址连接共有网络(互联网203.0.113.x/8)
3)物理网络与虚拟网络(非10.168.0.0/24段)应当处于不同的网段
4)本架构NAT中的网关地址为10.168.0.1
5)物理节点使用NAT保持时间同步
1.1.2 部署信息
1)控制节点
hostname=rodm.linuxidc.org
ip address=10.168.0.125
OS=CentOS 6.8
2)计算节点
hostname=rod0[1-2].linuxidc.org
ip address=10.168.0.[126-127]
OS=CentOS 6.8
1.1.3 名称服务(可选)
vim /etc/hosts
输入如下信息:
123 10.168.0.125 rodm.linuxidc.com
10.168.0.126 rod01.linuxidc.com
10.168.0.127 rod02.linuxidc.org
1.2 安全
1.2.1 安装涉及如下密码
Password name DescriptionDatabase password (no variable used) Root password for the database
ADMIN_PASS Password of user admin
CEILOMETER_DBPASS
Database password for the Telemetry serviceCEILOMETER_PASS
Password of Telemetry service user ceilometerCINDER_DBPASS
Database password for the Block Storage serviceCINDER_PASS
Password of Block Storage service user cinder
DASH_DBPASS
Database password for the dashboardDEMO_PASS
Password of user demoGLANCE_DBPASS
Database password for Image serviceGLANCE_PASS
Password of Image service user glanceHEAT_DBPASS
Database password for the Orchestration serviceHEAT_DOMAIN_PASS
Password of Orchestration domainHEAT_PASS
Password of Orchestration service user heatKEYSTONE_DBPASS
Database password of Identity serviceNEUTRON_DBPASS
Database password for the Networking serviceNEUTRON_PASS
Password of Networking service user neutronNOVA_DBPASS
Database password for Compute serviceNOVA_PASS
Password of Compute service user novaRABBIT_PASS
Password of user guest of RabbitMQSWIFT_PASS Password of Object Storage service user swift
1.2.2 使用随机密码部署
openssl rand -hex 10
注:以上命令可生成2.1表所需的随机密码
1.3 网络时间协议
1.3.1 控制节点
1)yum安装chrony服务
yum install -y chrony
2)配置chrony服务
vim /etc/chrony.conf
修改同步ntp地址
server ntp 10.168.0.x iburst
注:内网的NTP服务器或外网NTP服务器(其实默认亦可)
3)允许非控制节点访问ntp服务
vim /etc/chrony.conf
修改同步ntp地址
allow 10.168.0.0/24
4)启动NTP服务
chkconfig chronyd on
/etc/init.d/chronyd start
1.3.2 其他节点
1)yum安装chrony服务
yum install -y chrony
2)配置chrony服务
vim /etc/chrony.conf
修改如下:
#server 0.rhel.pool.ntp.org iburst
#server 1.rhel.pool.ntp.org iburst
#server 2.rhel.pool.ntp.org iburst
#server 3.rhel.pool.ntp.org iburst
server 10.168.0.125 iburst
3)启动NTP服务
centos6:
chkconfig chronyd on
/etc/init.d/chronyd start
centos7:
systemctl enable chronyd.service
systemctl start chronyd.service
--------------------------------------分割线 --------------------------------------
下面是小编为你精选的Openstack相关知识,看看是否有你喜欢的:
Ubuntu 16.04 下 OpenStack 安装部署
Ubuntu 12.04 OpenStack Swift单节点部署手册
CentOS 6.5 x64bit 快速安装OpenStack
基于Ubuntu Server 12.04 的OpenStack F版搭建步骤
--------------------------------------分割线 --------------------------------------
1.3.3 验证操作
1)控制节点
chronyc sources