OpenStack Grizzly - Add Compute Nodes2013/08/19 |
Add Compute Nodes to run more instanes.
The example below shows to configure a Compute Node on another Computer from Control Node's one.
|
|
[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, Nova-Network |
# install from EPEL OpenStack, EPEL [root@node01 ~]# yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-nova-compute openstack-nova-network
|
[3] | Configure Nova |
[root@node01 ~]#
vi /etc/nova/nova.conf # line 14: specify IP address and MySQL nova user's password on the Controle Node sql_connection = mysql://nova: password @10.0.0.30 /nova
# line 19: add or change like follows # it's OK for the 7 lines below to set the same settings for Control Node auth_strategy = keystone libvirt_type = kvm volume_api_class = nova.volume.cinder.API enabled_apis = ec2,osapi_compute,metadata public_interface = eth0 flat_interface = lo flat_network_bridge = br100
vnc_enabled = True
# specify this Compute Node's hostname or IP address vncserver_listen = 10.0.0.31 # specify this Compute Node's hostname or IP address vncserver_proxyclient_address = 10.0.0.31 # specify Control Node's hostname or IP address novncproxy_base_url = http://10.0.0.30:6080/vnc_auto.html novncproxy_port = 6080 # specify Glance's hostname or IP address ( it's Control Node's one on this example) glance_api_servers = 10.0.0.30:9292 # specify Qpid's hostname or IP address ( it's Control Node's one on this example) qpid_hostname = 10.0.0.30 qpid_port = 5672 # specify Memcached's hostname or IP address ( it's Control Node's one on this example) memcached_servers = 10.0.0.30:11211
[keystone_authtoken]
[root@node01 ~]# admin_tenant_name = service admin_user = nova admin_password = servicepassword # specify Control Node's hostname or IP address auth_host = 10.0.0.30 auth_port = 35357 auth_protocol = http signing_dir = /tmp/keystone-signing-nova 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-conductor dlp.srv.world internal enabled :-) 2013-08-19 16:32:50 nova-scheduler dlp.srv.world internal enabled :-) 2013-08-19 16:32:50 nova-consoleauth dlp.srv.world internal enabled :-) 2013-08-19 16:32:50 nova-network dlp.srv.world internal enabled :-) 2013-08-19 16:32:53 nova-compute dlp.srv.world nova enabled :-) 2013-08-19 16:32:52 nova-cert dlp.srv.world internal enabled :-) 2013-08-19 16:32:50 nova-network node01.srv.world internal enabled :-) 2013-08-19 16:32:40 nova-compute node01.srv.world nova enabled :-) 2013-08-19 16:32:47 |
Sponsored Link |