Control node Installation
1. Network Configuration
Need two cards, two network cards the first card configuration static address, the second is provider interface, configured as follows:
# The Provider network interface
Auto Interface_name
Iface interface_name inet Manual
Up IP link set dev $IFACE up
Down IP link set dev $IFACE down
Replace the interface_name with your own interface (the last two lines are not understood)
2, the hostname of the node is changed to controller in/etc/hostname,
Then change it in /etc/hosts
the following:
10.0.0.11 Controller
10.0.0.31 compute1
10.0.0.41 Block1
10.0.0.51 Object1
10.0.0.52 object2
The above settings are set according to your own topology. It is best to ping the hostname after Setup.
3. Calibration Time:
Install First:
sudo apt-get install Chrony
/etc/chrony/chrony.conf
Add in:
server Ntp_server iburst #其中NTP_SERVER为使用基准时间的IP地址.
Changes allow the node time calibration to be used throughout the network segment:
Allow 10.0.0.0/24 #网段根据实际需要更改
Restart Service:
sudo service chrony restart
Verify success:
Chronyc sources #在列出的结果中查看是否有自己配置的地址.
4. Install OpenStack Package
sudo apt-get install Software-properties-common
sudo add-apt-repository Cloud-archive:newton
5.
Sudoapt-get Update&& Apt Dist-upgrade
sudo apt-get install python-openstackclient
6. Install the database
Install package
sudo apt-get install mariadb-server python-pymysql
Configuration database, in/etc/mysql/mariadb.conf.d/99-openstack.cnf
Writes the following:
[Mysqld]
Bind-address = 10.0.0.11 #此处IP换成自己的IP
Default-storage-engine = InnoDB
Innodb_file_per_table
Max_connections = 4096
Collation-server = utf8_general_ci
Character-set-server = UTF8
Restart database
sudo service MySQL restart
Change the database security policy, you need to enter a password here
sudo mysql_secure_installation
Login database to view, here is a problem, currently can not be logged in as a normal user, you must add sudo or root for the user.
sudo mysql-uroot-p
7. Message Queuing
Install package
sudo apt-get install Rabbitmq-server
This step encountered a problem,
Errors were encountered while processing:
Rabbitmq-server
Here is the problem of domain name resolution, the need to operate is to ensure that the local loopback address in the/etc/hosts behind more than localhost, and the name of the node (Controller).
Create OpenStack users after successful installation:
Rabbitmqctl add_user OpenStack Rabbit_pass #将RABBIT_PASS换成自己的密码
Configure RABBITMQ user's configuration, read, write permissions
Rabbitmqctl set_permissions OpenStack ". *" " . *" ". *"
8, install memcached,identity service with memcached to store tokens
Install package
sudo apt install memcached python-memcache
In the /etc/memcached.conf
configure the IP information of the node, which has a "-l IP", the IP is changed to the actual node IP.
Restart Service
sudo service memcached restart
9, Installation Keystone Certification
1) Log in to the database and create the user and Keystone databases:
CREATE DATABASE Keystone;
GRANT all privileges the keystone.* to ' keystone ' @ ' localhost ' \ identified by ' Keystone_dbpass ';
GRANT All privileges the keystone.* to ' Keystone ' @ '% ' \ identified by ' Keystone_dbpass '; # Here's the keystone_db Pass is changed to the password you need
2) in/etc/keystone/keystone.conf进行配置如下:
[Database]
Connection = mysql+pymysql://keystone:[email protected]/keystone
[Token]
Provider = fernet
COMPUTE node Installation
The first two steps are the same as the control nodes,
3, install Chronyc ibid, but /etc/chrony/chrony.conf
need to join:
Server Controller Iburst
Then reboot and verify
Service Chrony Restart
Chronyc sources
4. Install OpenStack Package
sudo apt-get install Software-properties-common
sudo add-apt-repository Cloud-archive:newton
sudo apt-get install python-openstackclient
ubuntu16.04 Multi-node layout OpenStack Newton version