CentOS 7 Deployment OpenStack (1)-Prepare the base environment

Source: Internet
Author: User
Tags rabbitmq

This article mainly installs the newest version L version OpenStack, uses the Yum installs the way, compiles installs behind after the installation.

Operation Guide:

Only the "#" command line indicates that all nodes are operating, and the command line has a host name that represents the operation only on that host.

In addition, the official document time synchronization uses the Chrony, this article still uses the NTP service.

1. System environment

# Uname-r

3.10.0-229.el7.x86_64

# Cat/etc/redhat-release

CentOS Linux release 7.1.1503 (Core)

2. Server Deployment

ip

hostname

role

configure

192.168.1.11

controller

control node

M:4G; c:2c;50g

192.168.1.12

compute

compute node

M:2G; c:2c;50g

3, Basic Environment preparation

3.1. Configuration hosts

# cat/etc/hosts

192.168.1.11 Controller

192.168.1.12 Compute

[Email protected] ~]# PING-C1 COMPUTE

PING Compute (192.168.1.12) bytes of data.

Bytes from COMPUTE (192.168.1.12): icmp_seq=1 ttl=64 time=0.370 ms

---COMPUTE ping statistics---

1 packets transmitted, 1 received, 0% packet loss, time 0ms

RTT Min/avg/max/mdev = 0.370/0.370/0.370/0.000 ms

[[email protected] ~]# PING-C1 Controller

PING Controller (192.168.1.11) bytes of data.

Bytes from controller (192.168.1.11): icmp_seq=1 ttl=64 time=1.00 ms

---controller ping Statistics---

1 packets transmitted, 1 received, 0% packet loss, time 1ms

RTT Min/avg/max/mdev = 1.005/1.005/1.005/0.000 ms

3.2, Configuration time synchronization

[[email protected] ~]# Yum install-y NTP

[Email protected] ~]# vim/etc/ntp.conf

Restrict-6:: 1

Restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

Restrict 0.centos.pool.ntp.org nomodify notrap noquery

Restrict 1.centos.pool.ntp.org nomodify notrap noquery

Restrict 2.centos.pool.ntp.org nomodify notrap noquery

Restrict 3.centos.pool.ntp.org nomodify notrap noquery

to server 127.127.1.0

Fudge 127.127.1.0 Stratum 10

[Email protected] ~]# Systemctl enable NTPD

[Email protected] ~]# systemctl start ntpd

To configure the timing task in the Control node computable node

[Email protected] ~]# crontab-l

*/5 * * * */usr/sbin/ntpdate 192.168.1.11 >/dev/null 2>&1

3.3. Turn off the firewall

# Systemctl Stop Firewalld

3.4. Close SELinux

# sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/selinux/config// Restart Required

3.5. Install the base package

[email protected] ~]# Yum install-y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

[email protected] ~]# Yum install-y centos-release-openstack-liberty

[email protected] ~]# Yum install-y python-openstackclient

3.6. Installation MySQL

[email protected] ~]# Yum install-y mariadb mariadb-server Mysql-python

[Email protected] ~]# CP/USR/SHARE/MYSQL/MY-MEDIUM.CNF/ETC/MY.CNF

[Email protected] ~]# VIM/ETC/MY.CNF

in the mysqld The module adds the following lines:

Default-storage-engine = InnoDB

Innodb_file_per_table

Collation-server = Utf8_general_ci

Init-connect = ' SET NAMES UTF8 '

Character-set-server = UTF8

[Email protected] ~]# Systemctl enable Mariadb.service

[Email protected] ~]# systemctl start Mariadb.service

[email protected] ~]# mysql_secure_installation// Set Root password, the specific steps are not listed

3.7. Installation RABBITMQ

[email protected] ~]# Yum install-y rabbitmq-server

[Email protected] ~]# Systemctl enable Rabbitmq-server.service

[Email protected] ~]# systemctl start Rabbitmq-server.service

[Email protected] ~]# rabbitmqctl add_user OpenStack OpenStack

Creating user "OpenStack" ...

... done.

[Email protected] ~]# rabbitmqctl set_permissions openstack ". *" ". *" ". *"

Setting permissions for the user "OpenStack" in Vhost "/" ...

... done.

[Email protected] ~]# Rabbitmq-plugins enable rabbitmq_management

[Email protected] ~]# systemctl restart Rabbitmq-server.service

enter in the browser http://192.168.1.11:15672 , the default account and password are Guest

when you log in, the previously created OpenStack users to join Admin , the results are as follows:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/86/wKioL1Z_WxmgqV4BAAAWZHwHLSA329.png "title=" 1.png " alt= "Wkiol1z_wxmgqv4baaawzhwhlsa329.png"/>



This article is from the "Night Passers-by" blog, please be sure to keep this source http://kevinhao.blog.51cto.com/5204735/1728731

CentOS 7 Deployment OpenStack (1)-Prepare the base environment

Related Article

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.