19. OpenStack構築手順書 Icehouse版
日本仮想化技術 19
4. Keystoneインストールと設定(controllerノード)
Keystoneのインストールと設定を行います。
4–1 パッケージのインストール
controller# apt-get install -y keystone
4–2 データベースの作成・確認
4–2–1 データベースの作成
MySQLのデータベースにKeystoneのデータベースを作成します。
controller# mysql -u root -p << EOF
CREATE DATABASE keystone;
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'
IDENTIFIED BY 'password';
EOF
Enter password: ← MySQLのrootパスワードpasswordを入力
4–2–2 データベースの確認
MySQLにKeystoneのデータベースが作成されたか確認します。
20. OpenStack構築手順書 Icehouse版
日本仮想化技術 20
controller# mysql -u keystone -p
Enter password: ← MySQLのkeystoneパスワードpasswordを入力
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 71
Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, 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.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| keystone |
+--------------------+
2 rows in set (0.00 sec)
※ユーザーkeystoneでログイン可能でデータベースの閲覧が可能なら問題ありません。
4–3 設定の変更
/etc/keystone/keystone.conf
[DEFAULT]
admin_token = password ← 追記
log_dir=/var/log/keystone ← 追記
[database]
#connection = sqlite:////var/lib/keystone/keystone.db ← 既存設定をコメントアウト
connection = mysql://keystone:password@controller/keystone ← 追記
4–4 使用しないデータベースファイルの削除
controller# rm /var/lib/keystone/keystone.db
4–5 データベースに表を作成
controller# keystone-manage db_sync
21. OpenStack構築手順書 Icehouse版
日本仮想化技術 21
4–6 サービスの再起動
controller# rm /var/log/keystone/*
controller# service keystone restart
4–7 ログの確認
controller# grep "ERROR|WARNING" /var/log/keystone/*
2014-05-16 14:01:28.074 28051 WARNING keystone.openstack.common.versionutils [-]
Deprecated: keystone.middleware.core.XmlBodyMiddleware is deprecated as of
Icehouse in favor of support for "application/json" only and may be removed in K.
※上記WARNING以外、特に何も表示されなければ問題ありません。
26. OpenStack構築手順書 Icehouse版
日本仮想化技術 26
5. Glanceのインストールと設定
5–1 パッケージのインストール
controller# apt-get install -y glance python-glanceclient sheepdog
sheepdogのインストールで次回ログイン時にメッセージが複数表示されるのを抑制するために設定ファイルを削除します。
controller# rm -f /etc/bash_completion.d/sheepdog
5–2 データベースの作成・確認
5–2–1 データベース作成
MySQLのデータベースにGlanceのデータベースを作成します。
controller# mysql -u root -p << EOF
CREATE DATABASE glance;
GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'
IDENTIFIED BY 'password';
EOF
Enter password: ← MySQLのrootパスワードpasswordを入力
27. OpenStack構築手順書 Icehouse版
日本仮想化技術 27
5–2–2 データベースの確認
MySQLにGlanceのデータベースが作成されたか確認します。
controller# mysql -u glance -p
Enter password: ← MySQLのglanceパスワードpasswordを入力
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 72
Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, 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.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| glance |
+--------------------+
2 rows in set (0.00 sec)
※ユーザーglanceでログイン可能でデータベースの閲覧が可能なら問題ありません。
31. OpenStack構築手順書 Icehouse版
日本仮想化技術 31
5–7 ログ確認
controller# grep "ERROR|WARNING" /var/log/glance/*
/var/log/glance/api.log:2014-05-18 12:10:04.528 8459 ERROR glance.store.sheepdog [-] Error in store configurat
ion: Unexpected error while running command.
/var/log/glance/api.log:2014-05-18 12:10:04.531 8459 WARNING glance.store.base [-] Failed to configure store c
orrectly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: Unexpected e
rror while running command.
/var/log/glance/api.log:2014-05-26 12:10:04.532 8459 WARNING glance.store [-] Deprecated: glance.store.sheepdo
g.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 12:10:04.541 8459 WARNING glance.store [-] Deprecated: glance.store.rbd.Sto
re not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 12:10:04.545 8459 WARNING glance.store.base [-] Failed to configure store c
orrectly: Store gridfs could not be configured correctly. Reason: Missing dependencies: pymongo Disabling add
method.
/var/log/glance/api.log:2014-05-18 12:10:04.546 8459 WARNING glance.store [-] Deprecated: glance.store.gridfs.
Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 12:10:04.645 8459 WARNING glance.store.base [-] Failed to configure store c
orrectly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling
add method.
/var/log/glance/api.log:2014-05-18 12:10:04.646 8459 WARNING glance.store [-] Deprecated: glance.store.cinder.
Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 12:10:04.669 8459 WARNING glance.store [-] Deprecated: glance.store.swift.S
tore not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 12:10:04.719 8459 WARNING glance.store [-] Deprecated: glance.store.vmware_
datastore.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 12:10:04.721 8459 WARNING glance.store [-] Deprecated: glance.store.s3.Stor
e not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
※上記ERRORとWARNING以外が出力されていなければ問題ありません。
5–8 イメージの取得と登録
5–8–1 イメージ取得
CirrOSがインストールされたイメージをダウンロード取得します。
controller# wget http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
5–8–2 イメージ登録
ダウンロードしたCirrOSのイメージをGlanceに登録します。
33. OpenStack構築手順書 Icehouse版
日本仮想化技術 33
6. Novaのインストール・設定(controllerノード)
6–1 パッケージインストール
controller# apt-get install -y nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy
nova-scheduler python-novaclient
6–2 データベースの作成・確認
6–2–1 データベースの作成
MySQLのデータベースにNovaのデータベースを作成します。
controller# mysql -u root -p << EOF
CREATE DATABASE nova;
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%'
IDENTIFIED BY 'password';
EOF
Enter password: ← MySQLのrootパスワードpasswordを入力
6–2–2 データベースの作成確認
MySQLにNovaのデータベースが作成されたか確認します。
34. OpenStack構築手順書 Icehouse版
日本仮想化技術 34
controller# mysql -u nova -p
Enter password: ← MySQLのnovaパスワードpasswordを入力
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 74
Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, 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.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| nova |
+--------------------+
2 rows in set (0.00 sec)
※ユーザーnovaでログイン可能でデータベースの閲覧が可能なら問題ありません。
6–3 認証情報の設定
以下コマンドで認証情報を設定します。
42. OpenStack構築手順書 Icehouse版
日本仮想化技術 42
8. Neutronのインストール・設定(controllerノード)
8–1 パッケージインストール
controller# apt-get install -y neutron-server neutron-plugin-ml2
8–2 データベース作成・確認
8–2–1 データベース作成
MySQLのデータベースにNeutronのデータベースを作成します。
controller# mysql -u root -p << EOF
CREATE DATABASE neutron;
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%'
IDENTIFIED BY 'password';
EOF
Enter password: ← MySQLのrootパスワードpasswordを入力
8–2–2 データベースの確認
MySQLにNeutronのデータベースが登録されたか確認します。
43. OpenStack構築手順書 Icehouse版
日本仮想化技術 43
controller# mysql -u neutron -p
Enter password: ← MySQLのneutronパスワードpasswordを入力
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 75
Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, 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.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| neutron |
+--------------------+
2 rows in set (0.00 sec)
※ユーザーneutronでログイン可能でデータベースが閲覧可能なら問題ありません。
8–3 認証情報の設定
以下コマンドで認証情報を設定します。
48. OpenStack構築手順書 Icehouse版
日本仮想化技術 48
8–7 ログ確認
controller# grep "ERROR|WARNING" /var/log/neutron/*
2014-05-16 18:41:24.106 2331 ERROR neutron.openstack.common.rpc.common [-] AMQP server on localhost:5672 is un
reachable: Socket closed. Trying again in 30 seconds.
2014-05-16 18:41:34.119 2708 WARNING neutron.openstack.common.db.sqlalchemy.session [-] This application has n
ot enabled MySQL traditional mode, which means silent data corruption may occur. Please encourage the applicat
ion developers to enable this mode.
2014-05-16 18:41:36.423 2708 WARNING neutron.api.extensions [-] Extension fwaas not supported by any of loaded
plugins
2014-05-16 18:41:36.429 2708 WARNING neutron.api.extensions [-] Extension flavor not supported by any of loade
d plugins
2014-05-16 18:41:36.484 2708 WARNING neutron.api.extensions [-] Extension lbaas_agent_scheduler not supported
by any of loaded plugins
2014-05-16 18:41:36.502 2708 WARNING neutron.api.extensions [-] Extension lbaas not supported by any of loaded
plugins
2014-05-16 18:41:36.528 2708 WARNING neutron.api.extensions [-] Extension metering not supported by any of loa
ded plugins
2014-05-16 18:41:36.558 2708 WARNING neutron.api.extensions [-] Extension port-security not supported by any of
loaded plugins
2014-05-16 18:41:36.593 2708 WARNING neutron.api.extensions [-] Extension routed-service-insertion not support
ed by any of loaded plugins
2014-05-16 18:41:36.601 2708 WARNING neutron.api.extensions [-] Extension router-service-type not supported by
any of loaded plugins
2014-05-16 18:41:36.630 2708 WARNING neutron.api.extensions [-] Extension service-type not supported by any of
loaded plugins
2014-05-16 18:41:36.653 2708 WARNING neutron.api.extensions [-] Extension vpnaas not supported by any of loade
d plugins
※上記ERRORとWARNING以外が出力されなければ問題ありません。
53. OpenStack構築手順書 Icehouse版
日本仮想化技術 53
9–6 ネットワークインタフェースの設定変更
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.9
netmask 255.255.255.0
auto eth1
iface eth1 inet manual ← 既存設定を変更
up ip address add 0/0 dev $IFACE ← 既存設定を変更
up ip link set $IFACE up ← 既存設定を変更
down ip link set $IFACE down ← 既存設定を変更
auto br-ex ← 追記
iface br-ex inet static ← 追記
address 10.0.0.9 ← 追記
netmask 255.255.255.0 ← 追記
gateway 10.0.0.1 ← 追記
dns-nameservers 10.0.0.1 ← 追記
9–7 networkノード再起動
インタフェース設定変更を適用するために、システムを再起動します。
network# reboot
9–8 ブリッジ設定確認
各種ブリッジが正常に設定されていることを確認します。
network# ifconfig
60. OpenStack構築手順書 Icehouse版
日本仮想化技術 60
controller# neutron net-create demo-net
Created a new network:
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| admin_state_up | True |
| id | 71059c78-fd2c-4e52-a4b9-98776be0ba28 |
| name | demo-net |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 6d19304a59b3456bbe2552a9080d1301 |
+----------------+--------------------------------------+
11–2–3 インスタンス用ネットワークサブネット作成
demo-subnetという名前でインスタンス用ネットワークサブネットを作成します。
controller# neutron subnet-create demo-net --name demo-subnet
--gateway 192.168.0.1 192.168.0.0/24
Created a new subnet:
+------------------+--------------------------------------------------+
| Field | Value |
+------------------+--------------------------------------------------+
| allocation_pools | {"start": "192.168.0.2", "end": "192.168.0.254"} |
| cidr | 192.168.0.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.0.1 |
| host_routes | |
| id | 6cf9c7f6-2105-4c2a-9fac-0b1df83f774d |
| ip_version | 4 |
| name | demo-subnet |
| network_id | 71059c78-fd2c-4e52-a4b9-98776be0ba28 |
| tenant_id | 6d19304a59b3456bbe2552a9080d1301 |
+------------------+--------------------------------------------------+
11–3 仮想ネットワークルーター設定
仮想ネットワークルーターを作成して外部接続用ネットワークとインスタンス用ネットワークをルーターに接続し、双方でデ
ータのやり取りを行えるようにします。
11–3–1 demo-router作成
仮想ネットワークルータを作成します。
61. OpenStack構築手順書 Icehouse版
日本仮想化技術 61
controller# neutron router-create demo-router
Created a new router:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | d1a10de8-37e2-4966-a84d-caff3e6b0e1f |
| name | demo-router |
| status | ACTIVE |
| tenant_id | 6d19304a59b3456bbe2552a9080d1301 |
+-----------------------+--------------------------------------+
11–3–2 demo-routerにsubnet追加
仮想ネットワークルーターにインスタンス用ネットワークを接続します。
controller# neutron router-interface-add demo-router demo-subnet
Added interface fc83f7f5-6da5-4607-b9f8-34d0004dfc3e to router demo-router.
11–3–3 demo-routerにgateway追加
仮想ネットワークルーターに外部ネットワークを接続します。
controller# neutron router-gateway-set demo-router ext-net
Set gateway for router demo-router
62. OpenStack構築手順書 Icehouse版
日本仮想化技術 62
12. 仮想ネットワーク設定確認(networkノード)
12–1 仮想ネットワークルーターの確認
以下コマンドで仮想ネットワークルーターが作成されているか確認します。
network# ip netns
qdhcp-ed07c38c-8609-43d8-ae02-582f9f202a3e
qrouter-7c1ca8eb-eaa0-4a68-843d-daca30824693
※qrouter~~ という名前の行が表示されていれば問題ありません。
12–2 仮想ルーターのネームスペースのIPアドレスを確認
仮想ルーターと外部用ネットワークの接続を確認します。
network# ip netns exec qrouter-7c1ca8eb-eaa0-4a68-843d-daca30824693 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
13: qr-65249869-77: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether fa:16:3e:d0:df:2c brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global qr-65249869-77
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fed0:df2c/64 scope link
valid_lft forever preferred_lft forever
14: qg-bd7c5797-3f: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether fa:16:3e:35:80:8f brd ff:ff:ff:ff:ff:ff
inet 10.0.0.200/24 brd 10.0.0.255 scope global qg-bd7c5797-3f
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe35:808f/64 scope link
valid_lft forever preferred_lft forever
※外部アドレス(この環境では10.0.0.0/24)のアドレスを確認します。
12–3 仮想ゲートウェイの疎通確認
仮想ルーターと通信が行えるかを確認します。
63. OpenStack構築手順書 Icehouse版
日本仮想化技術 63
network# ping 10.0.0.200
PING 10.0.0.200 (10.0.0.200) 56(84) bytes of data.
64 bytes from 10.0.0.200: icmp_seq=1 ttl=64 time=1.17 ms
64 bytes from 10.0.0.200: icmp_seq=2 ttl=64 time=0.074 ms
64 bytes from 10.0.0.200: icmp_seq=3 ttl=64 time=0.061 ms
64 bytes from 10.0.0.200: icmp_seq=4 ttl=64 time=0.076 ms
※応答が返ってくるなら問題ありません、networkノード以外のノードからも通信を確認してみてもよいです。
64. OpenStack構築手順書 Icehouse版
日本仮想化技術 64
13. Cinderインストール(controllerノード)
13–1 パッケージインストール
controller# apt-get install -y cinder-common cinder-api cinder-scheduler cinder-volume
13–2 データベース作成・確認
13–2–1 データベース作成
MySQLのデータベースにCinderのデータベースを作成します。
controller# mysql -u root -p <<EOF
CREATE DATABASE cinder;
GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%'
IDENTIFIED BY 'password';
EOF
Enter password: ← MySQLのrootパスワードpasswordを入力
13–2–2 データベースの確認
MySQLにCinderのデータベースが登録されたか確認します。
65. OpenStack構築手順書 Icehouse版
日本仮想化技術 65
controller# mysql -u cinder -p
Enter password: ← MySQLのcinderパスワードpasswordを入力
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 50
Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, 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.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cinder |
+--------------------+
2 rows in set (0.00 sec)
※ユーザーcinderでログイン可能でデータベースの閲覧が可能なら問題ありません。
13–3 認証情報の設定
以下コマンドで認証情報を設定します。
controller# source admin-openrc
controller# keystone user-create --name=cinder --pass=password --email=cinder@example.com
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| email | cinder@example.com |
| enabled | True |
| id | 2e391db9f2004b5ab0712c67ae6c9bcd |
| name | cinder |
| username | cinder |
+----------+----------------------------------+
controller# keystone user-role-add --user=cinder --tenant=service --role=admin
controller# keystone service-create --name=cinder --type=volume --description="OpenStack Block Storage"
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
68. OpenStack構築手順書 Icehouse版
日本仮想化技術 68
controller# grep "ERROR|WARNING" /var/log/cinder/*
/var/log/cinder/cinder-api.log:2014-05-16 16:56:57.401 2641 WARNING cinder.service [-] Value of config option
osapi_volume_workers must be integer greater than 1. Input value ignored.
/var/log/cinder/cinder-scheduler.log:2014-05-16 16:56:37.733 2287 ERROR oslo.messaging._drivers.impl_rabbit [r
eq-b051f972-4128-49bb-a820-b0718340f8fd - - - - -] AMQP server on localhost:5672 is unreachable: Socket closed
. Trying again in 30 seconds.
/var/log/cinder/cinder-volume.log:2014-05-16 16:56:38.409 2390 ERROR oslo.messaging._drivers.impl_rabbit [-] A
MQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.
/var/log/cinder/cinder-volume.log:2014-05-16 16:57:12.442 2390 ERROR oslo.messaging._drivers.impl_rabbit [-] A
MQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.
/var/log/cinder/cinder-volume.log:2014-05-16 16:57:46.479 2390 ERROR oslo.messaging._drivers.impl_rabbit [-] A
MQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.
※上記ERRORとWARNINGが出力されなければ問題ありません。
13–9 イメージ格納用ボリューム作成
イメージ格納用ボリュームを設定するために物理ボリュームの設定、ボリューム作成を行います。
13–9–1 物理ボリューム設定
以下コマンドで物理ボリュームを設定します。
controller# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
controller# vgcreate cinder-volumes /dev/sdb
Volume group "cinder-volumes" successfully created
13–9–2 サービス再起動
controller# service cinder-volume restart && service tgt restart
13–9–3 admin環境変数設定ファイル読み込み
インスタンス格納用ボリュームを作成するためにadmin環境変数を読み込みます。
controller# source admin-openrc
13–9–4 ボリューム作成
以下コマンドでインスタンス格納用ボリュームを作成します。
74. OpenStack構築手順書 Icehouse版
日本仮想化技術 74
[DEFAULT]
control_exchange = cinder
notification_driver = cinder.openstack.common.notifier.rpc_notifier
14–8 使用しないデータベースファイル削除
controller# rm /var/lib/ceilometer/ceilometer.sqlite
14–9 サービス再起動
controller# rm /var/log/glance/*
controller# rm /var/log/cinder/*
controller# rm /var/log/ceilometer/*
controller# service ceilometer-agent-central restart &&
service ceilometer-agent-notification restart &&
service ceilometer-api restart &&
service ceilometer-collector restart &&
service ceilometer-alarm-evaluator restart &&
service ceilometer-alarm-notifier restart &&
service glance-registry restart &&
service glance-api restart &&
service cinder-api restart &&
service cinder-scheduler restart &&
service cinder-volume restart
14–10 ログ確認
controller# grep "ERROR|WARNING" /var/log/glance/*
/var/log/glance/api.log:2014-05-18 14:10:04.528 8459 ERROR glance.store.sheepdog [-] Error in store configurat
ion: Unexpected error while running command.
/var/log/glance/api.log:2014-05-18 14:10:04.531 8459 WARNING glance.store.base [-] Failed to configure store c
orrectly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: Unexpected e
rror while running command.
/var/log/glance/api.log:2014-05-26 14:10:04.532 8459 WARNING glance.store [-] Deprecated: glance.store.sheepdo
g.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 14:10:04.541 8459 WARNING glance.store [-] Deprecated: glance.store.rbd.Sto
re not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 14:10:04.545 8459 WARNING glance.store.base [-] Failed to configure store c
orrectly: Store gridfs could not be configured correctly. Reason: Missing dependencies: pymongo Disabling add
method.
/var/log/glance/api.log:2014-05-18 14:10:04.546 8459 WARNING glance.store [-] Deprecated: glance.store.gridfs.
Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
75. OpenStack構築手順書 Icehouse版
日本仮想化技術 75
/var/log/glance/api.log:2014-05-18 14:10:04.645 8459 WARNING glance.store.base [-] Failed to configure store c
orrectly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling
add method.
/var/log/glance/api.log:2014-05-18 14:10:04.646 8459 WARNING glance.store [-] Deprecated: glance.store.cinder.
Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 14:10:04.669 8459 WARNING glance.store [-] Deprecated: glance.store.swift.S
tore not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 14:10:04.719 8459 WARNING glance.store [-] Deprecated: glance.store.vmware_
datastore.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
/var/log/glance/api.log:2014-05-18 14:10:04.721 8459 WARNING glance.store [-] Deprecated: glance.store.s3.Stor
e not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
controller# grep "ERROR|WARNING" /var/log/cinder/*
/var/log/cinder/cinder-api.log:2014-05-18 16:22:08.840 3902 WARNING cinder.service [-] Value of config option
osapi_volume_workers must be integer greater than 1. Input value ignored.
/var/log/cinder/cinder-scheduler.log:2014-05-18 14:10:55.049 1141 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
/var/log/cinder/cinder-scheduler.log:2014-05-18 14:10:09.436 3921 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
/var/log/cinder/cinder-scheduler.log:2014-05-18 14:10:31.494 3921 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
controller# grep "ERROR|WARNING" /var/log/ceilometer/*
/var/log/ceilometer/ceilometer-agent-central.log:2014-05-18 14:10:04.621 3471 WARNING ceilometer.agent [-] Con
tinue after error from image: Error communicating with
※上記WARNING以外表示されなければ問題ありません。
78. OpenStack構築手順書 Icehouse版
日本仮想化技術 78
15–4 ログ確認
compute1# grep "ERROR|WARNING" /var/log/nova/*
compute1# grep "ERROR|WARNING" /var/log/ceilometer/*
2014-05-17 18:08:33.648 4421 WARNING ceilometer.compute.virt.libvirt.inspector [-] Failed to inspect disks of
instance-0000000b, domain is in state of SHUTOFF
2014-05-17 18:08:33.661 4421 WARNING ceilometer.compute.virt.libvirt.inspector [-] Failed to inspect disks of
instance-0000000a, domain is in state of SHUTOFF
2014-05-17 18:08:33.694 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbd9c390>,)
2014-05-17 18:08:33.698 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbd9c250>,)
2014-05-17 18:08:33.708 4421 WARNING ceilometer.compute.virt.libvirt.inspector [-] Failed to inspect vnics of
instance-0000000b, domain is in state of SHUTOFF
2014-05-17 18:08:33.718 4421 WARNING ceilometer.compute.virt.libvirt.inspector [-] Failed to inspect vnics of
instance-0000000a, domain is in state of SHUTOFF
2014-05-17 18:08:33.740 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbd9c310>,)
2014-05-17 18:08:33.743 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9e50>,)
2014-05-17 18:08:33.766 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9cd0>,)
2014-05-17 18:08:33.769 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9dd0>,)
2014-05-17 18:08:33.781 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9d10>,)
2014-05-17 18:08:33.785 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9d90>,)
2014-05-17 18:08:33.806 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9e90>,)
2014-05-17 18:08:33.808 4421 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecesso
r: (<ceilometer.sample.Sample object at 0x7f8afbda9d90>,)
※上記WARNING以外表示されなければ問題ありません。
15–5 計測項目取得確認
確認はcontrollerノードで行ってください。
15–5–1 admin環境変数設定ファイル読み込み
controller# source admin-openrc
15–5–2 controllerノードでCeilometerの計測項目が取得可能か確認
79. OpenStack構築手順書 Icehouse版
日本仮想化技術 79
controller# ceilometer meter-list
+------------+-------+------+--------------------------------------+---------+--------------------------------
--+
| Name | Type | Unit | Resource ID | User ID | Project ID
|
+------------+-------+------+--------------------------------------+---------+--------------------------------
--+
| image.size | gauge | B | 1cdc90ca-fc4b-4064-8514-21aac275729f | None | 261110e97ca143c091d8c82c50f5291
c |
+------------+-------+------+--------------------------------------+---------+--------------------------------
--+
※計測項目一覧が表示されるであれば問題ありません。