← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1238393] Re: Xenapi glance plugin should not try uploading when the auth token in invalid

 

There is actually an ML thread now about the general architecture issue
here. It's way more complicated than a simple bug and probably a bit
change to keystone auth protocol

** Changed in: nova
       Status: Incomplete => Opinion

** Changed in: nova
   Importance: Undecided => Wishlist

** Changed in: nova
     Assignee: Sridevi Koushik (sridevik) => (unassigned)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1238393

Title:
  Xenapi glance plugin should not try uploading when the auth token in
  invalid

Status in OpenStack Compute (Nova):
  Opinion

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1238393/+subscriptions