Xenapi glance plugin should not try uploading when the auth token in invalid
Bug #1238393 reported by
Sridevi Koushik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
The glance plugin tries to upload for invalid auth token.
In nova/image/glance, the X-Auth-Token is taken from the context, and passed on to upload. And in the upload_tarball method, the plugin starts to put the headers and upload the image, and only after all the chunks are uploaded it will receive an UnAuthorized response.
Suggested fix:
Suggested approach: Have a "HEAD" call made with the X-Auth-Token. If that returns a 401, then abandon the upload process.
Otherwise, continue with the upload.
description: | updated |
description: | updated |
description: | updated |
Changed in nova: | |
assignee: | nobody → Sridevi Koushik (sridevik) |
Changed in nova: | |
status: | New → In Progress |
To post a comment you must log in.
Good catch, after talking with basha in irc I know you found this problem in LOG and can't exactly know of the scenarios which caused these, so IMO the first thinking is let's try to reproduce this issue and make sure what's root cause about it? and then make sure why nova using a wrong token to upload image? Is it just since image upload operation take a long time and token expired during the progress? Thanks.