Manual installation of OpenStack Based on CentOS 6.8

Source: Internet
Author: User

Manual installation of OpenStack Based on CentOS 6.8

1 Environment
1.1 host network

1.1.1 System Architecture
1) nodes are divided into control nodes, computing nodes, block storage nodes, and object storage nodes.
2) All management networks (10.168.0.0/24) and virtual networks use private network addresses to connect to a shared network (Internet 203.0.113.x/8)
3) The physical network and virtual network (non-10.168.0.0/24 segments) should be in different network segments
4) the gateway address in the NAT architecture is 10.168.0.1.
5) Physical nodes use NAT to maintain Time Synchronization
1.1.2 deployment information
1) Control Node
Hostname = rodm.bkjia.org
Ip address = 10.168.0.125
OS = CentOS 6.8

2) computing nodes
Hostname = rod0 [1-2] .bkjia.org
Ip address = 10.168.0. [126-127]
OS = CentOS 6.8
1.1.3 Name Service (optional)
Vim/etc/hosts

Enter the following information:
123 10.168.0.125 rodm.bkjia.com
10.168.0.126 rod01.bkjia.com
10.168.0.127 rod02.bkjia.org

1.2 Security

1.2.1 install the following Password

Password name Description
Database password (no variable used) Root password for the database
ADMIN_PASS Password of user admin

CEILOMETER_DBPASS

Database password for the Telemetry service

CEILOMETER_PASS

Password of Telemetry service user ceilometer

CINDER_DBPASS

Database password for the Block Storage service

CINDER_PASS

Password of Block Storage service user cinder

DASH_DBPASS

Database password for the dashboard

DEMO_PASS

Password of user demo

GLANCE_DBPASS

Database password for Image service

GLANCE_PASS

Password of Image service user glance

HEAT_DBPASS

Database password for the Orchestration service

HEAT_DOMAIN_PASS

Password of Orchestration domain

HEAT_PASS

Password of Orchestration service user heat

KEYSTONE_DBPASS

Database password of Identity service

NEUTRON_DBPASS

Database password for the Networking service

NEUTRON_PASS

Password of Networking service user neutron

NOVA_DBPASS

Database password for Compute service

NOVA_PASS

Password of Compute service user nova

RABBIT_PASS

Password of user guest of RabbitMQ
SWIFT_PASS Password of Object Storage service user swift

1.2.2 deploy with a random password
Openssl rand-hex 10

Note: The above command can generate the random password required for the 2.1 Table
1.3 Network Time Protocol

1.3.1 Control Node

1) install the chrony service in yum
Yum install-y chrony

2) configure the chrony Service
Vim/etc/chrony. conf

Modify the synchronized ntp address
Server ntp 10.168.0.x iburst

Note: Intranet NTP servers or Internet NTP servers (in fact, by default)
3) allow non-control nodes to access the ntp service
Vim/etc/chrony. conf
Modify the synchronized ntp address
Allow 10.168.0.0/24

4) Start the NTP service
Chkconfig chronyd on
/Etc/init. d/chronyd start

1.3.2 other nodes
1) install the chrony service in yum
Yum install-y chrony

2) configure the chrony Service
Vim/etc/chrony. conf

Modify as follows:
# 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) Start the NTP service
Centos6:
Chkconfig chronyd on
/Etc/init. d/chronyd start

Centos7:
Systemctl enable chronyd. service
Systemctl start chronyd. service

-------------------------------------- Split line --------------------------------------

The following is a collection of Openstack related knowledge for you to see if you like it:

Install and deploy OpenStack in Ubuntu 16.04

Install and deploy Openstack on Ubuntu 12.10

Ubuntu 12.04 OpenStack Swift single-node deployment Manual

OpenStack cloud computing quick start tutorial

Deploying OpenStack for enterprises: what should be done and what should not be done

CentOS 6.5 x64bit quick OpenStack Installation

Building steps for OpenStack F Based on Ubuntu Server 12.04 ---------------------------------------- split line --------------------------------------

1.3.3 verification operation
1) Control Node
Chronyc sources

