Revision history [back]

click to hide/show revision 1
initial version

swift-glance backend

HI,

I have several problems to change the glance backend to store the new image in a swift's container. I'm using openstack rocky and Ubuntu 18.10. There is someone that can help me? In particular, has anyone done this procedure and it works properly?

I find on the internet only guide for a different version of rocky or Ubuntu, but for me don't work. When i create a new image, i have the errno 111 (connection refused). There is the link i was following to change glance's backend: https://www.unixarena.com/2015/10/openstack-re-configure-glance-to-use-swift-storage.html/

swift-glance backend

HI,

I have several problems to change the glance backend to store the new image in a swift's container. I'm using openstack rocky and Ubuntu 18.10. There is someone that can help me? In particular, has anyone done this procedure and it works properly?

I find on the internet only guide for a different version of rocky or Ubuntu, but for me don't work. When i create a new image, i have the errno 111 (connection refused). There is the link i was following to change glance's backend: https://www.unixarena.com/2015/10/openstack-re-configure-glance-to-use-swift-storage.html/

[glance_store]
default_store = swift
stores = file,http,swift
swift_store_auth_version = 2
swift_store_auth_address = http://controller:8080/v2.0/
swift_store_user = service:swift
swift_store_region = RegionOne
swift_store_key = studente
swift_store_container = glance
swift_store_create_container_on_put = True
swift_store_auth_insecure = True
swift_store_large_object_size = 2000
swift_store_large_object_chunk_size = 200
swift_enable_snet = False

Glance version: 2.9.1
Swift version: python-swiftclient 3.6.0

swift-glance backend

HI,

I have several problems to change the glance backend to store the new image in a swift's container. I'm using openstack rocky and Ubuntu 18.10. There is someone that can help me? In particular, has anyone done this procedure and it works properly?

I find on the internet only guide for a different version of rocky or Ubuntu, but for me don't work. When i create a new image, i have the errno 111 (connection refused). There is the link i was following to change glance's backend: https://www.unixarena.com/2015/10/openstack-re-configure-glance-to-use-swift-storage.html/

[glance_store]
default_store = swift
stores = file,http,swift
swift_store_auth_version = 2
swift_store_auth_address = http://controller:8080/v2.0/
swift_store_user = service:swift
swift_store_region = RegionOne
swift_store_key = studente
swift_store_container = glance
swift_store_create_container_on_put = True
swift_store_auth_insecure = True
swift_store_large_object_size = 2000
swift_store_large_object_chunk_size = 200
swift_enable_snet = False

Glance version: 2.9.1
Swift version: python-swiftclient 3.6.0

i do this command:

$ openstack image create "cirros" --file cirros-0.4.0-x86_64-disk.img.1 --disk-format qcow2 --container-format bare --public

I can create the image successfully, even if I don't know what folder it is in.

Output of " $openstack image list":

| ID                                   | Name            | Status |
| 1c82bd08-7633-4cfa-9cff-a2b765752e7f | cirros          | active

But if write "openstack volume list" no volume are created. Also this is what i see in glance-api.log file:

2019-07-24 06:30:02.313 5258 INFO eventlet.wsgi.server [req-0676375c-edf9-4222-928e-5bfe0553a4ef bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:02.359 5258 INFO eventlet.wsgi.server [req-ff5f45ea-3476-4883-bdba-2354d06108a2 bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:04.186 5258 INFO eventlet.wsgi.server [req-551a7063-2f43-4e04-8de2-28eadcbd6fc8 bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:04.207 5258 INFO eventlet.wsgi.server [req-12298dd4-6f6a-4d4a-a1e1-7f9c0d61ee2f bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:04.213 5258 INFO eventlet.wsgi.server [req-1074c542-4ba5-4ae1-ac15-19078a3f6e9c bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$

$ openstack image show 1c82bd08-7633-4cfa-9cff-a2b765752e7f

| Field            | Value    
| checksum         | 443b7623e27ecf03dc9e01ee93f67afe                                                                                                                                                           
| container_format | bare                                                                                                                                                                                       
| created_at       | 2019-07-24T06:25:49Z                                                                                                                                                                       |
| disk_format      | qcow2                                                                                                                                                                                      |
| file             | /v2/images/1c82bd08-7633-4cfa-9cff-a2b765752e7f/file                                                                                                                                       |
| id               | 1c82bd08-7633-4cfa-9cff-a2b765752e7f                                                                                                                                                       |
| min_disk         | 0                                                                                                                                                                                          |
| min_ram          | 0                                                                                                                                                                                          |
| name             | cirros                                                                                                                                                                                     
| owner            | 0bf1e67c865b4dc9a909a300a5a0497c                                                                                                                                                           |
| properties       | os_hash_algo='sha512', os_hash_value='6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78', os_hidden='False' |

| protected        | False                                                                                                                                                                                      |
| schema           | /v2/schemas/image                                                                                                                                                                          |
| size             | 12716032                                                                                                                                                                                   |
| status           | active                                                                                                                                                                                     |
| tags             |                                                                                                                                                                                            |
| updated_at       | 2019-07-24T06:25:55Z                                                                                                                                                                       |
| virtual_size     | None 
| visibility       | public

this is the project that i have inside openstack:

$openstack project list
| ID                               | Name      |
| 0bf1e67c865b4dc9a909a300a5a0497c | admin     |
| 29cb13cd16624e658176d3b4d29cff76 | service   |
| c66697908bd24f48a94b2f5d9ffddd14 | myproject |