5. Configure the Image Service

Controller Node:

1. sudo apt-get install glance python-glanceclient

2. sudo vi /etc/glance/glance-api.conf AND sudo vi /etc/glance/glance-registry.conf

[database]

connection = mysql://glance:[email protected]/glance

3. sudo rm /var/lib/glance/glance.sqlite

4. 创建数据库

mysql -u root -p

CREATE DATABASE glance;

GRANT ALL PRIVILEGES ON glance.* TO ‘glance‘@‘localhost‘ IDENTIFIED BY ‘GLANCE_DBPASS‘;

GRANT ALL PRIVILEGES ON glance.* TO ‘glance‘@‘%‘ IDENTIFIED BY ‘GLANCE_DBPASS‘;

5. sudo -s /bin/sh -c "glance-manage db_sync" glance

6. 创建用户

keystone user-create --name=glance --pass=GLANCE_PASS [email protected]

keystone user-role-add --user=glance --tenant=service --role=admin

7. sudo vi /etc/glance/glance-api.conf AND sudo vi /etc/glance/glance-registry.conf

[keystone_authtoken]

auth_uri = http://controller:5000

auth_host = controller

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = glance

admin_password = GLANCE_PASS

[paste_deploy]

flavor = keystone

8.

keystone service-create --name=glance --type=image --description="OpenStack Image Service"

keystone endpoint-create \

--service-id=$(keystone service-list | awk ‘/ image / {print $2}‘) \

--publicurl=http://controller:9292 \

--internalurl=http://controller:9292 \

--adminurl=http://controller:9292

9. sudo service glance-registry restart && sudo service glance-api restart

Verify:

1.

sudo mkdir /tmp/images

cd /tmp/images/

sudo wget http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img

2.

source admin-openrc.sh

glance image-create --name "cirros-0.3.2-x86_64" --disk-format qcow2 --container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img

3. glance image-list

时间: 2024-12-11 16:35:23

5. Configure the Image Service的相关文章

Install and Configure OpenStack Database Service (Trove)

Based on OpenStack Icehouse release we will install Database service on controller node 1. 这个还不完善,以后更新 Install and Configure OpenStack Database Service (Trove),布布扣,bubuko.com

【MongoDB】Configure a Windows Service for MongoDB

In this blog, I will mainly attach great importantance to how to create a windows service for mongodb. The method described in the next is referred from the official website of mongodb. http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windo

3. Configure the Identity Service

Controller Node: 安装认证服务: 1. sudo apt-get install keystone 2. sudo vi /etc/keystone/keystone.conf [database] # The SQLAlchemy connection string used to connect to the database connection = mysql://keystone:[email protected]/keystone 3. sudo rm /var/li

RHEL7: How to configure a rc-local service

问题: linux7 /etc/rc.local 不生效: [[email protected] mysql3306]# uname -aLinux bogon 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 在/etc/rc.local上添加如下部分,重启后没有生效: if test -f /sys/kernel/mm/transparent_hugepage/en

Configure time service clients

Learn how to manage the system time and configure the chronyd service to work with NTP. Local time managementSince Red Hat Enterprise Linux 7, rhel offers three command line tools that can be used to configure and display information about the system

Setup and Configure the vsftpd server in CentOS 7 operation system

############################################################################## 1. close the firewall service =====THE COMMAND YOU CAN TYPE INTO YOUR CONSOLE====== #systemctl stop firewalld.service                     //stop the firewall service #syst

Openstack组件部署 — Nova_Install and configure a compute node

目录 目录 前文列表 Prerequisites 先决条件 Install and configure a compute node Install the packages Edit the etcnovanovaconf file Finalize installation 前文列表 Openstack组件部署 - Overview和前期环境准备 Openstack组建部署 - Environment of Controller Node Openstack组件部署 - Keystone功能

CAS 与 Spring Security 3整合配置详解

一般来说,Web 应用的安全性包括用户认证(Authentication)和用户授权(Authorization)两个部分.用户认证指的是验证某个用户是否为系统中的合法主体,也就是说用户能否访问该系统.用户授权指的是验证某个用户是否有权限执行某个操作.在一个系统中,不同用户所具有的权限是不同的.比如对一个文件来说,有的用户只能进行读取,而有的用户可以进行修改.一般来说,系统会为不同的用户分配不同的角色,而每个角色则对应一系列的权限. 对于上面提到的两种应用情景,Spring Security 框

Topshelf Configuration z

Topshelf Configuration While the Quickstart gives you enough to get going, there are many more features available in Topshelf. The following details the configuration options available, and how to use them in Topshelf services. Service Name Specify t