Shown as follows:
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
========================================================== ========================================================
^-59.46.44.253 2 8 377-3305us [-3305us] +/-66 ms
^ + Dns1.synet.edu.cn 2 8 377 165-1231us [-951us] +/-31 ms
^ * Time5.aliyun.com 2 8 377 160-30us [+ 250us] +/-27 ms
^ + Time7.aliyun.com 2 8 377 162 + 1348us [+ 1628us] +/-35 ms

2) Other nodes
Chronyc sources

Shown as follows:
1234 210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
========================================================== ========================================================
^? 10.168.0.125 0 7 0 10y + 0ns [+ 0ns] +/-0ns

1.4 configure the OpenStack package
1.4.1 enable OpenStack Library
Yum install-y centos-release-openstack.noarch

1.4.2 complete installation
1) update the system
Yum-y upgrade

2) install the OpenStack Client
Yum install-y python-openstackclient

1.5 Relational Database Installation
1.5.1 configure MariaDB's yum source (optional)
Vim/etc/yum. repos. d/MariaDB. repo

The input content is as follows:
[MariaDB]
Name = MariaDB
Base url = http://yum.mariadb.org/10.0/centos6-amd64/
Gpgcheck = 1
Gpgkey = http://yum.mariadb.org/RPM-GPG-KEY-MariaDB

1.5.2 install MariaDB
Yum install-y MariaDB-client MariaDB-server MySQL-python

1.5.3 configure MariaDB
Vim/etc/my. cnf. d/mariadb_openstack.cnf

Add the following content:
[Mysqld]

Bind-address = 10.168.0.125

Default-storage-engine = innodb
Innodb_file_per_table
Collation-server = utf8_general_ci
Init-connect = 'set NAMES utf8'
Character-set-server = utf8

1.5.4 complete installation
1) start the service and configure the default startup
/Etc/init. d/mysql start
Chkconfig mysql on

2) initialize the database
Mysql_secure_installation

The Configuration Wizard is as follows:
[...]
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables ..
... Success!
[...]
Remove anonymous users? [Y/n] y
... Success!
[...]
Disallow root login remotely? [Y/n] n
... Skipping.
[...]
Remove test database and access to it? [Y/n] y
-Dropping test database...
... Success!
-Removing privileges on test database...
... Success!
[...]
Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...
[...]

1.6 Non-Relational Database Installation
1.6.1 configure the yum source of MongoDB
Vim/etc/yum. repos. d/MongoDB. repo

Enter the following content:
[MongoDB]
Name = MongoDB
Base url = http://downloads-distro.mongodb.org/repo/RedHat/ OS /x86_64/
Gpgcheck = 0

1.6.2 install MongoDB
Yum install-y mongodb-org-server

1.6.3 configure MongoDB
1) configure the management address
Vim/etc/mongod. conf

Modify the following parameters:
Bind_ip = 10.168.0.125

2) limit the log file size
Vim/etc/mongod. conf

Modify the following parameters:
Smallfiles = true

1.6.4 complete installation
/Etc/init. d/cmdd start
Chkconfig mongod on

1.7 install the Message Queue Service
1.7.1 configure yum Source
1) configure the yum source of ERLang

Vim erlang-solutions.repo.

Enter the following content:
[Erlang-solutions]
Name = Centos $ releasever-$ basearch-Erlang Solutions
Baseurl = https://packages.erlang-solutions.com/rpm/centos/?releasever/?basearch
Gpgcheck = 1
Gpgkey = https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
Enabled = 1

2) solve the SOCat source problem
Wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Rpm-ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

1.7.2 install RabbitMQ
Yum install-y http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server-3.6.2-1.noarch.rpm

1.7.3 start and configure auto-start for Service Startup
/Etc/init. d/rabbitmq-server start
Chkconfig rabbitmq-server on

1.7.4 add OpenStack users
Rabbitmqctl add_user openstack RABBIT_PASS

Shown as follows:
1 Creating user "openstack "...

1.7.5 allow configuration and read/write permissions
Rabbitmqctl set_permissions openstack ".*"".*"".*"

Shown as follows:
Setting permissions for user "openstack" in vhost "/"...

Note: This article is the installation and testing document of the Project, which may be modified according to the following sections. If you are interested, please stay tuned.

The address of the next chapter. For detailed configuration, see:

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page
[Content navigation]
Page 1: Environment Configuration Page 1: centralized authentication

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.