Disclaimer: The recent installation of the kilo version of OpenStack found that there were very few existing web tutorials and that most of the tutorials did not install successfully, So write this tutorial. The installation of OpenStack is complex, and this tutorial does not guarantee that it will be installed successfully in different environments. Personal installation tutorials are also prone to errors. At the same time, the installation is in the virtual machine environment, the real installation environment needs to be changed.
Reprint please declare the source:
Zhang someone ER
Original link:http://blog.csdn.net/xinxing__8185/article/details/51235988
Part III Installation of glance
Glance Introduction
Glance consists of two services,glance-api and glance-registry Services, of whichglance-registry Service is connected to the backend database,glance-registry will operate the database based on the glance database and user settings we have previously set .
The Glance service runs two processes. whereglance-api is the interface between the client and other services and glance communication, and glance-registry Used to manage objects stored in the hard disk and in the registry database. Both processes require authentication credentials to be set in their configuration files to facilitate The identity authentication of the user by the OpenStack Authentication Service.
on the controller node
Add a database
Note: The installation of Glance is operated on the controller node
Mysql-u root-p
Do the following
CREATE DATABASE Glance; GRANT all privileges The glance.* to ' glance ' @ ' localhost ' identified by ' glance_dbpass '; GRANT all privileges The glance.* to ' glance ' @ '% ' identified by ' Glance_dbpass '; quit
Configuring environment variables, creating users and endpoint
SOURCE Admin-openrc.shopenstack User Create--password-prompt Glance # password settings, here I set the glance OpenStack role add--project serv Ice--user Glance admin OpenStack Service Create--name glance--description "OpenStack Image service" Imageopenstack ENDP Oint Create--publicurl http://controller:9292--internalurl http://controller:9292--adminurl http://controller:9292 --region Regionone Image
Install package
Yum Install openstack-glance python-glance python-glanceclient
making configuration file Modifications
Vim/etc/glance/glance-api.conf
Make the following changes:
[DEFAULT] Verbose=true #去掉notification_driver = noop Remove # [database]connection #去掉改为connection = Mysql://glance:[email Protected]/glance #根据自己的数据库密码定 [Keystone_authtoken] Add Auth_uri = Http://controller:5000auth_url = Http://controller : 35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = Defaultproject_name = Serviceusername = Glancepassword = Glance #根据自己的glance用户密码配置, my setting is glance [Paste_deploy] instead of Flavor=keystone [glance_store]default_ Store=file Remove #filesystem_store_datadir =/var/lib/glance/images/
Vim/etc/glance/glance-registry.conf
[default]verbose=true Remove # notification_driver = noop Remove # [database]connection = Mysql://glance:[email protected]/glance [Keystone_authtoken] Add Auth_uri = Http://controller:5000auth_url = Http://controller:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = Defaultproject_name = Serviceusername = Glancepassword = Glance [Paste_deploy] changed to Flavor=keystone
updating the synchronization database
Glance-manage Db_sync
Restart Service
Systemctl Enable Openstack-glance-api.service Openstack-glance-registry.servicesystemctl start Openstack-glance-api.service Openstack-glance-registry.service
Note: The following error occurred when I started the service again:
Loaded:loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled; vendor preset:disabled
Finally, the following scenarios are used:
Chown-r Glance:glance/var/log/glance/api.log
User rights are insufficient to access the Api.log file.
Note: The relevant test operation can refer to the official manual.
Oracle VM + centos7.1+openstack kilo Multi-node installation tutorial---Installation of glance