Wechat official account: Operation and maintenance development story, author: Wanger

About it

The system consists of several OpenStack services that work together based on your cloud, including the computer’s identity, network, image, storage block, object storage, telemetry, business process, and database services. Any installation of the project can be separate and independently configured as a connection or entity.

OpenStack component names and functions

The project name

Project code

describe

Dashboard

Horizon

Fusionsphere OpenStack provides a Web management interface on which you can create instances

Network

Neutron

Realize virtual machine network resource management.

Computer

Nova

Provides computing resource pools using virtualization technology

Identify  Service

Keystone

Provides administrative authentication, authorization, and endpoint directories for other services

Block Service

Cinder

Provides persistent storage for running instances

Object Service

Swift

Is a multi-tenant object storage system for storing accounts, containers, and disks for objects

Image  Service

Glance

The Image service enables users to discover, register, and retrieve virtual machine images

Orchestration  Service

Heat

Choreography services generate running cloud applications by running OpenStack API calls to provide template-based business processes to describe cloud applications.

Bare Metal  Service

Ironic

Bare-metal services are collections of components that provide support for managing and configuring physical machines.

Database  Service

Trove

Database services provide scalable and reliable cloud configuration capabilities for both relational and non-relational database engines. Users can use database features quickly and easily without having to deal with complex administrative tasks. Cloud users and database administrators can configure and manage multiple database instances as needed.

Metering  & Data Collecting Service

Ceilometer

Provide monitoring and data collection and measurement services

Containers Service

Zun

Zun is a component of Openstack that provides container management services

Clustering Service

Senlin

Senlin is a cluster service of OpenStack cloud. It creates and runs clusters of homogeneous objects exposed by other OpenStack services. Makes it easier to orchestrate collections of similar objects.

Shared File Systems Service

 Manila

Provides file storage for VMS. File sharing system services provide an abstraction for managing and provisioning file sharing. The service also supports management of share types and driver support for shared snapshots.

Load-balancer  Service

Octavia

Octavia is an open source carrier-grade load balancing solution designed to work with OpenStack.

It architecture diagram

OpenStack logical architecture

Build a basic OpenStack environment

1. View the environment configuration, configure name resolution, disable selinux and firewall, and perform the same configuration on the compute node

2. Install and configure the time server

[root@controller~]# yum install chrony

Chrony daemon to connect other nodes to the controller

[root@controller~]# sed -i ‘7a server 173.168.16.224 iburst’ /etc/chrony.conf

[root@controller~]# sed -i ‘8a allow 173.168.16.0/24’ /etc/chrony.conf

Start the time server and start with the system startup

[root@controller~]# systemctl enable chronyd

[root@controller~]# systemctl start chronyd

3. Install OpenStack software packages on all nodes.

Install the OpenStack repository (here I chose the Pike version of OpenStack)

[root@controller ]# yum install centos-release-openstack-pike

Example Upgrade the installation package on all nodes

[root@controller~]# yum upgrade

Note: there is an error, yum source is not working, just execute commands 4 and 5 as shown below

Install the openstack client

[root@controller ]#yum -y install python-openstackclient

Install the openstack- Selinux software package

[root@controller ]# yum install openstack-selinux

4. Install and configure the Mariadb database

[root@controller ~]# yum install mariadb mariadb-server python2-PyMySQL

Create and edit the/etc/my CNF. D/it. CNF file and add the following parts:

[mysqld]

The bind – address = 173.168.16.224

default-storage-engine= innodb

innodb_file_per_table= on

max_connections= 4096

collation-server= utf8_general_ci

character-set-server= utf8

Start the database and boot with the system boot

[[email protected]]# systemctl enable mariadb

[[email protected]]# systemctl start mariadb

Initialize the Mariadb database and run the mysql_secure_installation script to protect the database service. In particular, choose an appropriate password for the database root account.

5. Install message queues

[root@controller /]# yum install rabbitmq-server

Start the message queue service and configure it to start at system boot

[root@controller/]# systemctl enable rabbitmq-server.service

[root@controller/]# systemctl start rabbitmq-server.service

Adding an OpenStack User

[root@controller/]# rabbitmqctl add_user openstack openstack

Allows users to configure, write, and read access to openstack

[root@controller/]# rabbitmqctl set_permissions openstack “.*” “.*” “.*”

Restart the message queue service

[root@controller/]# systemctl restart rabbitmq-server

6. Install the memcached service

[root@controller /]# yum install memcached python-memcached

Start the Memcached service and configure it to start at system boot

[root@controller/]# systemctl enable memcached

[root@controller/]# systemctl start Memcached

7. Install ETCD

OpenStack services may use Etcd, which is a distributed reliable key-value store for distributed key locking, storage configuration, real-time tracking of services, and other scenarios.

Installing software Packages

[root@controller /]# yum install etcd

Edit the /etc/etcd/etcd.conf file and set the controller node so that the management IP address can be accessed through other nodes through the management network

#[Member]

ETCD_DATA_DIR=”/var/lib/etcd/default.etcd”

ETCD_LISTEN_PEER_URLS = http://173.168.16.224:2380

ETCD_LISTEN_CLIENT_URLS = http://173.168.16.224:2379

ETCD_NAME=”controller”

#[Clustering]

ETCD_INITIAL_ADVERTISE_PEER_URLS ETCD_ADVERTISE_CLIENT_URLS = = http://173.168.16.224:2380 http://173.168.16.224:2379 ETCD_INITIAL_CLUSTER = controller = “http://173.168.16.224:2380” ETCD_INITIAL_CLUSTER_TOKEN = “etcd – cluster – 01″ ETCD_INITIAL_CLUSTER_STATE=”new”

Start the ETCD service and start it with the system startup

[root@controller/]# systemctl enable etcd

[root@controller/]# systemctl start etcd


At this point, the basic environment of openstack has been built, and the public account can reply to openstack to obtain all installation documents of openstack Pike

Reference links: docs.openstack.org/install-gui…

This article uses the article synchronization assistant to synchronize