CentOS 6.4 openstack-grizzly Installation: Control node problem

Source: Internet
Author: User
Tags goto centos create database mysql database qpid

Reference is the official document, because some documents and steps are not listed in the official document, has been made up. It's not a problem after testing. Forget about it.

You are need at Leastthree machines, virtual or physical, with Fedora installed.

Introduction

The Controllernode would provide:

Databases (with MySQL)

Queues (with Qpid)

Keystone

Glance

Nova (without Nova-compute)

Cinder

Quantum Server (with Open-vswitch plugin)

Dashboard (with Horizon)

Common Services

Operating System

MySQL Databaseservice

Qpid Messagingservice

Operating System

Install Fedora 18. The exact installation procedure is outside the scope of this document but the following:

Time ZONE:UTC

Hostname:cloud

Packages:openssh-server, wget

Once installation has finished, the server would reboot.

Use the Fedora repositories for Grizzly:

3. Wgethttp://repos.fedorapeople.org/repos/openstack/openstack-grizzly/fedora-openstack-grizzly.repo

MV Fedora-openstack-grizzly.repo/etc/yum.repos.d/

Spacer.gif

Note

Forcentos, use Http://repos.fedorapeople.org/repos/openstack/openstack-grizzly/epel-openstack-grizzly.repo.

Configure the network:

Set up old Ethernet NIC device names:

Sed-i ' s/goto= ' netdevicename_end '/goto= ' netdevicename_end '/g '/lib/udev/rules.d/71-biosdevname.rules

Disable NetworkManager and enable the network service

· Service NetworkManager Stop

· Service Network start

· Chkconfig NetworkManager off

Chkconfig Network on

Edit/etc/sysconfig/network-scripts/ifcfg-eth0:

· Internal Network

· Device=eth0

· Type=ethernet

· Bootproto=static

· ipaddr=10.10.10.10

· netmask=255.255.255.0

· Defroute=yes

· Onboot=yes

Edit/etc/sysconf/network-scripts/ifcfg-eth1:

· External Network

· Device=eth1

· Type=ethernet

· Bootproto=static

· ipaddr=10.0.0.10

· netmask=255.255.255.0

· gateway=10.0.0.1

· dns=8.8.8.8

· Defroute=yes

· Onboot=yes

Reboot

Edit the/etc/hosts file and add cloud, network, and C01 hostnames with correct IP.

127.0.0.1 localhost

10.10.10.10 Cloud

10.10.10.9 Network

10.10.10.11 C01

Spacer.gif

Note

While manually specifying host entries. Acceptable for a simple or testing environment, it are highly recommended to use Proper DNS entries, or at a minimum a configuration management system such as Puppet, to maintain your IP to host mappings .

Install NTP. NTP would ensure that the server has the correct time. This is important because if a OpenStack server ' s. Not correct, it'll be removed from the rest of the cloud.

· Yum Install-y NTP

MySQL Database Service

The Variousopenstack Components store persistent data in a relational database. MySQL isthe most popular choice.

Install the Packages:

Yum install MySQL mysql-server mysql-python

By default, MySQL'll only accept connections from localhost. This needs changed the compute nodes can access the OpenStack networking service. The Database requests for the OpenStack Compute service are proxied through the Nova-conductor service.

Sed-i ' s/127.0.0.1/0.0.0.0/g '/etc/my.cnf

Restart the service:

Systemctl Start Mysqld.service

Service mysqld Restart

Chkconfig mysqld on

The various databases that OpenStack services require need created. Additionally, MySQL accounts to access those databases need created, too:

5. Mysql-u Root-p <<eof

6.CREATE DATABASE Nova;

7.GRANT all privileges on nova.* to ' nova ' @ ' localhost ' \

8.IDENTIFIED by ' password ';

9.CREATE DATABASE Cinder;

10.GRANT all privileges in cinder.* to ' cinder ' @ ' localhost '

11.IDENTIFIED by ' password ';

12.CREATE DATABASE Glance;

13.GRANT all privileges in glance.* to ' glance ' @ ' localhost '

14.IDENTIFIED by ' password ';

15.CREATE DATABASE Keystone;

16.GRANT all privileges in keystone.* to ' keystone ' @ ' localhost '

17.IDENTIFIED by ' password ';

18.CREATE DATABASE Quantum;

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.