Ubuntu 12.04
Sponsored Link

OpenStack Havana - Nova 設定2013/11/22

 
OpenStack Compute Service(Nova)をインストールします。
[1] Nova インストール
# 事前にOpenStack Havana 用リポジトリを登録しておく

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] Nova 用のユーザーとデータベースを 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.

# 「nova」データベース作成 ( 'password'の箇所は設定するパスワードを入力 )

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>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
mysql>
exit

Bye
[3] Nova の基本設定
root@dlp:~#
vi /etc/nova/nova.conf
# 最終行に追記

# IPv6が不要な場合は記述

use_ipv6=false
auth_strategy=keystone
rootwrap_config=/etc/nova/rootwrap.conf
# 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 サーバーのホスト名または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 サーバーのホスト名またはIP

rabbit_host = 10.0.0.30
# RabbitMQ サーバー認証ID

rabbit_userid = guest
# RabbitMQ サーバー認証IDのパスワード

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
# パブリック用のインターフェース名

public_interface=eth0
# 適当なブリッジインターフェイス名

flat_network_bridge=br100
# フラットDHCPブリッジに使用するインターフェース名

flat_interface=eth0
root@dlp:~#
vi /etc/nova/api-paste.ini
# 115行目:以下のように変更 (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
root@dlp:~#
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
# 動作確認

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
関連コンテンツ