In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "the method of deployment and operation of openstack cloud computing component glance". In the daily operation, I believe that many people have doubts about the deployment and operation of openstack cloud computing component glance. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "openstack cloud computing component glance deployment and operation method". Next, please follow the editor to study!
A simple architecture diagram reference
Second, deploy glanceyum install memcached python-memcached
Systemctl enable memcached.service
Systemctl start memcached.servicestep 1:glance operations on the database mysql-u root-p # Log in to the database CREATE DATABASE glance; # create a new library keystoneGRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost'\ IDENTIFIED BY' 123; # create an account GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'\ IDENTIFIED BY' 123' that accesses the glance library locally # create a new account for remote access to glance library step 2:glance about keystone operation soure admin-openrc # execute administrator script # create user openstack user create for glance users-- domain default-- password-prompt glance # add role role to glance-service, hint: user glance only has the concept of role within a certain project service, individual users or individual projects cannot bind roles. Openstack role add-- project service-- user glance admin # create catalog:service+endpointopenstack service create for glance service-- name glance\-- description "OpenStack Image" imageopenstack endpoint create-- region RegionOne\ image public http://192.168.31.57:9292openstack endpoint create-- region RegionOne\ image internal http://192.168.31.57:9292openstack endpoint create-- region RegionOne\ image admin http://192.168.31.57:9292step 3: install the package yum-y install openstack-glancestep 4: configure / etc/glance/glance.conf
Major premise: each configuration should be added to the file, do not open comments on the basis of the original modification.
Create local storage:
1. Be sure to deploy the storage device before the opesntack-glance-api.service service starts, because the service will load the storage driver to retrieve the storage device at startup. If it does not exist in advance, it means that the service does not recognize any available storage device. Even if you add storage later, it is still invalid, resulting in your upload image failure.
two。 Be sure to give the opesntack-glance-api.service service writeable access to the storage device.
Mkdir-p / var/lib/glance/imageschown-R glance.glance / var/lib/glance/images
Configuration / etc/glance/glance-api.conf
[database] connection = mysql+pymysql://glance:123@192.168.31.57/ glass [Keystone _ authtoken] auth_uri = http://192.168.31.57:5000auth_url = http://192.168.31.57:35357memcached_servers = 192.168.31.57:11211auth_type = passwordproject_domain_name = Defaultproject_name = serviceusername = glancepassword = 123 [paste_deploy] flavor = Keystone [glance _ store] stores = file,httpdefault_store = filefilesystem_store_datadir = / var/lib/glance/images/
Configuration / etc/glance/glance-registry.conf
[database] connection = mysql+pymysql://glance:123@192.168.31.57/ glass [Keystone _ authtoken] auth_uri = http://192.168.31.57:5000auth_url = http://192.168.31.57:35357memcached_servers = 192.168.31.57:11211auth_type = passwordproject_domain_name = Defaultproject_name = serviceusername = glancepassword = 123 [paste_deploy] flavor = keystonestep 5: initialize the database glancesu-s / bin/sh -c "glance-manage db_sync" glance''' ignores the following printing This is normal sexual behavior: Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future./usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:1171:. Oslo_db.sqlalchemy.enginefacade. A future release. ") Result = self._query (query) 'step 6: boot glance and set boot systemctl enable openstack-glance-api.service\ openstack-glance-registry.servicesystemctl start openstack-glance-api.service\ openstack-glance-registry.service three authentication source admin-openrc# if there is no wget, then yum-y install wgetwget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.imgopenstack image create "cirros"\ -- file cirros-0.3.4-x86_64-disk.img\-- disk-format qcow2-- container-format bare\-- publicopenstack image list here The study on "how to deploy and operate openstack cloud computing components glance" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.