centos 6.4下openstack-grizzly安裝:控制節點問題

來源:互聯網
上載者:User

參考的是官方文檔,由於官方文檔有些檔案及步驟沒有列出來,現已經補齊。經過測試沒問題。備忘一下。

You need at leastthree machines, virtual or physical, with Fedora 18 installed.

Introduction

The Controllernode will 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 please note the following configurations:

Time zone: UTC

Hostname: cloud

Packages: OpenSSH-Server, wget

Once installation has finished, the server will 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 is acceptable for a simple or testing environment, it is 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 will ensure that the server has the correct time. This is important because if an OpenStack server's time is not correct, it will 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 will only accept connections from localhost. This needs changed so that the compute nodes can access the OpenStack Networking service. 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 the 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 ON cinder.* TO'cinder'@'localhost' \

11.IDENTIFIED BY 'password';

12.CREATE DATABASE glance;

13.GRANT ALL PRIVILEGES ON glance.* TO'glance'@'localhost' \

14.IDENTIFIED BY 'password';

15.CREATE DATABASE keystone;

16.GRANT ALL PRIVILEGES ON keystone.* TO'keystone'@'localhost' \

17.IDENTIFIED BY 'password';

18.CREATE DATABASE quantum;

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.