OpenStack as a whole is moving towards using testrepository and
testtools for running tests. To that end, bring Glance into line by
switching it to use testrepository to run tests.
This copies run_tests.sh and tools/colorizer.py from Nova.
This change also has some minor changes to make run_test.sh work well.
Partial fixes bug: 1179009
Fixes bug: 1271806
Change-Id: Ic265bc0d2f1528358f6e8ee5b4139f991923fc72
Signed-off-by: Steve Kowalik <steven@wedontsleep.org>
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
The 'owner' property on an image is exposed in v1 but does
not appear in the v2 image response. It would be useful to
have this available.
docImpact
Implement blueprint expose-owner-in-v2
Change-Id: I90f68d57e185f4a5ee63cd97bd5597948dde33ea
This patch removes logging of sensitive store location uri, which
is logged when an exception occurs while trying to get the object
from the store or due to a failure in getting the store api due to
unauthorized context.
fixes bug 1275062
Change-Id: I679baa0897f242f4b8372c9c1c7ab28ae811f5e5
Enable H202 check: assertRaises Exception too broad.
Make changes to glance/tests/unit/test_notifier.py
Change-Id: I258367172e77312ddda06132d2e8371e8fff81e7
A glance-manage db upgrade/db downgrade will do either an 'upgrade to
latest' or 'downgrade to None' even though a version argument is
provided. The version being passed isn't being picked up and None is
passed across.
Fixes bug 1258068
Change-Id: Iaab4cf5eeb6d7c9c94fc741841a6b0797a058d40
Glance's scrubber was created under the store package because it is
intended to clean up images from stores when `delayed_delete` is
enabled. However, it doesn't really belong there.
Soft delete is a Glance feature that allows images to be deleted
asynchronously as opposed of blocking clients requests during the image
deletion. Therefore, it needs to be store agnostic and live within
Glance's codebase.
Partially-Implements blueprint: create-store-package
Change-Id: I25ddbe1f0f1191f33d814dbae5788da7d511773a
Now we're depending on python-swiftclient>=1.6 since the parameter
'headers' was introduced since python-swiftclient 1.6. This is a
regression issue introduced by patch:
https://review.openstack.org/#/c/48913/
get_object(container, obj, resp_chunk_size=None, query_string=None,
response_dict=None, headers=None)
Closes-Bug: #1276033
Change-Id: I174f2dc53a402d48301b17839be8b5fa97064805
Version 1.1.0 doesn't work, so exclude it from the version list.
Patch of requirements: https://review.openstack.org/#/c/68946
Closes-Bug: #1275716
Change-Id: I1e676f96070d1704de84f89bddbc5b23a6c6d966
As a preparation in order to switch to a newer
Pep8 version in the future, fix the indentation errors
that are missed by Pep8 1.4.5 due to bugs.
Change-Id: I30acf8fdc1ae7eadcbc1849409c989c2422f0f8f
Closes-Bug: #1267994
The store to scheme map used in the location strategy module
doesn't contain the VMware datastore backend.
Change-Id: I5d1faeb464dab79c300a525bab6e7e0ecb4ea489
Closes-Bug: #1275126
When a create call fails due to user_storage_quota
being exceeded, log a warning message.
Closes-Bug: #1270832
Change-Id: Ic7ec266aace03cff0a1f72dc3ba6f17b89f5fd55
glance uses OpenSSL.crypto.sign() and OpenSSL.crypto.verify(), which
are new in pyOpenSSL 0.11. Global requirements already fixed, do the
same change in glance
Change-Id: Ide1d180cd1966cac454d7d5d3b6475a04591735c
Partial-Bug: #1268966
Customers using a VMware environment with OpenStack should be able to
store their Glance images in VMware datastores. This is a first step to solve
the problem where Nova needs to copy the bits over the network
from Glance to the datastore when spawning an instance.
Also, this give the ability to provide some optimizations for specific
image formats in the future (fast cloning for example).
This patch contains a 'glance/store/vmware/' folder with the code
to manage the connection with vCenter or an ESX(i) host.
This code will go away as soon as it is merged to Olso:
see review https://review.openstack.org/#/c/65075/
The current implementation give this ability to specify the vCenter or
ESX(i) IP. In case of a vCenter IP, there is no optimization to reduce
the datapath (no host selected).
Consequently, it is recommended to specify an ESX IP if the ESX host
API endpoint is accessible from Glance.
docImpact
Implements bp vmware-datastore-storage-backend
Change-Id: I3837912e0d1614b9c31a689f71c2e34d453e2dc3
In v2, we're removing 'killed' status so as to let user
can retry upload if there is a failure. But based on
current implement, the image will be stuck in 'saving'
status when upload failed. This fix will restore the
image status to 'queued' to avoid the issue.
Closes-Bug: #1273087
Change-Id: Icd318e3e8d90b6837c84666c47f720b93febe228
The backwards compatibility support turned out being a forward
compatibility blocker. This patch attempts to first load the notifier
transport using the transport_url and then, if the transport_url was not
configured, it loads the transport by using the old strategy config
params.
Closes-bug: #1263945
Change-Id: I4c80c64e2d1afaf518886b51a50300a576ee6317
Assign an explicit created_at datetime value to image db fixtures,
it be used to fixes race condition in Registry v2 Client test cases.
Closes-Bug: #1272136
Change-Id: Ib9f1c7072c6ac828479c6a2e5bddd0f3ad057653
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Assign an explicit created_at and updated_at datetime value to task DB
fixtures, it be used to fixes race condition in TasksController test
cases.
Closes-Bug: #1274365
Change-Id: I9f13c7e0e97085faac15713342808722a6692178
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>