OpenStack Swift does glance back-end storage

Source: Internet
Author: User
Tags openstack swift

Operate in the controller.

Vim/etc/glance/glance-api.conf

[Glance_store]

Default_store = Swift defaults to file changed to Swift

Stores = file, HTTP is not moved by default

Swift_store_auth_version = 2 The default version is 2

Stores=glance.store.swift.store,glance.store.filesystem.store This item must be added, otherwise it cannot be uploaded

Swift_store_auth_address = http://controller:5000/v2.0 Controller's Keystone authentication

Swift_store_user = Service:swift Using Swift users

Swift_store_key = Swift Password

Swift_store_container = glance the container that will be created

Swift_store_create_container_on_put = True uploads Open

Swift_store_large_object_size = 5120 maximum 5G limit, but limited after binding with glance

Swift_store_large_object_chunk_size = 200 maximum of 200 containers

Swift_enable_snet = False


Systemctl Restart Openstack-glance-api


Edit variables, use tenant account password

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 validation Environment variables


Test.

For example, there is a good img or QCWO2 image under/home

Glance image-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 image-list View Image

Next, make a snapshot of the virtual machine. Test.

This article is from "Rain" blog, be sure to keep this source http://gushiren.blog.51cto.com/3392832/1704524

OpenStack Swift does glance back-end storage

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.