Commit Graph

950 Commits

Author SHA1 Message Date
Jenkins cc36f34480 Merge "Fix client initialization in shell tests" 2016-02-02 19:29:04 +00:00
kairat_kushaev 69ada31fbd Fix client initialization in shell tests
Shell tests initialized glanceclient with force_auth parameter
but this parameter doesn't exist at all.
The patch fixes this behavior and modifies client mocking to
prevent from these errors in future.

Change-Id: If4b469cf8da8105204a7f1f6e80ae19b86c7daee
2016-02-01 17:56:34 +03:00
kairat_kushaev 29fcefc67a Fix warnings in glanceclient README
README.rst file for functional tests and glanceclient itself
raises some warnings when passing these docs through REST
validator and build the doc:
- Need additional empty line to provide correct indent in
cloud.yaml example
- Title should be with the same length as overline.
The patch fixes these warnings.

Change-Id: I2e2ef6f838ee639d1a88256b6e321181a62cc76b
2016-02-01 13:15:01 +03:00
Jenkins 185255a5c4 Merge "Fixed TestHTTPSVerifyCert failure messages" 2016-02-01 02:17:25 +00:00
Jenkins 95df686d35 Merge "Use session when not specified token or endpoint" 2016-02-01 01:48:26 +00:00
OpenStack Proposal Bot 38f57531e8 Updated from global requirements
Change-Id: I566b999b69a794c45d9b38432b57a72242aa72ad
2016-01-24 04:01:54 +00:00
Jenkins 1995046a5f Merge "Remove monkey-patching for getsockopt" 2016-01-23 12:02:19 +00:00
Jenkins 113a81e160 Merge "Remove argparse from requirements" 2016-01-22 01:56:11 +00:00
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
kairat_kushaev 56c27d1cb8 Change metavar for location commands in V2
Currently location-add, location-delete and location-update
shows <ID> in help messages as metavar for image id. It may be
not clear to the users so we need to change this to <IMAGE_ID>.

Change-Id: I59c787e449fa34bc792de179993c55f59734b9fe
Closes-Bug: #1535220
2016-01-20 12:04:29 +03: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
kairat_kushaev 799febf73e Remove monkey-patching for getsockopt
Not getsocketopts is presented in GreenSocket for Linux.
See the bug for the info. So we don't need to patch it anymore.

Closes-Bug: #1348269

Change-Id: Ie2211238656eddfb0af5f3ef84ab638f6248a10a
2016-01-15 16:29:27 +03:00
David Sariel f2eab45c33 Fixed TestHTTPSVerifyCert failure messages
Due to the change in python versions greater then 2.7.8, messages
that SSL certificate handling module is producing are different
from the error messages produced in earlier versions of py27.

Fixed how the following test cases of TestHTTPSVerifyCert class
are handling erroneous SSL certification messages:

- test_v2_requests_valid_cert_no_key
- test_v2_requests_bad_cert
- test_v2_requests_bad_ca

Closes-Bug:1499355
Change-Id: I3b939292ba0042bced5cc91a26e2593450f9cafe
2016-01-15 12:21:36 +02: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
Darja Shakhray bda34034eb Use session when not specified token or endpoint
When no token or endpoint, it creates a session and from there
taken the necessary values.
This commit proposes to transfer a session in such cases.
This will avoid unnecessary actions and some of the problems.

Change-Id: Idc874b6c01e915e52904604d59e8e0b460e71621
Partial-bug: #1519546
2016-01-14 17:32:30 +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