[root@controller ~]# yum -y install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
1.时间同步 ##所有节点都要安装
[root@controller ~]# yum install chrony
[root@controller ~]# vim /etc/chrony.conf
server Controller iburst
allow 172.29.50.0/24
[root@controller ~]# timedatectl set-timezone Asia/Shanghai
[root@controller ~]# systemctl enable chronyd.service
[root@controller ~]# systemctl start chronyd.service
[root@controller ~]# systemctl disable firewalld.service
[root@controller ~]# vim /etc/selinux/config
SELINUX=disabled
[root@controller ~]# reboot
1-1 host文件配置 ##所有节点都要安装
172.29.50.200 controller
172.29.50.201 computer
172.29.50.202 neutron
2.基本环境2-1 OpenStack packages ###所有节点上都安装
[root@controller ~]# yum install centos-release-openstack-mitaka
[root@controller ~]# yum upgrade
[root@controller ~]# yum -y install python-openstackclient
[root@controller ~]# yum install openstack-selinux
[root@controller ~]# reboot
2-2 MariabbMysql数据库 ###控制节点
[root@controller ~]# yum -y install mariadb mariadb-server python2-PyMySQL
[root@controller ~]# vim /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 172.29.50.200
default-storage-engine = innodb
innodb_file_per_table
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
[root@controller ~]# systemctl enable mariadb.service
[root@controller ~]# systemctl start mariadb.service
[root@controller ~]# mysql_secure_installation
2-3 安装MongoDB,给Telemetry服务 ###控制节点
[root@controller ~]# yum install mongodb-server mongodb
[root@controller ~]# vim /etc/mongod.conf
bind_ip = 172.29.50.200
smallfiles = true
[root@controller ~]# systemctl enable mongod.service
[root@controller ~]# systemctl start mongod.service
3. 消息队列--端口号5672 ###控制节点
[root@controller ~]# yum install net-tools
[root@controller ~]# yum install rabbitmq-server
[root@controller ~]# systemctl enable rabbitmq-server.service
[root@controller ~]# systemctl start rabbitmq-server.service
[root@controller ~]# rabbitmqctl add_user openstack openstack
Creating user "openstack" ...
...done.
建个用户名为openstack 密码为openstack
[root@controller ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions for user "openstack" in vhost "/" ...
...done.
授权所有
[root@controller ~]# rabbitmq-plugins list 查看rabbitp插件
[root@controller ~]# rabbitmq-plugins enable rabbitmq_management 启用管理
[root@controller ~]# systemctl restart rabbitmq-server.service
[root@controller ~]# netstat -ntlp 这儿是否有15672
http://172.29.50.200:15672 用户名密码都是默认的guest
这儿要把OPENSTACK加进去
3-1 认证服务认证缓存使用Memcached缓存令牌。缓存服务memecached运行在控制节点 ###控制节点
[root@controller ~]# yum install memcached python-memcached
[root@controller ~]# systemctl enable memcached.service
[root@controller ~]# systemctl start memcached.service