Cannot refresh user token when uploading image to swift backend
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | Status tracked in 10.0.x | |||||
10.0.x |
Fix Committed
|
High
|
Denis Egorenko | |||
9.x |
Fix Released
|
High
|
Denis Meltsaykin |
Bug Description
Verification on iso #372 (9.0-mos.all).
Shotgun report: http://
Use glance with Swift backend only.
This bug was detected during https:/
Steps:
[on all controllers]
1. Change token expiration from 3600 to 60.
2. Restart apache2,
[on slave by cli]
1. Create new image file by command: fallocate -l 4G temp.img
2. Upload into glance: glance image-create --file temp.img --progress --container-format bare --disk-format qcow2
Excepted result:
Successfully uploaded.
Actual result:
Upload failed. API logs: https:/
The root cause of the following: during uploading of big images Glance splits images to chunks.
Each chunk upload requires token. So when token expires uploading fails. Glance store has a mechanism to prevent such error but we need to use keystone v3 to create trust for swift driver in glance_store.
So in order to use re-auth in glance_store we need to do the following:
1. add another reference to
/etc/glance/
[ref2]
user = services:glance
key = <some_key>
user_domain_id = default
project_domain_id = default
auth_version = 3
auth_address = http://<keystone_
Please note that we are using v3 for authentication.
Also we can replace old reference (ref1) with the reference above if there are no active images in database.
2. Change default_
In that case glance can upload any images to swift without auth errors.
Changed in mos: | |
assignee: | nobody → MOS Puppet Team (mos-puppet) |
Changed in mos: | |
importance: | Undecided → High |
milestone: | none → 9.0 |
description: | updated |
tags: | added: area-puppet |
(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:
expected result
For more detailed information on the contents of each of the listed sections see https:/ /wiki.openstack .org/wiki/ Fuel/How_ to_contribute# Here_is_ how_you_ file_a_ bug