Getting Started Ubuntu 14.03 Deployment "Juno" OPENSTACK--MYSQL-NTP-RABBITMQ

Source: Internet
Author: User
Tags rabbitmq

This build uses the multi-node installation, namely controller control node and compute compute Node Network node, eth0 for external network, ETH1 for internal management network.

This address can be changed in accordance with the actual situation.


Before deploying the platform, to make it easier for everyone, let's change the apt source, because if you use the source directly online, you also need to point to the version of OpenStack package, otherwise the subsequent operation will be wrong


Back up Source.list First, then edit the/etc/source.list file

Vim/etc/apt/source.list

Delete all the configurations in Source.list and add

Deb [Trusted=yes] Http://www.fuuyun.org/fuuyun xingzheson/

Update source

Apt-get Update

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/06/wKiom1eyv32SE8VQAAAtHO-_w18506.png-wh_500x0-wm_3 -wmp_4-s_814278233.png "title=" qq picture 20160816152325.png "alt=" Wkiom1eyv32se8vqaaatho-_w18506.png-wh_50 "/>

Basic Environment Configuration


Configure the Network


Modify the/etc/network/interfaces file.

(1)Controller node

Eth0:

Auto Eth0

Iface eth0 inet DHCP

e th 1 :

Auto ETH 1

Iface ETH 1 inet Static

Address 10.0.1.11

Netmask 255.255.255.0

(2)network node

Eth0:

Auto Eth0

Iface eth0 inet DHCP

ETH1:

Auto Eth1

Iface eth1 inet Static

Address 10.0.1.21

Netmask 255.255.255.0

(3)Compute node

Eth0:

Auto Eth0

Iface eth0 inet DHCP

ETH1:

Auto Eth1

Iface eth1 inet Static

Address 10.0.1.31

Netmask 255.255.255.0


Configuring host parsing


Modify/etchosts


(1)Controller node

10.0.1.11 Controller

10.0.1.21 Network

10.0.1.31 Compute


(2)network node

10.0.1.11 Controller

10.0.1.21 Network

10.0.1.31 Compute


(3) compute node

10.0.1.11 Controller

10.0.1.21 Network

10.0.1.31 Compute




First, install the NTP time Synchronization service


(1) Control node

To install NTP:

# Apt-get Install NTP

To configure NTP:

Modifying a configuration file/etc/ntp.conf

# vim/etc/ntp.conf

Comments:

Server 0.ubuntu.pool.ntp.org

Server 1.ubuntu.pool.ntp.org

Server 2.ubuntu.pool.ntp.org

Server 3.ubuntu.pool.ntp.org

Server ntp.ubuntu.com

Add to:

Server 127.127.1.0

Fudge 127.127.1.0 Stratum 10

Restart Service:

Service NTP restart

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/86/06/wKiom1eywSbiWQpGAAASbcvkyJc567.png-wh_500x0-wm_3 -wmp_4-s_3840436596.png "title=" qq picture 20160816153037.png "alt=" Wkiom1eywsbiwqpgaaasbcvkyjc567.png-wh_50 "/>

(2)network node

Synchronization with control node time:

# ntpdate Controller

Note: 1 13:41:47 ntpdate[2703]: Step time server 192.168.1.156 offset- 0 . the 430 sec

The closer the number is to 0, the better, so multiple synchronizations are required to ensure that the values are close to 0.

(3) compute Node

Synchronization with control node time:

# ntpdate Controller

Note: 1 13:41:47 ntpdate[2703]: Step time server 192.168.1.156 offset- 0 . the 430 sec

The closer the number is to 0, the better, so multiple synchronizations are required to ensure that the values are close to 0.




Second, install MySQL database

Installing the MySQL Database

Apt-get Install Mysql-server Python-mysqldb

Set the database password, I am here for 000000;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/06/wKiom1eyxSyQEu9FAAArPuQ3cAo049.png-wh_500x0-wm_3 -wmp_4-s_1229636172.png "title=" qq picture 20160816154644.png "alt=" Wkiom1eyxsyqeu9faaarpuq3cao049.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/86/06/wKiom1eyxTrSc-zjAAAUG26_-bE735.png-wh_500x0-wm_3 -wmp_4-s_3997281321.png "title=" qq picture 20160816154657.png "alt=" Wkiom1eyxtrsc-zjaaaug26_-be735.png-wh_50 "/>


Modify/ETC/MYSQL/MY.CNF

in the [Mysqld] under Group modification:

bind-address = Controller

in the [Mysqld] Group under Add:

Default-storage-engine = InnoDB

Innodb_file_per_table

Collation-server = Utf8_general_ci

Init-connect = ' SET NAMES UTF8 '

Character-set-server = UTF8

To restart the database service:

Service MySQL Restart


Third, install RABBITMQ (Message Queuing service)


Control node

# Apt-get Install Rabiitmq-server

Add user named OpenStack password for OpenStack :

# rabbitmqctl Add_user OpenStack OpenStack

Creating user "OpenStack" ...

To configure user permissions:

# rabbitmqctl Set_user_tags OpenStack Administrator

Setting tags for the user "OpenStack" to [Administrator] ...

... done.

# Rabbitmqctl Set_permissions OpenStack ". *" ". *" ". *"

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

View Users:

# Rabbitmqctl List_users

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/86/06/wKiom1eyx72RXRosAAAVhhyy2NM268.png-wh_500x0-wm_3 -wmp_4-s_483323427.png "title=" qq picture 20160816155842.png "alt=" Wkiom1eyx72rxrosaaavhhyy2nm268.png-wh_50 "/>



Continued


# # # # # # #欢迎访问 www.fuuyun.org to discuss learning cloud computing ######

This article is from the "11555521" blog, please be sure to keep this source http://11565521.blog.51cto.com/11555521/1839256

Getting Started Ubuntu 14.03 Deployment "Juno" OPENSTACK--MYSQL-NTP-RABBITMQ

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.