鸟在笼中,恨关羽不能张飞;Survival of the fittest
分类: 系统运维
2013-10-23 14:27:09
这一章节直接就是官方文档了,我没做什么更改。要说明的前面的两篇已经说明了。因为服务器紧张,所以我是把所有装在一台服务器上了。一切正常。
Compute Node
Introduction
The Compute node will provide :
Common services
Operating System
Once installation has finished, the server will reboot.
3. # wget
# yum install -y
|
Note |
This will change later on in the guide when Open vSwitch is configured |
# 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
· 127.0.0.1 localhost
· 10.10.10.10 cloud
· 10.10.10.9 network
10.10.10.11 c01
· #yum install -y ntp
OpenStack Compute (Compute Node services)
Just like with the Cloud Controller, the OpenStack Compute service is installed on the Compute Node. However, this time the nova-computeservice is installed. This provides the Compute Node the capability to host virtual machines.
# yum install openstack-nova-compute
· [filter:authtoken]
· auth_host = 10.10.10.10
· admin_tenant_name = service
· admin_user = nova
admin_password = password
· [DEFAULT]
·
· # General
· verbose=True
· qpid_hostname=192.168.206.130
·
· auth_strategy=keystone
· ec2_host=10.10.10.10
· ec2_url=
·
· # Networking
· libvirt_use_virtio_for_bridges=True
· network_api_class=nova.network.quantumv2.api.API
· quantum_url=
· quantum_auth_strategy=keystone
· quantum_admin_tenant_name=service
· quantum_admin_username=quantum
· quantum_admin_password=password
· quantum_admin_auth_url=
·
· # 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=
vncserver_listen=0.0.0.0
· # service openstack-nova-compute restart
# chkconfig openstack-nova-compute on
OpenStack Networking (Compute Node)
Open vSwitch
# yum install -y openvswitch-switch
3. # service openvswitch-switch start
# chkconfig openvswitch-switch on
# ovs-vsctl add-br br-int
Quantum
# yum install -y openstack-quantum-openvswitch
3. verbose = True
rpc_backend=quantum.openstack.common.rpc.impl_qpid
5. [DATABASE]
6. sql_connection = mysql://quantum:password@10.10.10.1/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
15. # service quantum-openvswitch-agent restart
# chkconfig quantum-openvswitch-agent on
# chkconfig quantum-ovs-cleanup on
|
Note |
Check the /var/log/quantum/openvswitch-agent.log file for errors that would prevent the Networking service from successfully starting. |