博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2-glance 部署
阅读量:5051 次
发布时间:2019-06-12

本文共 4088 字,大约阅读时间需要 13 分钟。

1. mysql 创建数据库和用户

create database glance;

grant all privileges on glance.* to 'glance'@'localhost' identified by 'mhc.123';

grant all privileges on glance.* to 'glance'@'%' identified by 'mhc.123';

2. 

# source env/admin.openrc

# openstack user create --domain default --password-prompt glance

# openstack role add --project service --user glance admin

# openstack service create --name glance --description "OpenStack Image service" image

# openstack endpoint create --region RegionOne image public http://v460:9292

# openstack endpoint create --region RegionOne image internal http://v460:9292

# openstack endpoint create --region RegionOne image admin http://v460:9292

3. 安装

# git checkout -b rocky remotes/origin/stable/rocky

# pip install -r requirements.txt

# python setup.py install

# pip install python-glanceclient

# mkdir -p /var/lib/glance/images

# user add glance

# chown -R glance:glance /var/lib/glance/images

配置: https://github.com/mhcvs2/docker/tree/master/openstack/glance

# glance-manage db_sync

 

# yum install https://buildlogs.centos.org/centos/7/cloud/x86_64/openstack-liberty/centos-release-openstack-liberty-1-3.el7.noarch.rpm

# yum install openstack-utils

# cp -r etc /etc/glance

openstack-config --set  /etc/glance/glance-api.conf database connection  mysql+pymysql://glance:glance@controller/glanceopenstack-config --set  /etc/glance/glance-api.conf keystone_authtoken www_authenticate_uri http://controller:5000openstack-config --set  /etc/glance/glance-api.conf keystone_authtoken auth_url http://controller:5000openstack-config --set  /etc/glance/glance-api.conf keystone_authtoken memcached_servers  controller:11211openstack-config --set  /etc/glance/glance-api.conf keystone_authtoken auth_type passwordopenstack-config --set  /etc/glance/glance-api.conf keystone_authtoken project_domain_name Defaultopenstack-config --set  /etc/glance/glance-api.conf keystone_authtoken user_domain_name Defaultopenstack-config --set  /etc/glance/glance-api.conf keystone_authtoken project_name service openstack-config --set  /etc/glance/glance-api.conf keystone_authtoken username glanceopenstack-config --set  /etc/glance/glance-api.conf keystone_authtoken password glanceopenstack-config --set  /etc/glance/glance-api.conf paste_deploy flavor keystoneopenstack-config --set  /etc/glance/glance-api.conf glance_store stores  file,httpopenstack-config --set  /etc/glance/glance-api.conf glance_store default_store fileopenstack-config --set  /etc/glance/glance-api.conf glance_store filesystem_store_datadir /var/lib/glance/images/
openstack-config --set  /etc/glance/glance-registry.conf database connection mysql+pymysql://glance:glance@controller/glanceopenstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken www_authenticate_uri http://controller:5000openstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken auth_url http://controller:5000openstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken memcached_servers controller:11211openstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken auth_type passwordopenstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken project_domain_name Defaultopenstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken user_domain_name Defaultopenstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken project_name serviceopenstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken username glanceopenstack-config --set  /etc/glance/glance-registry.conf keystone_authtoken password glanceopenstack-config --set  /etc/glance/glance-registry.conf paste_deploy flavor keystone # glance-control registry start # glance-control registry status # glance-control api start # glance-control api status
wget http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img # source ~/env/admin.openrc # openstack image create "cirros" --file cirros-0.3.5-x86_64-disk.img --disk-format qcow2 --container-format bare --public # openstack image list

转载于:https://www.cnblogs.com/mhc-fly/p/10085252.html

你可能感兴趣的文章
Qt中QTableView中加入Check列实现
查看>>
“富豪相亲大会”究竟迷失了什么?
查看>>
控制文件的备份与恢复
查看>>
返回代码hdu 2054 A==B?
查看>>
Flink独立集群1
查看>>
iOS 8 地图
查看>>
20165235 第八周课下补做
查看>>
[leetcode] 1. Two Sum
查看>>
iOS 日常工作之常用宏定义大全
查看>>
PHP的SQL注入技术实现以及预防措施
查看>>
MVC Razor
查看>>
软件目录结构规范
查看>>
Windbg调试Sql Server 进程
查看>>
linux调度器系列
查看>>
mysqladmin
查看>>
解决 No Entity Framework provider found for the ADO.NET provider
查看>>
SVN服务器搭建和使用(三)(转载)
查看>>
Android 自定义View (三) 圆环交替 等待效果
查看>>
设置虚拟机虚拟机中fedora上网配置-bridge连接方式(图解)
查看>>
HEVC播放器出炉,迅雷看看支持H.265
查看>>