Commit Graph

938 Commits

Author SHA1 Message Date
Andreas Jaeger 22d7002a9e Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:19:48 +01:00
Jenkins a3d2cf0225 Merge "replace the deprecated keystoneclient...apiclient" 2016-01-20 00:24:12 +00:00
OpenStack Proposal Bot ad80acf595 Updated from global requirements
Change-Id: I190f13f19d82e5a74ab3bb35f9fdb10c2ee3d43f
2016-01-19 13:52:21 +00:00
Jenkins b4da8ce5f3 Merge "Updated from global requirements" 2016-01-19 02:08:05 +00:00
Jenkins ab234553cf Merge "Add help the ability to sort images with multiple keys" 2016-01-18 23:23:33 +00:00
OpenStack Proposal Bot 225c87cbb5 Updated from global requirements
Change-Id: I865fc967b38a62156413e902523171738f6a494a
2016-01-18 22:45:33 +00:00
Jenkins 37c7ac8250 Merge "Updated from global requirements" 2016-01-18 13:36:03 +00:00
kairat_kushaev a8d7ded8fb Enhance description of instance-uuid option for image-create
Current description of instance-uuid may confuse users because
they may think that instance-uuid can serve as basis for image
but it just stores instance-uuid as image-metadata.
So we need to enhance the description in glanceclient.

Change-Id: I55829d106c9d25374df6538b3071104ee5f215f2
Closes-Bug: #1496822
2016-01-18 12:41:17 +03:00
OpenStack Proposal Bot b123561676 Updated from global requirements
Change-Id: I19053c6e0050385c9f21ca1a8884ec3d3007eafa
2016-01-16 03:31:55 +00:00
Jenkins 0b7a6d2379 Merge "Remove location check from V2 client" 2016-01-15 05:27:21 +00:00
kairat_kushaev cea67763c9 Remove location check from V2 client
Glance client has a custom check that generates exception if
location has not been returned by image-get request.
This check should on server side and it should be managed by
policy rules when do location-add action.
That also allows to increase possibility of migrating Heat
to v2[1].

NOTE: After this patch, we'll raise a HTTPBadRequest from
server side instead of HTTPConflict when a user adds a
duplicate location.

[1]: https://review.openstack.org/#/c/240450/

Co-Authored-By: wangxiyuan <wangxiyuan@huawei.com>

Change-Id: I778ad2a97805b4d85eb0430c603c27a0a1c148e0
Closes-bug: #1493026
2016-01-15 01:24:48 +00:00
Jenkins 2db882c41c Merge "Add docker to image_schema on glance v2 cli" 2016-01-14 15:24:07 +00:00
Jenkins d3d31a9445 Merge "Remove openstack-common.conf" 2016-01-14 14:18:39 +00:00
Jenkins 2694415bd3 Merge "Trival: Remove 'MANIFEST.in'" 2016-01-14 14:18:33 +00:00
OpenStack Proposal Bot b6b02ba7db Updated from global requirements
Change-Id: I10b4b09d3c0d41564ec2edd2435e8d1ef97e6b58
2016-01-13 03:12:46 +00:00
Jenkins 4f3722e198 Merge "use keystoneclient exceptions instead of oslo-incubator code" 2016-01-12 22:56:47 +00:00
Nicolas Simonds 214dbffc92 Skip schema validation on GET /v2/images/%s
These are server-generated, not user-generated, and schema validation
should not be necessary.

Rework a unit test that enforces this; bad data should be blocked
at ingest, not blocked on reads.

Co-authored-by: Stuart McLaren <stuart.mclaren@hp.com>
Change-Id: Ib1926fec0e858b6eed43c7931a6d6c3a1708e70e
Closes-Bug: 1501046
2016-01-12 11:30:52 +00:00
Jenkins dd588b475b Merge "Drop py33 support" 2016-01-12 03:58:21 +00:00
LiuNanke 5071f945d1 Trival: Remove 'MANIFEST.in'
Everything in this file is automatically generated by pbr. There
appears to be no good reason to keep it around.

