First, pre-installation preparation
Installing OpenStack Liberty on the RHEL7/CENTOS7
Two virtual machines, install the CENTOS7 system (prepare two network cards, one NAT, the other host only)
NAT network card set IP, can be networked, only the host's network card as long as we can access the windows, mainly with Putty remote connection
Turn off SELinux
Close Iptables
Systemctl Stop Firewalld
Systemctl Disable FIREWALLD
Close NetworkManager
Systemctl Stop NetworkManager
Systemctl Disable NetworkManager
Second, the configuration password
Passwords are used in multiple places during the deployment of OpenStack, and in order to facilitate administration and security settings, we need to define the password in advance and use the command Mkpasswd-s 0 to generate a random string
Database password (no variable used)Root password for the database Tn1pi6ytm
Admin_passPassword of user admin 3qivpzu2x
Ceilometer_dbpassDatabase password for the Telemetry service CZN3BF1HM
Ceilometer_passPassword of Telemetry service user Ceilometer Abquh12gu
Cinder_dbpassDatabase password for the Block Storage service o3bwbpoz3
Cinder_passPassword of Block Storage service user CINDER Hf8lx9bow
Dash_dbpassDatabase password for the dashboard 5qbzxnn1g
Demo_passPassword of user demo 9ttbgaa1q
Glance_dbpassDatabase password for Image service zznky4tp0
Glance_passPassword of Image service user GLANCE Wuyaf4cv6
Heat_dbpassDatabase password for the Orchestration service B7FK5WJLG
Heat_domain_passPassword of Orchestration DOMAIN 7gotb3eoh
Heat_passPassword of Orchestration service user HEAT eqq2jlgz0
Keystone_dbpassDatabase password of Identity service f6zx0gurv
Neutron_dbpassDatabase password for the Networking service quidyOC50
Neutron_passPassword of Networking service user NEUTRON mdcgvl29i
Nova_dbpassDatabase password for Compute service rygv0rg7p
Nova_passPassword of Compute service user Nova HsSNsqc43
Rabbit_passPassword of user guest of RabbitMQ O3NXOVNZ5
Swift_passPassword of Object Storage service user Swift 6CI5XWODK
Metadata_secret M8UHMQTU2
Third, configure the IP (a NAT mode, a host-only mode, only the host network card only need to connect to the Xshell)
On the controler.
Dhclient eno16777736 (NAT card)
Dhclient-r
Dhclient Eno 33554984 (host card only)
Ifconfig View IP
vim/etc/sysconfig/network-scripts/ifcfg-eno16777736
Type=ethernet
Bootproto=static
Defroute=yes
Ipv4_failure_fatal=no
name=eno16777736
Uuid=6612a6a5-090b-43b8-9c87-e43545f800a9
device=eno16777736
Onboot=yes
ipaddr=192.168.163.249
Prefix=24
gateway=192.168.163.2
Peerdns=no
On the computer.
Dhclient eno16777736 (NAT card)
Dhclient-r
Dhclient Eno 33554984 (host card only)
Ifconfig View IP
vim/etc/sysconfig/network-scripts/ifcfg-eno16777736
Vim/etc/resolv.conf
NameServer 218.85.157.99
Type=ethernet
Bootproto=dhcp
Defroute=yes
Peerdns=yes
Peerroutes=yes
Ipv4_failure_fatal=no
Ipv6init=yes
name=eno16777736
uuid=a0761a5d-3a3d-420b-82b8-cd5e2919c55a
device=eno16777736
Onboot=yes
ipaddr=192.168.163.246
Prefix=24
gateway=192.168.163.2
Peerdns=no
Vim/etc/resolv.conf
NameServer 218.85.157.99
Four, two machines, set hostname, configure time synchronization
HOSTNAMECTL Set-hostname Controller
Hostnamectl Set-hostname Computer
Edit/etc/hosts:192.168.163.249 Controller
192.168.163.246 Computer
Controller on:
Yum Install-y chrony
Vi/etc/chrony.conf
Add or change: Allow 192.168.163.0/24
After saving, execute Systemctl enable Chronyd.service
Systemctl Start Chronyd.service
On COMPUTE:
Yum Install-y chrony;vi/etc/chrony.conf
Add or change: Server controller Iburst
After saving, execute Systemctl enable Chronyd.service
Systemctl Start Chronyd.service
V. Configuring the Yun source upgrade software to install the packages required by OpenStack
Install OpenStack's Yum Source (operates on two machines)
Yum Install-y Centos-release-openstack-liberty
Upgrade all packages (operate on two machines)
Yum Upgrade
Restart the system after the end
Installing the OpenStack client and Openstack-selinux
Yum install-y python-openstackclient Openstack-selinux
VI. Installing SQL Services (Controler)
Yum install-y mariadb mariadb-server Mysql-python
Edit Profile VI/ETC/MY.CNF.D/MARIADB_OPENSTACK.CNF//Add to the content below
[Mysqld]
Bind-address = 192.168.163.249
Default-storage-engine = InnoDB
Innodb_file_per_table #表示一个表对应一个文件
Collation-server = Utf8_general_ci
Init-connect = ' SET NAMES UTF8 '
Character-set-server = UTF8
Start Mariadb:systemctl Enable Mariadb.service
Systemctl Start Mariadb.service
Security configuration, setting the root password
Mysql_secure_installation
Set the root password to Tn1pi6ytm #此处密码为第二步用mkpasswd生成的密码
All you need to determine is Y.
Use Mysql-uroot-ptn1pi6ytm to test if you can log in
Vii. install NoSQL (Control) If the schema does not need to be installed
NoSQL databases are used by telemetry service to
Here we are installing MongoDB
Yum install-y mongodb-server MongoDB
Edit the configuration file vi/etc/mongod.conf//change the configuration as follows
BIND_IP = 192.168.163.249
Smallfiles = True
Start the service
Systemctl Enable Mongod.service
Systemctl Start Mongod.service
VIII. Installing Message Queuing (controler)
The RABBITMQ Message Queuing service plays a critical role in OpenStack, as it is a transport hub, where communication between components is done.
Yum Install-y rabbitmq-server
Start the Rabbitmq-server service
Systemctl Enable Rabbitmq-server
Systemctl Start Rabbitmq-server
Use PS aux |grep rabbitmg and NETSTAT-LNP |grep 5672 to determine if there is a boot
Add OpenStack Users
Rabbitmqctl Add_user OpenStack O3nxovnz5
Password O3NXOVNZ5 user name is OpenStack
Licensing for OpenStack Users
Rabbitmqctl set_permissions OpenStack ". *" ". *" ". *"
Allow OpenStack users to be configurable, writable, readable
This article from "愺 Burgundy pounding his 豩" blog, declined reprint!
OpenStack Installation Configuration