OpenStack Liberty : Add Compute Nodes2015/12/27 |
Add Compute Nodes to run more instances.
|
|
[1] |
Install KVM Hypervisor first which needs on Compute Node.
It's unnecessarry to set Bridge networking on the section [3] of the link. |
[2] | Enable Openstack Liberty's Repository and install Nova-Compute. |
root@node01:~# apt-get -y install nova-api-metadata nova-compute-kvm nova-novncproxy python-novaclient
|
[3] | Configure Nova. |
root@node01:~# mv /etc/nova/nova.conf /etc/nova/nova.conf.org
root@node01:~#
vi /etc/nova/nova.conf # create new [DEFAULT] # own IP address my_ip = 10.0.0.51 # add if it's not need IPv6 use_ipv6 = false state_path = /var/lib/nova enabled_apis = ec2,osapi_compute,metadata osapi_compute_listen = 0.0.0.0 osapi_compute_listen_port = 8774 rootwrap_config = /etc/nova/rootwrap.conf api_paste_config = /etc/nova/api-paste.ini auth_strategy = keystone log_dir = /var/log/nova # specify Memcached server memcached_servers = 10.0.0.30:11211 scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler notification_driver = nova.openstack.common.notifier.rpc_notifier rpc_backend = rabbit # enable VNC [vnc] enabled = True vncserver_listen = 0.0.0.0 vncserver_proxyclient_address = $my_ip novncproxy_base_url = http://10.0.0.30:6080/vnc_auto.html # Glance server connection info [glance] host = 10.0.0.30 port = 9292 protocol = http
[oslo_concurrency]
lock_path = /var/lib/nova/tmp # RabbitMQ server connection info [oslo_messaging_rabbit] rabbit_host = 10.0.0.30 rabbit_port = 5672 rabbit_userid = openstack rabbit_password = password # MariaDB server connection info [database] connection = mysql+pymysql://nova:password@10.0.0.30/nova # Keystone server connection info [keystone_authtoken] auth_uri = http://10.0.0.30:5000 auth_url = http://10.0.0.30:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = nova password = servicepassword chmod 640 /etc/nova/nova.conf root@node01:~# chgrp nova /etc/nova/nova.conf |
[4] | Configure Networking.
The follows is for the case you use legacy nova-network function. But if you use Neutron Networking function, Refer to here to configure it. Anyway, legacy nova-network function is officially not recommended. |
root@node01:~# apt-get -y install nova-network
root@node01:~#
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf root@node01:~# sysctl -p net.ipv4.ip_forward = 1
root@node01:~#
vi /etc/nova/nova.conf # add follows in [DEFAULT] section dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge = /usr/bin/nova-dhcpbridge force_dhcp_release = True libvirt_use_virtio_for_bridges = True network_driver = nova.network.linux_net libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver linuxnet_interface_driver = nova.network.linux_net.LinuxBridgeInterfaceDriver firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver network_api_class = nova.network.api.API security_group_api = nova network_manager = nova.network.manager.FlatDHCPManager network_size = 254 allow_same_net_traffic = False multi_host = True send_arp_for_ha = True share_dhcp_address = True force_dhcp_release = True # Nova API server's hostname or IP address metadata_host = 10.0.0.30 # specify nic for public public_interface = eth0 # specify any name for bridge flat_network_bridge = br100 # specify nic for flat DHCP bridge flat_interface = eth1 |
[5] | Start Nova Service. If you don't use legacy nova-network, exclude the word "network" below. |
root@node01:~#
for service in api-metadata compute network; do
initctl restart nova-$service done # show status root@node01:~# nova-manage service list Binary Host Zone Status State Updated_At nova-consoleauth dlp internal enabled :-) 2015-12-30 16:04:16 nova-conductor dlp internal enabled :-) 2015-12-30 16:04:16 nova-scheduler dlp internal enabled :-) 2015-12-30 16:04:16 nova-cert dlp internal enabled :-) 2015-12-30 16:04:17 nova-compute node01.srv.world nova enabled :-) 2015-12-30 16:04:13 |
Sponsored Link |