Change-Id: I3521884ba7b4e4c209de811b6fe6d0a74580c628
2016-01-10 00:04:29 +08:00
Jenkins dfff3af389 Merge "Remove py26 support" 2016-01-09 00:49:58 +00:00
LiuNanke f85f380b61 Remove openstack-common.conf
We don't sync from oslo-incubator, so don't need this
file any more.

Change-Id: I87d2c1a33127b5378b39876198581426cfb1ec13
2016-01-07 15:35:27 +08:00
OpenStack Proposal Bot 8cce78f38d Updated from global requirements
Change-Id: I4bc51ae8c8c387aa2bcbe517c07625aeab1dc052
2016-01-07 04:57:36 +00:00
Shu Muto bc8cc31048 Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: Id80bab700d0535b919be6b8f42e0c1561557e45e
Closes-Bug: #1526170
2016-01-07 01:51:11 +00:00
LiuNanke c7fc0d6b1d Change assertTrue(isinstance()) by optimal assert
assertTrue(isinstance(A, B)) or assertEqual(type(A), B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.


Change-Id: I7135d3b7fe15b16c17b7581e553ce5d289b58f43
Related-bug: #1268480
2016-01-06 17:07:41 +00:00
KATO Tomoyuki a74a3648ec Add help the ability to sort images with multiple keys
Related Change: If79779a4c52c8dc5c4f39192d3d247335a76ba24
This help is also used for OpenStack Command-Line Interface Reference.

Change-Id: Iadce779afebe4aa80026e46f169546aba9055477
Partial-Bug: #1432813
2016-01-04 23:17:41 +09:00
Steve Martinelli bda4dd4dac use keystoneclient exceptions instead of oslo-incubator code
depending on any oslo-incubator code from another project is
dangerous. keystoneclient makes its exceptions public and it's
not recommended to use any code from
keystoneclient.openstack.common.apiclient since it's maintained
by oslo-incubator.

Change-Id: Ibfd9d364d3199fb485987edef06e1de916e57ee5
2015-12-27 01:37:44 -05:00
Atsushi SAKAI f7b50c48ef Add docker to image_schema on glance v2 cli
Add docker to v2 image_schema
Add docker to v2 unit tests

This is related to following glance api extension.
  https://review.openstack.org/#/c/249282/

Co-Authored-By: Kairat Kushaev <kkushaev@mirantis.com>

Closes-Bug: #1519402
Change-Id: Ia015f027788b49c1b0002fb3e3a93ac825854596
2015-12-25 12:28:55 +00:00
Jenkins 2973489622 Merge "remove python 2.6 trove classifier" 2015-12-23 17:40:01 +00:00
Doug Hellmann 1a01b42907 remove python 2.6 trove classifier
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.

Change-Id: I5b1b2f674d3e8bc5a5e22d9e500d55c3158c6b6f
2015-12-23 01:31:14 +00:00
Jenkins 9a9f334920 Merge "Disable suggestion of v1 help for v2 commands" 2015-12-22 18:34:43 +00:00
Jenkins 4aa9e76435 Merge "Fix image-download to stdout on Python 3.x" 2015-12-22 13:24:22 +00:00
Andy Botting 3caeb4504e Fix image-download to stdout on Python 3.x
Glance image-download to stdout fails on Python3 due to sys.stdout.write
not allowing bytes to be written directly.

A good description of the issue is listed at http://bugs.python.org/issue18512

Closes-Bug: #1528083

Change-Id: I2963914e2e0744410267b5735ff77939413916d4
2015-12-22 14:42:15 +11:00
OpenStack Proposal Bot 4a2ebfa48a Updated from global requirements
Change-Id: I0f8f4f828bfff936e36e65defad099c600b119e0
2015-12-21 23:44:58 +00:00
Javeme 78667fde6a replace the deprecated keystoneclient...apiclient
Use keystoneclient.exceptions instead of the deprecated
keystoneclient.openstack.common.apiclient.exceptions.

ref:
https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/
openstack/common/apiclient/exceptions.py#L25

Change-Id: I5ca3fa5d45b5555880b737622a5e4605302041bc
2015-12-18 20:21:24 +08:00
Jenkins b9a4621b2d Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2015-12-18 00:48:15 +00:00
Jenkins 2ea9a8b428 Merge "Deprecated tox -downloadcache option removed" 2015-12-17 19:31:28 +00:00
Shuquan Huang 20d298dc7a Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: I384fbe8722af07bcaa4e2610384446751a8072bf
Closes-bug: #1280522
2015-12-17 21:56:42 +08:00
OpenStack Proposal Bot a7f099616d Updated from global requirements
Change-Id: Ide65c653b1ec5a8405cb290a8febfccc28aef7a9
2015-12-15 18:59:44 +00:00
Monty Taylor 9bc0018eda Remove broken try/except workaround for old requests
Not only is this code broken on the requests we require on
distro-provided requests, it's not needed anymore. Remove it.

Closes-bug: 1526254

Change-Id: I47a07bf9910f118392785fc20e015f036a2e8a7c
2015-12-15 10:30:04 +00:00
shu-mutou aba40f9fdb Remove py26 support
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I50eff4ea33358791cc4f139b3b369489c38f7e5c
Closes-Bug: 1519510
2015-12-15 15:07:00 +09:00
Ondřej Nový 3dba560849 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I235e737bc6375c8e09d86818195b6aba8a0c332c
2015-12-11 23:23:29 +01:00
OpenStack Proposal Bot 96f62fe7a0 Updated from global requirements
Change-Id: I82b6811a187f2f96a89e587756c62b90b960053a
2015-12-11 15:25:14 +00:00
NiallBunting bf67b80dbf Disable suggestion of v1 help for v2 commands
Currently the client suggests 'Run `glance --os-image-api-version 1
help` for v1 help' at the end of every help message. This is could
be confusing for a v2 only command.

Therefore this patch disables it if the command does not exist in v1,
while keeping the message on the 'glance help' results.

Change-Id: I967e9ba35afb8dc40524bd1d13284e684b435f81
Closes-Bug: 1520602
2015-12-09 13:21:17 +00:00
Jenkins 2d401f4c59 Merge "Fix the download error when the image locations are blank" 2015-12-09 12:12:31 +00:00
Jenkins 5e075a2db4 Merge "Remove pypy env from tox" 2015-12-09 06:18:52 +00:00
Jenkins 79296ec58e Merge "Run py34 env first when launching tests" 2015-12-09 04:39:23 +00:00
Flavio Percoco 0e4cd15705 Remove pypy env from tox
We removed pypy's gate a few weeks ago as it's been failing for some
time. This means we're not supporting it anymore. Therefore, it should
be ok to remove it from the tox file.

Change-Id: Iac9bf4775794b8d097c0c5cae0337f14fa2fa25c
2015-12-08 22:49:34 -04:30
Long Quan Sha 44d0b02c67 Fix the download error when the image locations are blank
When the image locations are blank, glance client will get a http response
with no content, glance client should show user no data could be found,
instead of processing the blank response body that will lead to exception.

Glance client will also get a 204 response when an image is in a queued
state (this is true for 'master' and liberty/kilo/juno based servers).

Closes-Bug: #1472449

Co-Authored-by: Stuart McLaren <stuart.mclaren@hp.com>
Change-Id: I5d3d02d6aa7c8dd054cd2933e15b4a26e91afea1
2015-12-07 16:45:01 +00:00
OpenStack Proposal Bot deff84dadf Updated from global requirements
Change-Id: I506809a71c95694252be7c088b3a537b73b851a8
2015-12-06 10:43:38 +00:00
Jenkins c6ff80ffe2 Merge "Fix Resource.__eq__ mismatch semantics of object equal" 2015-12-04 23:43:32 +00:00