1.主机网络
控制节点 10.0.0.11 controller
计算节点 10.0.0.31 compute01
都做host解析
2.yum源
[local]
name=local
baseurl=file:///mnt
gpgcheck=0
[openstack]
name=openstack
baseurl=file:///opt/repo
gpgcheck=0
2.网络时间服务器
在10.0.0.11上
yum install -y chrony
vim /etc/chrony.conf
systemctl enable chronyd
在10.0.0.31上
yum install -y chrony
vim /etc/chrony.conf
systemctl enable chronyd
3.安装open stack包
11和31机器上都要装
yum install python-openstackclient
yum install openstack-selinux -y (注意这一步会卡一会儿)
4.mysql数据库安装
11机器上装
yum install mariadb mariadb-server python2-PyMySQL
vim /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 10.0.0.11
default-storage-engine = innodb
innodb_file_per_table
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
systemctl enable mariadb.service
systemctl start mariadb.service
mysql_secure_installation
5.消息队列
11机器上装
yum install rabbitmq-server
systemctl enable rabbitmq-server.servicesystemctl start rabbitmq-server.service
rabbitmqctl add_user openstack RABBIT_PASS (添加 openstack 用户)
rabbitmqctl set_permissions openstack ".*" ".*" ".*" (给``openstack``用户配置写和读权限:)
6.memcached安装
yum install memcached python-memcached
vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 10.0.0.11"
systemctl start memcached.service