Commit Graph

960 Commits

Author SHA1 Message Date
yangds 03f13e471a trival: fix a typo in comment
s/thouhg/though

Change-Id: I483ac7b3f9d9ecac7d6697e6dbd18e0e39669bfd
2016-02-15 06:44:49 -05:00
Jenkins c58b4cc984 Merge "Auto-generated squash commit" 2016-02-12 00:10:58 +00:00
Flavio Percoco e91d8ec4b8 Auto-generated squash commit
Fix misspellings

Upstream-Change-Id: Ie7ecbe4b33dd0e1ef94b0be85ec3af790cc6fcd7

Correct spelling mistake

Change interable to iterable.

Upstream-Change-Id: I468a87a3df9ed00ed82f1ba0d6abbbc6944cf613

Change-Id: I4de8426cd19ef0bc7c00fe57f8bc3303d0a4f8a4
Co-Authored-by: venkatamahesh <venkatamaheshkotha@gmail.com>
Co-Authored-by: Irina <yuyuesh@cn.ibm.com>
2016-02-11 12:26:55 -04:30
kairat_kushaev a49ce80db6 Add reno to glanceclient
Add possibility to generate release notes to glanceclient.
We need this because it helps to prepare good documentation
and provide useful info to Openstack users.

Change-Id: Ifce2df8ac5f3a14518a758d748964e7201a75291
2016-02-11 11:58:19 +00:00
Jenkins 81125236b9 Merge "Updated from global requirements" 2016-02-08 21:20:23 +00:00
Jenkins 7f9c6d62a5 Merge "v2 - "readOnly" key should be used in schemas" 2016-02-08 10:16:32 +00:00
OpenStack Proposal Bot 41e3ebd8bc Updated from global requirements
Change-Id: Ie5beb0e7bafb3e70b6ecc07af3a03c55f76c7e00
2016-02-08 02:43:33 +00:00
Jenkins 6c846a43aa Merge "Remove code needed for python2.5" 2016-02-05 04:09:26 +00:00
zwei 22e3bf0234 v2 - "readOnly" key should be used in schemas
If it has a value of boolean true,
    this keyword indicates that the instance property SHOULD NOT be changed,
    and attempts by a user agent to modify the value of this property are expected to be rejected by a server.
    The value of this keyword MUST be a boolean.
    The default value is false.

    Further link for reference: http://json-schema.org/latest/json-schema-hypermedia.html#anchor15

Closes-Bug: #1521581
Depends-On: I279fba4099667d193609a31259057b897380d6f0
Change-Id: I96717506259c0d28500b8747369c47029b1dd9b6
2016-02-04 15:06:13 +08:00
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 b4a2e28295 Remove code needed for python2.5
glance has a code specific for python2.5. We need to delete this
code cause glanceclient doesn't support neither python2.5 or
python2.6.

Change-Id: I17e4905b6e02fcfff033a6cde03324e2a47bfce2
2016-02-01 13:23:18 +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