Hide Forgot
Cloned from launchpad blueprint https://blueprints.launchpad.net/glance/+spec/retry-auth-swift-uploads. Description: Currently, if we want to upload a large image file from glance to swift and the auth token is about to expire, it will result into 401. However, if we fetch a new token for each chunk we upload it would be a much safer choice. There can be some optimizations here like: - we look for the expiration time within the eventlet thread and recreate a new token when the old one is about to expire We can cache the token if needed and set the expiry time in the cache. - Or, we can try to have a Retryable error raised within the exception and that way either a new thread can be spun up for uploading the remnant chunks. Specification URL (additional information): None