Commit Graph

1315 Commits

Author SHA1 Message Date
Liang Fang 5fb14f5ebb Show the backend store info
When running "glance -v image-list" there's no store info listed, so
user cannot know the type of the backend. This patch added an new option
"--include-stores" and is to add the store id to the output of "glance
image-list --include-stores".

The final output may like:
+-----+------+-------------+-----+----------+--------+-----+------+
| ID  | Name | Disk_format | ... | Size     | Status |Owner|Stores|
+-----+------+-------------+-----+----------+--------+-----+------+
| xxx | img1 | raw         | ... | 10737418 | active | xxx | ceph |
| xxx | img2 | raw         | ... | 5086345  | active | xxx | file |
+-----+------+-------------+-----+----------+--------+-----+------+

Change-Id: If86ef714c3aa03ce43ef29f26892f431f4766560
Co-authored-by: Jack Ding <jack.ding@windriver.com>
Signed-off-by: Liang Fang <liang.a.fang@intel.com>
2018-11-08 17:50:26 -08:00
Zuul a4ea9f0720 Merge "Use "multihash" for data download validation" 2018-09-18 07:58:36 +00:00
Andreas Jaeger 997e91feea Cleanup .zuul.yaml
* Sort list of templates alphabetically
* Use lower-constraints-jobs template, remove jobs
* Use tox-cover template that runs job voting in gate instead of
  in post queue, remove job

Change-Id: Ifdfa5c4b27cdeb1b4671188bf9fc30cb7f721c07
2018-09-17 19:47:04 +02:00
Brian Rosmaita 8fd7e8c664 Use "multihash" for data download validation
When the Glance "multihash" is available on an image, the
glanceclient should use it instead of MD5 to validate data
downloads.  For cases in which the multihash specifies an
algorithm not available to the client, an option is added
to the image-download command that will allow fallback to
the legacy MD5 checksum verification.

Change-Id: I4ee6e5071eca08d3bbedceda2acc170e7ed21a6b
Closes-bug: #1788323
2018-09-07 14:50:24 -04:00
Nguyen Hai 5fa921a5c7 add lib-forward-testing-python3 test job
This is a mechanically generated patch to add a functional test job
running under Python 3 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I6c76d04d28a610d3bf563f9cecffcdcbd432fc52
Story: #2002586
Task: #24297
2018-08-20 15:35:48 +09:00
Nguyen Hai 14599028d9 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I4530174cfa59bbaef474847276e4bc39c593f670
Story: #2002586
Task: #24297
2018-08-20 15:35:47 +09:00
Nguyen Hai 99c3fc13c9 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I15c2d1da21c05c6530e7c05e8e90c2660a041144
Story: #2002586
Task: #24297
2018-08-20 15:35:45 +09:00
Nguyen Hai 0018ad6d3d import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If6a88f851bf2509ae6e452aa27de34cd9a3b5f88
Story: #2002586
Task: #24297
2018-08-20 15:35:44 +09:00
zhangbailin a757757a10 Remove team diversity tags note in README
In this commit(https://review.openstack.org/#/c/579870/) removed
diversity tags, it should also be updated here.

Change-Id: I035e6286286558b74a6949dc2f1826ce25b1786f
2018-08-10 09:51:35 +08:00
Zuul a8083d8196 Merge "Update reno for stable/rocky" 2018-07-26 15:08:44 +00:00
OpenStack Release Bot 1ad9db6f59 Update reno for stable/rocky
Change-Id: I604e167d66f498f99fa7be584586e74dfce96874
2018-07-26 09:01:50 +00:00
wangxiyuan eba4bb06d9 Skip quote '=' for token header
If the token is encoded by base64, it may contain '=' char
as well.

We should skip quoting it.

Change-Id: I1ca63d251fa366f0e8e58128d45b729a2489b65c
Partial-Bug: #1783290
2018-07-26 11:41:27 +08:00
Zuul 2c26f2748f Merge "Correct typo in releasenote" 2018-07-25 22:48:38 +00:00
Brian Rosmaita a978893333 Correct typo in releasenote
A missing space is messing up the html rendering.

Change-Id: If65cae35384995c7dbb138ee3993ee4d99850e64
2018-07-25 18:22:25 -04:00
Erno Kuvaja 4a4de97306 Releasenotes for bugfixes in 2.12.0
Change-Id: I4094fe3e08b418dc6e62b929789cb06379bb368f
2018-07-25 23:09:15 +01:00
Zuul c26c6380d0 Merge "Do not quote '+' for token header" 2018-07-25 20:39:53 +00:00
Zuul cd88b8795e Merge "Add release note for hidden images support" 2018-07-25 20:39:52 +00:00
Abhishek Kekane d7fbd0a516 Add support for hide old images
Added --hidden argument to list, create and
update call.

Related to blueprint hidden-images
Change-Id: I1f2dcaa545c9da883186b20a96a70c7df994b994
2018-07-25 10:27:28 -04:00
wangxiyuan 818362147d Do not quote '+' for token header
The token in request header may contain url char, such as '+',
if quote it, '+' will change to '%2B' which will lead to 401 error.

Our CI doesn't notice this bug because Keystone use fernet token
which doesn't contain url char by default. But token format in
keystone is plugable, some out-tree token formats may contain
url char (for example, PKI/PKIZ token).

So we should skip quote token to avoiding information changing.

Closes-bug: #1783290
Change-Id: I5aa71b3e2b9b19581e46ccf8a80eda5d637f17d1
2018-07-25 16:22:43 +08:00
Brian Rosmaita 2b33e6858a Add release note for hidden images support
Related to blueprint hidden-images

Change-Id: Ie915c6af1142b02716aef89d4832cd8e466e5ec9
2018-07-24 22:55:29 -04:00
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