1268 Commits

Author SHA1 Message Date
Brian Rosmaita
c918dae2aa Add release note for HTTP headers fix
Change-Id: I08838ff4682290527565e8cf687945307034c5ba
2018-06-06 12:05:22 -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
Brian Rosmaita
dc3ee4aedb Fix intermittent v2 shell unit test failures
The do_image_download code has a check to make sure that there's
a place to put the data (either filename or stdout redirect) before
initiating the download.  The location of this check was moved by
change I841bebeda38814235079429eca0b1e5fd2f04dae to happen at the
beginning of the function.  The two intermittently failing tests
do not explicitly address the check condition, and as a result the
tests do exit early, but before they can check what they're supposed
to be testing.

Closes-bug: #1759951

Change-Id: I3c85bb358f669504b364d55618c21382b7a2a66b
2018-03-29 17:28:44 -04:00
Brian Rosmaita
32b8307819 Split glanceclient functional tests
Prepare for the Image API v1 to be removed from glance during Rocky
by splitting the functional tests that hit v1 from the tests that hit
v2.  Introduce a new job that runs the functional-v1 tests against a
devstack running glance stable/queens, and configure this job for both
check and gate for the glanceclient.  The v2 functional tests
continue to be run for both check and gate against a devstack running
glance master.

Change-Id: Ifa98ada26a84e4cca3ea8c98173f61a6174cca27
2018-03-28 22:32:44 -04:00
Zuul
bf820a1896 Merge "Remove usage of ordereddict" 2018-03-26 16:10:27 +00:00
OpenStack Proposal Bot
1158cbe2ce Updated from global requirements
Change-Id: Ie6eaac4b47a6f61f5fb459581d146c9d13aab408
2018-03-23 01:45:16 +00:00
Zuul
3142c9ab14 Merge "Update properties URL" 2018-03-22 19:14:59 +00:00
Brian Rosmaita
6cd537e274 Check for container,disk_format on web-download
Fail image-create-via-import requests for the web-download import
method that don't include values for container_format or disk_format.

Closes-bug: #1757927

Change-Id: Ic5c81916823ff32f2dbddd32b40e825de0697dc9
2018-03-22 01:16:41 -04:00
Brian Rosmaita
0661da1ee9 Update properties URL
Help text for some image properties (architecture, os_distro) is
pulled from the glanceclient's local version of the image schema.
The URL for those property definitions has gotten out of sync with
Glance.  This patch updates the URL to be the same as that given
in the Glance image-schema response.

Change-Id: I4e46e78525fe5c00e031a98c47cacc17e5693d53
Closes-bug: #1757918
2018-03-21 22:30:29 -04:00
PranaliD
aedabec9e4 Add support for web-download import method
This change adds support for 'web-download' import method
to 'image-import' and 'create-image-via-import' call.
To use this 'web-download' import method, user needs to pass
--uri option 'a valid uri to external image to import in glance'
to 'image-import' and 'create-image-via-imaport' calls.

Co-authored-by: Pranali Deore <pdeore@redhat.com>
Co-authored-by: Erno Kuvaja <jokke@usr.fi>

Change-Id: I0e1d18844f64723608288de473e97710798eb602
2018-03-21 15:09:13 +00:00
wangqi
1bef137b4f Remove usage of ordereddict
This was only needed for Python < 2.7, but glanceclient's setup.cfg
already declares compatibility only with 2.7.

Change-Id: I32e346df8b79e34027a85d9b4be59fe678953901
2018-03-20 06:47:58 +00:00
OpenStack Proposal Bot
558580febf Updated from global requirements
Change-Id: I7d1cc411d745f9d9257bc69e389aa9990f5c4f03
2018-03-15 07:56:06 +00:00
OpenStack Proposal Bot
4cb8b03062 Updated from global requirements
Change-Id: I75fd4a32f114ee040b04fe6b08be75d997cb3063
2018-03-13 07:25:08 +00:00
Zuul
c032291e3f Merge "Remove setting of version/release from releasenotes" 2018-03-09 11:18:46 +00:00
Dirk Mueller
5916702cb2 Remove usage of ordereddict
This was only needed for Python < 2.7, but glanceclient's setup.cfg
already declares compatibility only with 2.7.

Change-Id: I80d42abf5dd5565da424a90a93545ba82ef7a58d
2018-03-08 10:30:31 +01:00
Zuul
d90805cd07 Merge "Zuul: Remove project name" 2018-03-06 23:53:31 +00:00
OpenStack Proposal Bot
1dfab8fa09 Updated from global requirements
Change-Id: I346f38b435c57b3b26d743c0053acaf99e8f3cd0
2018-02-17 10:11:49 +00:00
Zuul
a7fb193f13 Merge "Revert "Remove team:diverse-affiliation from tags"" 2018-02-02 16:39:14 +00:00
Abijitha Nadagouda
195add500b Removes unicode 'u' response from "glance image-tag-update"
"glance image-tag-update" command returns unicoded response
for lists. Therefore it requires print_list method from util
class to handle such case. Added unicode_key_value_to_string()
method to remove extra 'u' from lists and dictionaries. This
fix is inspired from cinderclient's implementation.

Change-Id: I16a04e8d34f7629f72fe389456001ca1db9335ea
Closes-bug: #1534046
2018-02-02 10:36:27 +05:30
James E. Blair
37bc7a5854 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I6d35871757dc864d7fe6fad2fa9e62a9062a7575
2018-01-27 08:35:25 -08:00
Zuul
4ea9d2c493 Merge "Updated from global requirements" 2018-01-26 13:47:24 +00:00
ddf193397d Update reno for stable/queens
Change-Id: Iaab87d6948db7b18f339d8e511ed08326cbfbaa0
2018-01-24 19:32:48 +00:00
Zuul
035ddc5461 Merge "Remove deprecated ssl options" 2018-01-24 17:15:09 +00:00
OpenStack Proposal Bot
1d659d6192 Updated from global requirements
Change-Id: Ic3aee2ad37026ed09b31e327fc6f0af443c6e0fa
2018-01-24 01:28:25 +00:00
Brian Rosmaita
39d76766a8 Revert "Remove team:diverse-affiliation from tags"
The diverse-affiliation tag was restored to Glance on 2017-09-05
by change I9c61fb6d09a51adbe0a3b4bf2098ec1c98ea33e1

This reverts commit 3dae473c3acfae16cd3f51eea6367fbf289591cc.

Change-Id: I389375c47de56fdfdfa3aa8fbf28086a44b00d78
2018-01-18 04:26:42 +00:00
OpenStack Proposal Bot
b982516fc1 Updated from global requirements
Change-Id: Id6510579123bd2eb5f54f8f7cf02eb74cc1e777c
2018-01-18 03:27:22 +00:00
Rui Yuan Dou
8e862b6018 Remove deprecated ssl options
Old deprecated ssl options block the new keystoneauth parser get the
correct value, should be removed.

Change-Id: Ie080f9a8fa7f4407b1fcbb7fb7c763152c5ec295
Closes-Bug: 1697163
2018-01-17 08:50:57 +08:00