Comment 5 for bug 1456573

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/glance (openstack-ci/fuel-8.0/liberty)

Reviewed: https://review.fuel-infra.org/14329
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-ci/fuel-8.0/liberty

Commit: fedcb444d11eacbfa51521f2f5479c62eb93e093
Author: Mike Fedosin <email address hidden>
Date: Mon Dec 28 14:05:06 2015

Implement trust support for Glance

This commit adds new functionality in Glance,
called 'trusts', that are used to prevent token
expiration during longtime upload.

The algorighm is the following:
1. If galnce uses registry server to communicate with db, create a trust
2. Upload an image
3. Try to update the image status to 'active' in registry
4. If trust has been created succcessfully and 401 occured during
   updating the image status then renew the token and try to update
   the image record in registry again

If keystone server doesn't support trust functionality
then glance automatically returns to the basic workflow
with user token.

Co-Authored-By: Mike Fedosin <email address hidden>
Co-Authored-By: Kairat Kushaev <email address hidden>

Closes-bug: #1456573

Change-Id: Ia3b82782b14f5dfc93457620633c1039c38fc366