summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated from global requirementsmitaka-eolstable/mitakaOpenStack Proposal Bot2016-07-081-1/+1
| | | | Change-Id: If7af336f1edfb12a90b61c0d07ef7c245416d4c1
* Use the mitaka constraints fileTony Breeds2016-06-211-1/+1
| | | | | | | | | | In I8f168fde04bf9e421d9a39e91a041512bf4f2b79 tox.ini was enhanced to allow use of upper-constraints.txt. By default the master branch was used which will results in failures as things progress/diverge. Pin it to the stable/mitaka branch. Change-Id: Ic59546fbc176c36cb8726042b6243ec14c941ef1
* Add upper constraints to glanceclient2.0.1Niall Bunting2016-06-032-1/+67
| | | | | | | | | | | | | | | This will force pip install to use the upper-constraints.txt specified version of pip modules. When you don't do this, you are out on the bleeding edge and become unstable everytime some python library in the world changes in a way that you don't expect. The script is needed because it cleans up the conflicting entry that corresponds to the client before applying it to source based installation. Change-Id: I8f168fde04bf9e421d9a39e91a041512bf4f2b79 Closes-Bug: 1563038 cherry-picked from commit 8585bd60325e7d9b08aa6043afc00fb83d2b2356
* Get endpoint if os_image_url is not setNiall Bunting2016-05-242-17/+87
| | | | | | | | | | If env['OS_IMAGE_URL'] is not set then None is returned. This is then used ignoring the endpoint_type, service_type and region_name. This patch will use those values if the endpoint is None. Change-Id: I76cc527b05d2be75d3dbc33123a0d71be97fe25c Closes-bug: #1579768 (cherry picked from commit a862196cfb7f7323b1864b4c1660c39850487a64)
* Merge "Updated from global requirements" into stable/mitakaJenkins2016-05-231-1/+1
|\
| * Updated from global requirementsOpenStack Proposal Bot2016-05-151-1/+1
| | | | | | | | Change-Id: Idc50b665db68cd9c2d61683956fb893d921d9ba2
* | Fix "Codec can't encode characters"Darja Shakhray2016-05-232-20/+17
|/ | | | | | | | | | | | | | Headers were encoded in HTTPClient, but when glance client started to use SessionClient this functionality was lost. This commit replaces static method "encode_headers" from HTTPClient and makes it a common function, that SessionClient can use when converting image meta to headers. Change-Id: If9f8020220d2a0431b4241b38b9c83c09c0d75cb Closes-bug: #1574587 (cherry picked from commit 9329ef0bc40375cd9b115415e10baf89789f56f0)
* Merge "Fix missing of debug info after we use session" into stable/mitakaJenkins2016-05-112-0/+21
|\
| * Fix missing of debug info after we use sessionCao ShuFeng2016-04-262-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the introduce of this patch set[1], cli user can't get debug info even --debug is passed. With the patch set[1], the request action will be performed in keystoneclient.session.Session. However the default log level of keystoneclient module is WARNING, so user can't get debug info from keystoneclient.session.Session. This change set the root log level to DEBUG when --debug is passed. [1]: https://review.openstack.org/#/c/262220/ Change-Id: I0db0fd7ab07a0d61082b86829a671d8dbc0f2963 Closes-bug: 1551076 (cherry picked from commit 87c8c933bd9b79a2cf06f9f0bc02160b21e8920d)
* | Merge "Re-enable stacktracing when --debug is used" into stable/mitakaJenkins2016-05-062-10/+25
|\ \
| * | Re-enable stacktracing when --debug is usedStuart McLaren2016-03-302-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 1f89beb6098f4f6a8d8c2912392b273bc068b2e3 introduced the behaviour that a stacktrace is printed if an exception is encountered. This helped make the client more supportable: $ glance --debug image-list . . . File "glanceclient/common/http.py", line 337, in get_http_client xxx NameError: global name 'xxx' is not defined global name 'xxx' is not defined The behaviour was lost at some point. This patch re-enables it. Change-Id: I25fc8624797909d606590747f54b9cf649ade079 Closes-bug: 1563830 (cherry picked from commit ca0989c52376a1d499cd0cc176f60b7ff8257275)
* | | Updated from global requirementsOpenStack Proposal Bot2016-04-291-1/+1
| |/ |/| | | | | Change-Id: I2e18b89d526018aa5b8fc492368717a2865bdc8d
* | Updated from global requirementsOpenStack Proposal Bot2016-04-181-1/+1
|/ | | | Change-Id: I188c27fcb7c54d4e86cf5e5096aa7ff88333063e
* Update .gitreview for stable/mitakaDoug Hellmann2016-03-091-0/+1
| | | | Change-Id: I5c593cb0e188d776399702715ad743602ee15f3a
* Merge "Test: use assert_has_calls() instead"2.0.0Jenkins2016-02-291-3/+6
|\
| * Test: use assert_has_calls() insteadChaozhe.Chen2016-02-241-3/+6
| | | | | | | | | | | | | | | | Some of the assertions in glanceclient test are sequential, we should better use assert_has_calls() instead of assert_any_call(). And assert_has_calls() provides more clear messages in case of failure. Change-Id: Ie45e7c56b1c859916a1f31636c639422f1ffef28
* | Merge "Handle 403 forbidden on download"Jenkins2016-02-294-2/+46
|\ \
| * | Handle 403 forbidden on downloadStuart McLaren2016-02-244-2/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A download of a deactivated image may result in a 403. The cli should catch this error rather than stack trace. We also catch other unexpected http responses. Change-Id: If33fbc3a56cdb02b3ab32a6479a67fff20b4b1a9 Closes-bug: 1523612
* | | Merge "Removes MANIFEST.in as it is not needed explicitely by PBR"Jenkins2016-02-290-0/+0
|\ \ \
| * | | Removes MANIFEST.in as it is not needed explicitely by PBRsonu.kumar2015-12-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes `MANIFEST.in` file as pbr generates a sensible manifest from git files and some standard files and it removes the need for an explicit `MANIFEST.in` file. Change-Id: I18865dfe5f5d40e2b5d5872fc544b31e1c39a0ca
* | | | Updated from global requirementsOpenStack Proposal Bot2016-02-201-1/+1
| |_|/ |/| | | | | | | | Change-Id: I6e1e76f71f26043bf3e9bc226ba78bca28901f67
* | | Merge "Auto-generated squash commit"Jenkins2016-02-122-3/+3
|\ \ \
| * | | Auto-generated squash commitFlavio Percoco2016-02-112-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Add reno to glanceclientkairat_kushaev2016-02-119-0/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Updated from global requirements"Jenkins2016-02-081-1/+1
|\ \ \ \
| * | | | Updated from global requirementsOpenStack Proposal Bot2016-02-081-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie5beb0e7bafb3e70b6ecc07af3a03c55f76c7e00
* | | | | Merge "v2 - "readOnly" key should be used in schemas"Jenkins2016-02-087-33/+58
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | v2 - "readOnly" key should be used in schemaszwei2016-02-047-33/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Remove code needed for python2.5"Jenkins2016-02-051-6/+0
|\ \ \ \ \
| * | | | | Remove code needed for python2.5kairat_kushaev2016-02-011-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Fix client initialization in shell tests"Jenkins2016-02-021-4/+6
|\ \ \ \ \ \
| * | | | | | Fix client initialization in shell testskairat_kushaev2016-02-011-4/+6
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Fix warnings in glanceclient READMEkairat_kushaev2016-02-012-6/+11
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Fixed TestHTTPSVerifyCert failure messages"Jenkins2016-02-012-5/+14
|\ \ \ \ \
| * | | | | Fixed TestHTTPSVerifyCert failure messagesDavid Sariel2016-01-152-5/+14
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Use session when not specified token or endpoint"Jenkins2016-02-012-116/+94
|\ \ \ \ \
| * | | | | Use session when not specified token or endpointDarja Shakhray2016-01-142-116/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Updated from global requirementsOpenStack Proposal Bot2016-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I566b999b69a794c45d9b38432b57a72242aa72ad
* | | | | | Merge "Remove monkey-patching for getsockopt"Jenkins2016-01-231-5/+0
|\ \ \ \ \ \
| * | | | | | Remove monkey-patching for getsockoptkairat_kushaev2016-01-151-5/+0
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Remove argparse from requirements"Jenkins2016-01-221-1/+0
|\ \ \ \ \ \
| * | | | | | Remove argparse from requirementsAndreas Jaeger2016-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Change metavar for location commands in V2kairat_kushaev2016-01-201-3/+3
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "replace the deprecated keystoneclient...apiclient"Jenkins2016-01-200-0/+0
|\ \ \ \ \ \
| * | | | | | replace the deprecated keystoneclient...apiclientJaveme2015-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Updated from global requirementsOpenStack Proposal Bot2016-01-191-1/+1
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | Change-Id: I190f13f19d82e5a74ab3bb35f9fdb10c2ee3d43f
* | | | | | Merge "Updated from global requirements"Jenkins2016-01-191-1/+1
|\ \ \ \ \ \
| * | | | | | Updated from global requirementsOpenStack Proposal Bot2016-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I865fc967b38a62156413e902523171738f6a494a
* | | | | | | Merge "Add help the ability to sort images with multiple keys"Jenkins2016-01-181-1/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Add help the ability to sort images with multiple keysKATO Tomoyuki2016-01-041-1/+2
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Related Change: If79779a4c52c8dc5c4f39192d3d247335a76ba24 This help is also used for OpenStack Command-Line Interface Reference. Change-Id: Iadce779afebe4aa80026e46f169546aba9055477 Partial-Bug: #1432813