Fedora 20
Sponsored Link

OpenStack Havana - Configure Glance2013/12/23

 
Install and Configure OpenStack Image Service (Glance).
[1] Install Glance
[root@dlp ~]#
yum -y install openstack-glance
[2] Configure Glance
# set database ( set any password you like for "password" section )

[root@dlp ~]#
openstack-db --init --service glance --password password

Please enter the password for the 'root' MySQL user:  
# MariaDB root password

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
# line 84 : uncomment all and change to the value set 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

flavor = keystone
[root@dlp ~]#
vi /etc/glance/glance-api.conf
# line 205: uncomment and change to rabbit

notifier_strategy=
rabbit
# line 209: change to RabbitMQ server

rabbit_host =
10.0.0.30
# line 212,123: specify userID and password for RabbitMQ

rabbit_userid =
guest

rabbit_password =
password
# line 430: uncomment all and change to the value set 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

flavor = keystone
[root@dlp ~]#
for service in api registry; do
systemctl start openstack-glance-$service
systemctl enable openstack-glance-$service
done

Matched Content