commit fc32f0554de0ba7773d98e6828da157ca7c66002
Author: Mike Fedosin <email address hidden>
Date: Sun Sep 20 17:01:22 2015 +0300
Cleanup chunks for deleted image if token expired
In patch I47229b366c25367ec1bd48aec684e0880f3dfe60 it was
introduced the logic that if image was deleted during file
upload when we want to update image status from 'saving'
to 'active' it's expected to get Duplicate error and delete
stale chunks after that. But if user's token is expired
there will be Unathorized exception and chunks will stay
in store and clog it.
And when, the upload operation for such an image is
completed the operator configured quota can be exceeded.
This patch fixes the issue of left over chunks for an image
which was deleted from saving status, by correctly handle
auth exceptions from registry server.
Download forbidden when get_image_location is set.
When using v2 an attempt to download an image would return a 403 if the
get_image_location policy was set.
Note: We had been returning both 404 and 204 when no data was
available. There was no way to detect the 404 case without trying to
access the image locations so I've standardized on 204.
Change-Id: I658b08a35d3a8cb8a7096baf716ccb3d6e7d9abf
Closes-bug: 1501672
(cherry picked from commit b47f625443c3b46483506926f31fee42478705d4)
commit ebdf076cc9bd5d9239cdc96c6e7cecc72f852bbb
Author: Mike Fedosin <email address hidden>
Date: Thu Oct 1 18:28:48 2015 +0300
Catch NotAuthenticated exception in import task
If glance uses registry as data_api then it's possible
that token may expire during image import task and Glance
will have NotUauthenticated exception.
This code adds a correct handling of this exception and
allows Glance to remove stale chunks from store.
Reviewed: https:/ /review. openstack. org/235346 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=431fa95ecf9 2a9ebb7082f829c 0a99f958363cc3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 69516fad5f651a0 85a047a337a05c5 8b39023c1b
Author: Mike Fedosin <email address hidden>
Date: Mon Oct 12 15:34:54 2015 +0300
Add 'deactivated' status to image schema.
New 'deactivated' status was introduced in Kilo release,
but it doesn't listed in available image statuses in the schema.
It leads to issues on the client side, when it can't validate
the image with this status against the schema and returns the error.
Change-Id: I5ec264614ae7ec f54b846ad060044 2a18c61d24c
Closes-bug: #1505218
Related-bug: #1505134
commit c5b6901527b8b4a 1250bdc179405c8 af66fbae7e
Author: Mike Fedosin <email address hidden>
Date: Tue Oct 13 00:33:27 2015 +0300
Add testresources and testscenarios used by oslo.db fixture
If we use oslo.db fixtures, we'll need these 2 packages or
the next version of oslo.db release will break us.
Change-Id: I7c0d2f6dabc20b d4ff0d29d3b47b9 48aa24ea56b
Closes-Bug: #1503501
commit fc32f0554de0ba7 773d98e6828da15 7ca7c66002
Author: Mike Fedosin <email address hidden>
Date: Sun Sep 20 17:01:22 2015 +0300
Cleanup chunks for deleted image if token expired
In patch I47229b366c2536 7ec1bd48aec684e 0880f3dfe60 it was
introduced the logic that if image was deleted during file
upload when we want to update image status from 'saving'
to 'active' it's expected to get Duplicate error and delete
stale chunks after that. But if user's token is expired
there will be Unathorized exception and chunks will stay
in store and clog it.
And when, the upload operation for such an image is
completed the operator configured quota can be exceeded.
This patch fixes the issue of left over chunks for an image
which was deleted from saving status, by correctly handle
auth exceptions from registry server.
Partial-bug: #1498163
Change-Id: I17a66eca55bfb8 3107046910e69c4 da01415deec
commit ca8d909a61ba335 805d8d17070230c e9478a000d
Author: Stuart McLaren <email address hidden>
Date: Wed Sep 30 16:54:12 2015 +0000
Download forbidden when get_image_location is set.
When using v2 an attempt to download an image would return a 403 if the image_location policy was set.
get_
Note: We had been returning both 404 and 204 when no data was
available. There was no way to detect the 404 case without trying to
access the image locations so I've standardized on 204.
Change-Id: I658b08a35d3a8c b8a7096baf716cc b3d6e7d9abf 483506926f31fee 42478705d4)
Closes-bug: 1501672
(cherry picked from commit b47f625443c3b46
commit ebdf076cc9bd5d9 239cdc96c6e7cec c72f852bbb
Author: Mike Fedosin <email address hidden>
Date: Thu Oct 1 18:28:48 2015 +0300
Catch NotAuthenticated exception in import task
If glance uses registry as data_api then it's possible
that token may expire during image import task and Glance
will have NotUauthenticated exception.
This code adds a correct handling of this exception and
allows Glance to remove stale chunks from store.
Partial-Bug: #1498163
Change-Id: Ia6e1fe0d27b13b 920ee7e728feb53 05dec77e066
commit 0cc46f445644918 6d140b7e5d9c46e 08acf181a5
Author: OpenStack Proposal Bot <email address hidden>
Date: Thu Oct 1 06:10:45 2015 +0000
Imported Translations from Zanata
For more information about this automatic import see: /wiki.openstack .org/wiki/ Translations/ Infrastructure
https:/
Change-Id: I2646de236abc75 76bf99e5fe1c415 a04a647fad8
commit b7fb5bf0f89f657 ead98024ee0168f 2c2fa7a776
Author: Erno Kuvaja <email address hidden>
Date: Mon Sep 28 10:44:38 2015 +0000
Return missing authtoken options
Example configs were missing keystone_authtoken section after moving
to generated config files. This change returns that to generation.
Closes-Bug: #1500361
Change-Id: I6ee82c38061d48 3cea7254d155d9a 72436880e84 51986e57a638f8e a5bec56b0f)
(cherry picked from commit b1d2d938d282ccd