OpenStack Havana - Configure Nova2013/11/22 |
Install and Configure OpenStack Compute Service (Nova).
|
|
[1] | Install Nova |
# add OpenStack Havana repository first root@dlp:~# aptitude -y install nova-api nova-cert nova-conductor nova-consoleauth nova-objectstore nova-scheduler nova-network nova-compute-kvm python-novaclient
|
[2] | Add a User and DB for Nova to MySQL. |
root@dlp:~# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 37 Server version: 5.5.34-0ubuntu0.12.04.1 (Ubuntu) Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. # set any password for 'password' section
mysql>
create database nova character set utf8; Query OK, 1 row affected (0.00 sec)
mysql>
grant all privileges on nova.* to nova@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[3] | Configure Nova |
root@dlp:~#
vi /etc/nova/nova.conf # add at the last # uncomment if not need IPv6 use_ipv6=false auth_strategy=keystone rootwrap_config=/etc/nova/rootwrap.conf # the one added in MySQL sql_connection=mysql://nova:password@10.0.0.30/nova osapi_compute_listen="0.0.0.0" osapi_compute_listen_port=8774 scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler # Glance server's hostname or IP glance_host=10.0.0.30 glance_port=9292 glance_protocol=http rpc_backend = nova.openstack.common.rpc.impl_kombu notification_driver=nova.openstack.common.notifier.rpc_notifier # RabbitMQ server's hostname or IP rabbit_host = 10.0.0.30 # RabbitMQ server's ID for auth rabbit_userid = guest # RabbitMQ server's password of the ID above rabbit_password = password 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 # specify nic for public public_interface=eth0 # specify any name you like for bridge flat_network_bridge=br100 # specify nic for flat DHCP bridge flat_interface=eth0
root@dlp:~#
vi /etc/nova/api-paste.ini # line 115 : change like follows (the value is the one added in Keystone) [filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.0.0.30 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = nova admin_password = servicepassword
nova-manage db sync root@dlp:~# for service in api conductor network scheduler objectstore cert consoleauth compute; do service nova-$service restart done nova-api stop/waiting nova-api start/running, process 3287 nova-conductor stop/waiting nova-conductor start/running, process 3297 nova-network stop/waiting nova-network start/running, process 3307 nova-scheduler stop/waiting nova-scheduler start/running, process 3321 nova-objectstore stop/waiting nova-objectstore start/running, process 3337 nova-cert stop/waiting nova-cert start/running, process 3351 nova-consoleauth stop/waiting nova-consoleauth start/running, process 3370 nova-compute stop/waiting nova-compute start/running, process 3381 # confirm status root@dlp:~# nova-manage service list Binary Host Zone Status State Updated_At nova-conductor dlp internal enabled :-) 2013-11-22 01:56:21 nova-scheduler dlp internal enabled :-) 2013-11-22 01:56:21 nova-network dlp internal enabled :-) 2013-11-22 01:56:21 nova-cert dlp internal enabled :-) 2013-11-22 01:56:21 nova-compute dlp nova enabled :-) 2013-11-22 01:56:23 nova-consoleauth dlp internal enabled :-) 2013-11-22 01:56:22 |
Sponsored Link |