Glance cannot delete incomplete chunked upload to Swift backend if token expires
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
This bug is related to https:/
Downstream bug - https:/
Originally reported as part of https:/
There are 2 issues with deletion of stale chunks if a large upload failed (for whatever reason):
1. there is no retry on exception https:/
2. the auth retry in swiftclient's code fails to get auth because (for some reason) Glance initializes connection with (implicit) auth_version = 1 - here https:/
Here is a log extract - http://
Note how I first forced the upload to fail (by Ctrl+C on client side), which caused the 1st trace
Then I forced the token to expire by setting expiration to 120 in keystone, and adding a sleep inside _delete_
The 2nd trace is auth error, and then you can see that the deletion is not retried for this chunk - this is the first issue
the 3rd and subsequent traces are caused by auth_version = 1, so deletion of all subsequent chunks also fails - this is the second issue
Looks like a problem when using swift backend in multi-tenant-store configuration (see the related bug mentioned in the description).