在controller里操作
成都創(chuàng)新互聯(lián)公司專(zhuān)注為客戶(hù)提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站制作、成都做網(wǎng)站、衛(wèi)輝網(wǎng)絡(luò)推廣、微信平臺(tái)小程序開(kāi)發(fā)、衛(wèi)輝網(wǎng)絡(luò)營(yíng)銷(xiāo)、衛(wèi)輝企業(yè)策劃、衛(wèi)輝品牌公關(guān)、搜索引擎seo、人物專(zhuān)訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);成都創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供衛(wèi)輝建站搭建服務(wù),24小時(shí)服務(wù)熱線(xiàn):18980820575,官方網(wǎng)址:vcdvsql.cn
vim /etc/glance/glance-api.conf
[glance_store]
default_store = swift 默認(rèn)為file 改為swift
stores = file, http 默認(rèn)不用動(dòng)
swift_store_auth_version = 2 默認(rèn)版本為2
stores=glance.store.swift.Store,glance.store.filesystem.Store 此項(xiàng)一定要加上,不然無(wú)法上傳
swift_store_auth_address = http://controller:5000/v2.0 controller的keystone認(rèn)證
swift_store_user = service:swift 使用swift用戶(hù)
swift_store_key = swift 密碼
swift_store_container = glance 將要被創(chuàng)建的容器
swift_store_create_container_on_put = True 上傳開(kāi)
swift_store_large_object_size = 5120 最大5G限制,但與glance結(jié)合后限制無(wú)效
swift_store_large_object_chunk_size = 200 最大200個(gè)容器
swift_enable_snet = False
systemctl restart openstack-glance-api
編輯變量,用租戶(hù)賬號(hào)密碼
vim /root/opensr
export OS_USERNAME=BPM
export OS_PASSWORD=pwd4bpm
export OS_TENANT_NAME=BPM
export OS_AUTH_URL=http://controller:5000/v2.0
export OS_REGION_NAME=RegionOne
export OS_VOLUME_API_VERSION=2
export OS_IMAGE_API_VERSION=1
source /root/opensr
export 驗(yàn)證環(huán)境變量
測(cè)試。
比如/home下有個(gè)做好的img或qcwo2鏡像
glance p_w_picpath-create --name "Windows-7-Ultimate-2014.11.19" --file Windows-7-Ultimate-2014.11.19.img --disk-format qcow2 --container-format bare --is-public True --progress
[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 777c159ca66db6dc2ae56c683607651d |
| container_format | bare |
| created_at | 2015-10-20T06:29:30.899474 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 82676cbe-414f-4c7a-a45b-c4c70aecfde3 |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | Windows-7-Ultimate-2014.11.19 |
| owner | d5ed6aee0eae4609a3baa3c4d08e0e64 |
| protected | False |
| size | 32212254720 |
| status | active |
| updated_at | 2015-10-20T06:36:54.885922 |
| virtual_size | None |
+------------------+--------------------------------------+
glance p_w_picpath-list 查看鏡像
接下來(lái)啟虛機(jī),做快照。測(cè)試。
本文題目:openstackswift做glance后端存儲(chǔ)
URL鏈接:http://vcdvsql.cn/article44/pejeee.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營(yíng)銷(xiāo)、ChatGPT、App設(shè)計(jì)、網(wǎng)頁(yè)設(shè)計(jì)公司、微信公眾號(hào)、軟件開(kāi)發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)