Commit Graph

1295 Commits

Author SHA1 Message Date
Zuul ccbd86ba13 Merge "Unit tests for multi-store support" 2018-07-25 00:55:36 +00:00
Zuul ca34119a34 Merge "Add release note for multi-store support" 2018-07-25 00:39:15 +00:00
Zuul ac378e0254 Merge "Add multi-store support" 2018-07-25 00:39:14 +00:00
Zuul ec559c5fbd Merge "Add multihash release note." 2018-07-24 23:01:16 +00:00
Zuul a97d4194ef Merge "Add support for multihash" 2018-07-24 21:34:18 +00:00
Brian Rosmaita dfccd7bb14 Add release note for multi-store support
Related to blueprint multi-store

Change-Id: I88dbaa3f761519d1d959541a74fdfd760d942b2e
2018-07-24 16:32:41 -04:00
Brian Rosmaita 148d1c080f Add multihash release note.
Related to blueprint multihash

Change-Id: I3dd3c06f970b5d1e9373b3240863e3806e759811
2018-07-24 16:06:07 -04:00
Abhishek Kekane ce5a929b9b Unit tests for multi-store support
Related to blueprint multi-store

Change-Id: Ib22cc5fd4eee0326c307abb236ef31a39edfa6a6
2018-07-24 11:02:19 +00:00
Abhishek Kekane 71bfd7bfad Add multi-store support
Added multi-store support. User can now use '--backend'
option to pass desired store while creating, uploading or
importing image to speific store backend.

Added new command 'stores-info' which will return available
stores information to the user.

Related to blueprint multi-store
Change-Id: I7370094fc4ed47205b5a86a18b22aaa7b9457e5b
2018-07-24 10:54:18 +00:00
Chen Hanxiao c159b5ccbc image-list: add checksum algorithm description
We use MD5 for checksum, add this description
in cli helps.

Change-Id: I3469b0dface63f4684ad39421eee4c2a2de4d80b
Signed-off-by: Chen Hanxiao <chenhx@certusnet.com.cn>
2018-07-24 08:45:01 +08:00
Abhishek Kekane 1f1a8176ce Add support for multihash
Related to blueprint multihash

Change-Id: Iff4a5fe224b5d47255d7f23f65bbc08468f47f02
2018-07-23 11:06:57 +00:00
Zuul 71abbfca2a Merge "Fix docs cli authorize environment variables" 2018-07-17 23:04:00 +00:00
Zuul c3afa0b70d Merge "Update 'doc/source/reference/apiv2.rst'" 2018-07-17 23:03:59 +00:00
Zuul b7cf7ae0a2 Merge "Remove PyPI downloads" 2018-07-17 23:03:58 +00:00
Zuul 398bb0613b Merge "Replace 'raise StopIteration' with 'return'" 2018-07-17 23:03:57 +00:00
Zuul 9977214b5c Merge "fix tox python3 overrides" 2018-07-06 22:21:44 +00:00
Dougal Matthews b7442c5694 Replace 'raise StopIteration' with 'return'
With PEP 479, the behaviour of StopIteration is changing. Raising it to
stop a generator is considered incorrect and from Python 3.7 this will
cause a RuntimeError. The PEP recommends using the return statement.

More details: https://www.python.org/dev/peps/pep-0479/#examples-of-breakage

Change-Id: Ia067940066a5666926dcf61136b03d721a87666e
2018-06-29 14:31:51 +01:00
qingszhao 45ba4e3b28 Add release note link in README
Change-Id: I7de7c27a067f6346ebb9a29f76a7531502801a71
2018-06-28 01:52:53 +08:00
Zuul bf9e6cea18 Merge "update shell tests to not rely on the serialization order of a dict" 2018-06-14 17:45:45 +00:00
Brian Rosmaita ecca6c30b6 Add experimental python3 functional test gate
Change-Id: I7dcdc23c5fbfa21f194fb5a45cd8ca157b1e0362
2018-06-08 14:23:02 -04:00
Doug Hellmann f536541eb6 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I8a41be18dac0fc3199ee5fa691a4ab48fae66849
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-07 17:51:28 -04:00
Doug Hellmann e484311923 update shell tests to not rely on the serialization order of a dict
Under python 3 with ordering randomized we cannot depend on the JSON
output matching exactly. Instead we de-serialize the data structure
that was written and compare the structures, which will always match.

Change-Id: I134b62413a7cde25f3efda6a2452c1e3d11d41d0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-07 17:51:28 -04:00
Chen c24c882b67 Remove PyPI downloads
According to official site,
https://packaging.python.org/guides/analyzing-pypi-package-downloads/
PyPI package download statistics is no longer maintained and thus
should be removed.

Change-Id: I36ad2c12e881149400c17174f56e8962df4c1aba
2018-06-07 22:38:41 +08:00
Zuul 1cf00a5cc9 Merge "Add release note for HTTP headers fix" 2018-06-06 18:14:05 +00:00
Brian Rosmaita c918dae2aa Add release note for HTTP headers fix
Change-Id: I08838ff4682290527565e8cf687945307034c5ba
2018-06-06 12:05:22 -04:00
Brian Rosmaita c19192221b Remove functional-identity-v3-only job
The glanceclient-dsvm-functional-identity-v3-only job is exactly
like the glanceclient-dsvm-functional job, except that it sets
the devstack config option ENABLE_IDENTITY_V2 to False.  Change
I5afcba6321f496b8170be27789bee7c9ad8eacce in devstack makes False
the default value for this option, so we already have a voting gate
job that uses identity v3.  This patch removes the redundant
non-voting identity-v3-only job.

