OpenStack Havana - Add Compute Nodes2013/10/23 |
Add Compute Nodes to run more instanes.
The example below shows to configure a Compute Node on another Computer from Control Node.
|
|
[1] |
Install KVM Hypervisor first which needs on Compute Node.
It's unnecessarry to set Bridge networking on the section [2] of the link.
|
[2] | Install Nova-Compute and Nova-Network. |
# install from EPEL OpenStack, EPEL [root@node01 ~]# yum --enablerepo=openstack-havana,epel -y install openstack-nova-compute openstack-nova-network
|
[3] | Configure Nova |
[root@node01 ~]#
vi /etc/nova/nova.conf # line 65: uncomment and specify hostname host= node01.srv.world
# line 68: uncomment (if not need) use_ipv6=false # line 100: uncomment state_path=/var/lib/nova # line 191: uncomment enabled_apis=ec2,osapi_compute,metadata # line 197: uncomment ec2_listen=0.0.0.0 # line 200: uncomment ec2_listen_port=8773 # line 206: uncomment osapi_compute_listen=0.0.0.0 # line 209: uncomment osapi_compute_listen_port=8774 # line 237: uncomment network_manager=nova.network.manager.FlatDHCPManager # line 274: uncomment rootwrap_config=/etc/nova/rootwrap.conf # line 287: uncomment api_paste_config=api-paste.ini # line 320: uncomment and change auth_strategy= keystone
# line 909: uncomment and specify Glance server glance_host= 10.0.0.30
# line 912: uncomment glance_port=9292 # line 916: uncomment glance_protocol=http # line 921: uncomment glance_api_servers=$glance_host:$glance_port # line 980: uncomment network_api_class=nova.network.api.API # line 988: uncomment network_driver=nova.network.linux_net # line 1060: uncomment dhcpbridge_flagfile=/etc/nova/nova.conf # line 1066: uncomment and specify nic for public public_interface= eth0
# line 1072: uncomment dhcpbridge=/usr/bin/nova-dhcpbridge # line 1101: uncomment linuxnet_interface_driver=nova.network.linux_net.LinuxBridgeInterfaceDriver # line 1146: uncomment and specify any name for bridge flat_network_bridge= br100
# line 1157: uncomment and specify nic for flat DHCP bridge flat_interface= lo
# line 1308: uncomment security_group_api=nova # line 1434: uncomment log_dir=/var/log/nova # line 1448: uncomment and specify Memcached server memcached_servers= 10.0.0.30:11211
# line 1457: uncomment and add notification_driver= nova.openstack.common.notifier.rpc_notifier
# line 1491: uncomment rpc_backend=nova.openstack.common.rpc.impl_qpid # line 1596: uncomment and specify Qpid server qpid_hostname= 10.0.0.30
# line 1599: uncomment qpid_port=5672 # line 1801: uncomment scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter, ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter # line 1919: uncomment compute_driver=libvirt.LibvirtDriver # line 1940: uncomment firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver # line 1970: uncomment libvirt_type=kvm # line 2011: uncomment libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver # line 2147: uncomment libvirt_use_virtio_for_bridges=true # line 2855: uncomment and specify values for Nova DB connection=mysql:// nova:password@10.0.0.30/nova
# line 3377: uncomment and specify tenant name admin_tenant_name= service
# line 3380: uncomment and specify admin user admin_user= nova
# line 3383: uncomment and specify admin password admin_password= servicepassword
# line 3386: uncomment and specify Keystone server auth_host= 10.0.0.30
# line 3389: uncomment auth_port=35357 # line 3392: uncomment auth_protocol=http # line 3395: uncomment auth_version=v2.0 # line 3400: uncomment signing_dir=/var/lib/nova/keystone-signing for service in compute network; do /etc/rc.d/init.d/openstack-nova-$service start chkconfig openstack-nova-$service on done Starting openstack-nova-compute: [ OK ] Starting openstack-nova-network: [ OK ] |
[4] | Make sure services are working normally. It's OK if the status of services are like follows. |
[root@node01 ~]# nova-manage service list Binary Host Zone Status State Updated_At nova-scheduler dlp.srv.world internal enabled :-) 2013-10-23 13:08:17 nova-network dlp.srv.world internal enabled :-) 2013-10-23 13:08:22 nova-cert dlp.srv.world internal enabled :-) 2013-10-23 13:08:17 nova-consoleauth dlp.srv.world internal enabled :-) 2013-10-23 13:08:17 nova-conductor dlp.srv.world internal enabled :-) 2013-10-23 13:08:17 nova-compute dlp.srv.world nova enabled :-) 2013-10-23 13:08:19 nova-compute node01.srv.world nova enabled :-) 2013-10-23 13:08:13 nova-network node01.srv.world internal enabled :-) 2013-10-23 13:08:03 |
Sponsored Link |