swift-glance backend configuration

asked 2020-04-25 09:11:57 -0500

NicodemosPapadoulos gravatar image

Hi friends,

I am having bad time configuring glance to use swift as backend. I researched many places about that topic but none of them seems to be updated and functional for my running version (train). I tried all configurations I found and none of them seem to work.

With my last configuration, when I try to create an image I receive the error:

HTTP 410 Gone: Error in store configuration. Adding images to store is disabled.

I do not know what is the problem exactly but I attached my configuration file in the hope someone can help me to understand the problem.

This is the glance-api.log file: https://mega.nz/file/5lMF0ASR#vQ5ejo9vjHDAIU6VgSRSTBNL00_Ct0PSqmd0XyDkONY (https://mega.nz/file/5lMF0ASR#vQ5ejo9...)

This is the glance-api.conf: https://mega.nz/file/9oN3QQzD#AVwopQxaah0Mdb5k60b7HPWRO8V-sSU-FTlA9H-kqQU (https://mega.nz/file/9oN3QQzD#AVwopQx...)

Thank you very much.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-04-26 14:07:15 -0500

NicodemosPapadoulos gravatar image

It looks like I found the solution to my problem. I think the problem was the the SSL configurations in the sections:

swift_store_use_trusts = True

swift_store_auth_insecure = True

swift_store_cacert = /etc/ssl/certs/ca-certificates.crt

swift_store_ssl_compression = False

I only removed these section and the service started to work.

My [back0] section is like this now:

[back0]

auth_version = 3

auth_address = http://controller:5000/v3

key = Abcd1234

user = service:glance

swift_store_admin_tenants = [admin]

swift_store_region = RegionOne

swift_store_container = glance

swift_store_expire_soon_interval = 60

swift_store_large_object_size = 5120

swift_store_large_object_chunk_size = 200

swift_store_create_container_on_put =True

swift_store_retry_get_count = 10

swift_store_multi_tenant = True

Obs: I removed the sections bellow because it were causing the container created to be empty:

swift_buffer_on_upload = True

swift_upload_buffer_dir = /tmp/

I post my results here in hope can help other people.

Thank you very much.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-04-25 09:11:57 -0500

Seen: 90 times

Last updated: Apr 26