歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

Centos 6.4下openstack-grizzly安裝:計算節點

這一章節直接就是官方文檔了,我沒做什麼更改。要說明的前面的兩篇已經說明了。因為服務器緊張,所以我是把所有裝在一台服務器上了。一切正常。

Compute Node

Introduction

Common services

OpenStack Compute(Compute Node services)

OpenStackNetworking (Compute Node)

Introduction

The Compute nodewill provide :

Hypervisor (KVM)

nova-compute

Quantum OVS Agent

Common services

Operating System

Operating System

Install Fedora 18 . Just like with the Cloud Controller, the exact steps are outside the scope of this document, but please note the following options:

Time zone: UTC

Hostname: c01

Packages: OpenSSH-Server

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

# yum install -yhttp://repos.fedorapeople.org/repos/openstack/openstack-grizzly/rdo-release-grizzly-1.noarch.rpm

Configure the network:

spacer.gif

Note

This will change later on in the guide when Open vSwitch is configured

Set up old ethernet nic device names:

# sed -i 's/#GOTO="netdevicename_end"/GOTO="netdevicename_end"/g' /lib/udev/rules.d/71-biosdevname.rules

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

# Internal Network

DEVICE=eth0

TYPE=Ethernet

BOOTPROTO=static

IPADDR=10.10.10.11

NETMASK=255.255.255.0

GATEWAY=10.10.10.9

DNS1=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

Install NTP:

·#yum install -y ntp

OpenStack Compute (Compute Node services)

Just like with theCloud Controller, the OpenStack Compute service is installed on the ComputeNode. However, this time the nova-computeservice is installed. This provides theCompute Node the capability to host virtual machines.

Install the Nova Compute package:

# yum install openstack-nova-compute

Configure Nova:

Edit /etc/nova/api-paste.ini:

·[filter:authtoken]

·auth_host = 10.10.10.10

·admin_tenant_name = service

·admin_user = nova

admin_password = password

Edit /etc/nova/nova.conf:

·[DEFAULT]

·

·# General

·verbose=True

·qpid_hostname=192.168.206.130

·

·auth_strategy=keystone

·ec2_host=10.10.10.10

·ec2_url=http://10.10.10.10:8773/services/Cloud

·

·# Networking

·libvirt_use_virtio_for_bridges=True

·network_api_class=nova.network.quantumv2.api.API

·quantum_url=http://10.10.10.10:9696

·quantum_auth_strategy=keystone

·quantum_admin_tenant_name=service

·quantum_admin_username=quantum

·quantum_admin_password=password

·quantum_admin_auth_url=http://10.10.10.10:35357/v2.0

·

·# Security Groups

·firewall_driver=nova.virt.firewall.NoopFirewallDriver

·security_group_api=quantum

·

·# Compute #

·compute_driver=libvirt.LibvirtDriver

·connection_type=libvirt

·

·# Cinder

·volume_api_class=nova.volume.cinder.API

·

·# Glance

·glance_api_servers=10.10.10.10:9292

·image_service=nova.image.glance.GlanceImageService

 

·

·# novnc

·vnc_enabled=true

·vncserver_proxyclient_address=10.10.10.11

·novncproxy_base_url=http://10.0.0.10:6080/vnc_auto.html

vncserver_listen=0.0.0.0

Restart Nova services:

·# service openstack-nova-compute restart

# chkconfig openstack-nova-compute on

OpenStack Networking (Compute Node)

Open vSwitch

Quantum

Open vSwitch

Install the packages:

# yum install -y openvswitch-switch

Start Open vSwitch service

3.# service openvswitch-switch start

# chkconfig openvswitch-switch on

Create an internal bridge. Just as described in the Introduction to this guide, the Compute Node does not provide an external bridge. This enforces all instances' network traffic to go through the Network Controller. This is known as a "single-node" networking setup.

# ovs-vsctl add-br br-int

Quantum

Install the packages:

# yum install -yopenstack-quantum-openvswitch

Edit /etc/quantum/quantum.conf:

3.verbose = True

rpc_backend=quantum.openstack.common.rpc.impl_qpid

Edit /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini:

5.[DATABASE]

6.sql_connection =mysql://quantum:[email protected]/quantum

7.[OVS]

8.tenant_network_type = gre

9.tunnel_id_ranges = 1:1000

10.local_ip = 10.10.10.11

11.enable_tunneling = True

12.[SECURITYGROUP]

13.firewall_driver =quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver


# ln -s/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini /etc/quantum/plugin.ini

Start the Agent:

15.# service quantum-openvswitch-agentrestart

# chkconfig quantum-openvswitch-agent on

Ensure the cleanup utility is started on future boots:

# chkconfig quantum-ovs-cleanup on

spacer.gif

Note

Check the /var/log/quantum/openvswitch-agent.log file for errors that would prevent the Networking service from successfully starting.

本文出自 “單身貴族” 博客,請務必保留此出處http://liuxin1982.blog.51cto.com/4338970/1313926

Copyright © Linux教程網 All Rights Reserved