Change-Id: I5d5550c06b179810d25a472cc423403daed43776
2018-06-06 09:53:00 -04:00
Zuul 0dfbfa611d Merge "Enable Python hash seed randomization in tests" 2018-06-06 02:43:03 +00:00
Zuul 93affb35d5 Merge "Switch to using stestr" 2018-06-05 23:38:17 +00:00
wangqi 7edb3783c7 Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: I1b401c583d5e7677fc719bfc4eb2f2bba7b98cfa
2018-06-05 14:38:51 +00:00
Zuul 3b457d4439 Merge "Remove usage of ordereddict" 2018-06-04 23:52:26 +00:00
Zuul fe1f4e3f3c Merge "Add periodic tips jobs" 2018-06-04 23:39:21 +00:00
Cyril Roelandt abfe0f4bf3 Image show: print human readable string when the virtual size is unknown
Currently, when the virtual size of an image is not known, "None" is displayed.
To a regular user, it feels like a programming error. We try and make things
clearer by using a "human readable" string instead.

Change-Id: Id7b8799356857d9bc58cc8a3677024fe1a7f4f56
Partial-Bug: #1665037
2018-05-31 18:52:20 +02:00
Brian Rosmaita dd66759b39 Add periodic tips jobs
Add jobs to the periodic queue that run the glanceclient unit tests
against the master of various libraries we consume so that we don't
have to wait for a release to detect a change that could be
problematic.

Change-Id: If4090462449b4c5340754490aa8f4116d5608e34
2018-05-30 17:49:53 -04:00
Zuul 1ef5e5d169 Merge "Removes unicode 'u' response from "glance image-tag-update"" 2018-05-18 16:23:20 +00:00
Brian Rosmaita ee029a9b92 Handle HTTP headers per RFC 8187
According to RFC 8187, HTTP headers should use 7-bit ASCII encoding.
The glanceclient was encoding them as UTF-8, which can leave the 8th
bit nonzero when representing unicode, and which presents problems
for any recipient following the standard and decoding the headers as
ASCII.

This change requires keystoneauth1 3.6.2, which has a fix for a
bug that made it unable to handle bytes in headers.  The dependency
is a patch bumping the keystoneauth1 version in upper-constraints.

Depends-on: https://review.openstack.org/#/c/569138/

Change-Id: I0d14974126fcb20e23a37347f4f1756c323cf2f5
Closes-bug: #1766235
2018-05-17 15:53:34 -04:00
Zuul b9c6db6558 Merge "Trivial: Update pypi url to new url" 2018-05-14 15:55:41 +00:00
Brian Rosmaita 9ecda262c0 Update property keys document
The list of useful image properties really belongs in the Glance
Administration Guide.  The only connection they have with the
glanceclient is that you can use it to set them.  Rewrite the
property keys document to reflect this.  The dependency moves the
relevant text to the Glance Admin Guide.

Depends-on: https://review.openstack.org/565780
Change-Id: I39add6728aad42988a07d2ad97cd81dbdaf4c54a
2018-05-02 10:41:19 -04:00
Tovin Seven 730cdcb59d Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: I633a8efb61d6b990f77acf3d6e7d1532f73d4278
2018-04-20 17:18:17 +07:00
Zuul 94aa58e89e Merge "Split glanceclient functional tests" 2018-04-12 17:17:19 +00:00
Nguyen Hai a8003eced7 Follow the new PTI for document build
- Follow new PTI for docs build
- Add sphinxcontrib.apidoc to replace pbr autodoc

REF:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: Id16a5eaa57bc0d96332849abfb62898e6766ef86
2018-04-12 03:34:35 +00:00
Erno Kuvaja 314a29f6a6 Add releasenotes for 2.11.0
Change-Id: I546711a58b3977dc6302debdea1de978054f1a2b
2018-04-11 14:00:52 +01:00
Zuul 939e532a3a Merge "Update local copy of image schema for 2.6" 2018-04-11 04:34:37 +00:00
Doug Hellmann 863fb3b20e add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I6a7a78800caf3c536603ae0bcfeb03830c8a5860
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 10:27:34 -04:00
Zuul 6b6def6182 Merge "Make image-import fail faster" 2018-04-09 13:17:57 +00:00
Zuul 3ceba79042 Merge "Fix python 3.6 escape char warning" 2018-04-09 13:17:56 +00:00
Brian Rosmaita e89fcae346 Update local copy of image schema for 2.6
Update the local copy of the image schema to reflect Image API 2.6.

Change-Id: Ib0e56027927880d0fa198ffd8ea4b57e39f9d0fe
Closes-bug: #1762044
Depends-on: https://review.openstack.org/#/c/559501/
2018-04-08 14:48:36 -04:00
Brian Rosmaita 46dd4dd60f Make image-import fail faster
Add checks to image-import command so that it provides better user
feedback in failure situations.

Change-Id: I8b6b32c3d1d1a745aa68ff8dc629419dff9bb130
Closes-bug: #1758718
2018-04-04 14:36:13 -04:00
Brian Rosmaita 79543a67ed Make image-create-via-import fail faster
Add checks to the image-create-via-import commmand so that it provides
better user feedback and doesn't begin the import workflow unless the
input has a chance of succeeding.  Preserves backward compatibility
with the current image-create command by (1) allowing an image record
only to be created when no import-method is specified AND no data is
supplied, and (2) doing the glance-direct workflow when no import-
method is specified AND data is provided.  Also adds the ability for
the import-method to be set as an env var OS_IMAGE_IMPORT_METHOD.

Change-Id: I0a225f5471a9311217b5d90ebb5fd415c369129a
Closes-bug: #1758149
2018-04-04 13:51:40 -04:00
Zuul 6bab2404ec Merge "Fix intermittent v2 shell unit test failures" 2018-04-03 14:41:45 +00:00
Zuul 2aa451154a Merge "Updated from global requirements" 2018-04-03 01:25:01 +00:00