OpenStack Grizzly - Glance 設定2013/08/13 |
OpenStack Image Service(Glance)をインストールします。
|
|
[1] | Glance インストール |
# EPEL OpenStack, EPELからインストール [root@dlp ~]# yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-glance
|
[2] | Glance の基本設定 |
# データベース設定 (「password」は任意のパスワードを設定) [root@dlp ~]# openstack-db --init --service glance --password password Please enter the password for the 'root' MySQL user: # MySQL root パスワード Verified connectivity to MySQL. Creating 'glance' database. Updating 'glance' database password in /etc/glance/glance-registry.conf /etc/glance/glance-api.conf Initializing the glance database, please wait... Complete!
[root@dlp ~]#
vi /etc/glance/glance-registry.conf # 74行目:以下のように変更 (Keystone に登録した値) [keystone_authtoken] auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = glance admin_password = servicepassword
# 最終行に追記
flavor = keystone
[root@dlp ~]#
vi /etc/glance/glance-api.conf # 340行目:以下のように変更 [keystone_authtoken] auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = glance admin_password = servicepassword
# 最終行に追記
flavor = keystone
for service in api registry; do /etc/rc.d/init.d/openstack-glance-$service start chkconfig openstack-glance-$service on done Starting openstack-glance-api: [ OK ] Starting openstack-glance-registry: [ OK ] |
Sponsored Link |
|