OpenStack Icehouse : Configure Glance2014/05/13 |
Install and Configure OpenStack Image Service (Glance).
|
|
[1] | Install Glance |
root@dlp:~# apt-get -y install glance
|
[2] | Add a User and DB for Glance 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 76 Server version: 5.6.16-1~exp1 (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. # set any password for 'password' section
mysql>
create database glance character set utf8; Query OK, 1 row affected (0.00 sec)
mysql>
grant all privileges on glance.* to glance@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
mysql>
grant all privileges on glance.* to glance@'%' 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 Glance |
root@dlp:~#
vi /etc/glance/glance-registry.conf # line 95 : change ( the one added in MySQL ) connection = mysql://glance:password@10.0.0.30/glance
# line 174 : change like follows ( the one added in Keystone ) [keystone_authtoken] auth_host = 10.0.0.30 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = glance admin_password = servicepassword
# add at the last line flavor = keystone
root@dlp:~#
vi /etc/glance/glance-api.conf # line 247: change ( RabbitMQ User and Password ) rabbit_userid = guest rabbit_password = password
# line 567 : change ( the one added in MySQL ) connection = mysql://glance:password@10.0.0.30/glance
# line 646 : change like follows ( the one added in Keystone ) [keystone_authtoken] auth_host = 10.0.0.30 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = glance admin_password = servicepassword
# line 663: add flavor = keystone
glance-manage db_sync root@dlp:~# for service in api registry; do service glance-$service restart done glance-api stop/waiting glance-api start/running, process 3074 glance-registry stop/waiting glance-registry start/running, process 3084 |
Sponsored Link |