summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update .gitreview for stable/junojuno-eol0.14.3stable/junoDoug Hellmann2015-10-131-0/+1
| | | | Change-Id: I308eb302396c2e07486d2ef66e4bc8bbd6e02099
* Updated from global requirementsOpenStack Proposal Bot2015-07-283-19/+18
| | | | Change-Id: Ie6547d1a5501f2d2ec74d3ec4808c26a48ffc7fb
* Merge "Don't replace the https handler in the poolmanager"0.14.2Jenkins2014-11-053-4/+27
|\
| * Don't replace the https handler in the poolmanagerFlavio Percoco2014-10-303-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to keep the support for `--ssl-nocompression` it was decided to overwrite the https HTTPAdapter in `requests` poolmanager. Although this seemed to work correctly, it was causing some issues when using glanceclient from other services that rely on requests and that were also configured to use TLS. THis patch changes implements a different strategy by using `glance+https` as the scheme to use when `no-compression` is requested. Closes-bug: #1350251 Closes-bug: #1347150 Closes-bug: #1362766 Change-Id: Ib25237ba821ee20a561a163b79402d1375ebed0b
* | Merge "Adds support for Glance Tasks calls"Jenkins2014-10-164-0/+470
|\ \
| * | Adds support for Glance Tasks callsFei Long Wang2014-09-224-0/+470
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tasks operations on client side to support task create, list all and show. DocImpact Implement blueprint async-glance-workers Change-Id: Ib4b8e347a8a47817e3b427c8ba024e8c32f65155
* | | Merge "Stop using intersphinx"Jenkins2014-10-141-4/+1
|\ \ \
| * | | Stop using intersphinxAndreas Jaeger2014-09-131-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove intersphinx from the docs build as it triggers network calls that occasionally fail, and we don't really use intersphinx (links other sphinx documents out on the internet) This also removes the requirement for internet access during docs build. This can cause docs jobs to fail if the project errors out on warnings. Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb Related-Bug: #1368910
* | | | Merge "Remove network_utils"Jenkins2014-10-093-110/+3
|\ \ \ \
| * | | | Remove network_utilsOleksii Chuprykov2014-10-033-110/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use oslo.utils instead Change-Id: I4830b13794db5570e7dde4a897a7396065028e37
* | | | | Merge "Default to system CA bundle if no CA certificate is provided"Jenkins2014-10-081-2/+3
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Default to system CA bundle if no CA certificate is providedRob Crittenden2014-09-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If no CA certificate is provided to be used for validation then fall back to the system-wide CA bundle as presented by python-requests. Change-Id: I05206a868150d4b62b6f1b833310eb9b86b7c4f8 Closes-bug: #1362179
* | | | | Merge "Skip non-base properties in patch method"Jenkins2014-10-033-4/+67
|\ \ \ \ \
| * | | | | Skip non-base properties in patch methodKamil Rykowski2014-09-293-4/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's currently impossible to update properties which are defined in image schema and which are not a base image property. Proposed fix skips every non-base property when building a json patch, that is used to update image properties through glance API. Change-Id: I3b35cef379fcf437715e2966f9a0d25c1b4e4016 Closes-Bug: #1371559
* | | | | | Fix the ordering of assertEqual argumentsLouis Taylor2014-09-193-17/+17
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This keeps testtools happy, since it expects the argument ordering to be (expected, actual). Change-Id: I95b41ad7645700ce23b46c7a5700e79008ed08be Closes-bug: #1277104
* | | | | Merge "CLI image-update gives a wrong help on '--tags' param"0.14.1Jenkins2014-09-191-1/+1
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | CLI image-update gives a wrong help on '--tags' paramZhi Yan Liu2014-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The help message tells end user image-update interface accepts 'tags' param and could be used to update tag of image [0], but actually it could trigger an 400 exception [1] due to wrong PATCH calls, and the correct way is to use image-tag-update interface [2] as designed. [0] glance image-update <IMG_ID> --tags <TAG_VALUE> [1] 400 Bad Request Invalid JSON pointer for this resource: '/tags/0' (HTTP 400) [2] glance image-tag-update <IMG_ID> <TAG_VALUE> Change-Id: Iaa8041779510192dc08f7b898b8a1beda29a6398 Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
* | | | | Merge "Downgrade log message for http request failures"Jenkins2014-09-171-1/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Downgrade log message for http request failuresChris Yeoh2014-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Downgrades the log message when an http request fails from error to debug. The logging level changed in the http.py upgrade in I09f70eee3e2777f52ce040296015d41649c2586a which effectively reverted a similar fix commited in I6d0efb53d1e81adf309f7fa580ec5a8073a811c5. We don't want to log at ERROR level because we already have an exception raised and the caller can handle it if wants to. However this error will appear regularly in the Nova logs under normal behavior (say a client specifies an image which does not exist) and there is no way of disabling only the glanceclient error log. This results in a lot of noise in the nova log file. Change-Id: Iec13bff439073a79cb24e9b22fd43603ae4e61b7
* | | | | Merge "Update how tokens are redacted"Jenkins2014-09-162-6/+15
|\ \ \ \ \
| * | | | | Update how tokens are redactedTravis Tripp2014-09-152-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using SHA-1 to match how Nova and Swift redact their tokens. Was discussed in the below thread: http://lists.openstack.org/pipermail/openstack-dev/2014-September/045802.html Here's what nova went with: https://review.openstack.org/#/c/99511/ swift seem to be following suit: https://review.openstack.org/#/c/99632/ Change-Id: I3045d6d9d2a13770f4022dbbd474b34eb1032f6e Closes-bug: 1329301
* | | | | | Merge "Print traceback to stderr if --debug is set"Jenkins2014-09-161-0/+7
|\ \ \ \ \ \
| * | | | | | Print traceback to stderr if --debug is setLouis Taylor2014-09-151-0/+7
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows easier debugging of client related issues, with a full traceback printed out when an uncaught error occurs in the client. Previously, it could be hard to find the portion of code raising an exception, with just the message from the exception being displayed. Previous behaviour (with a rather artificial client error being raised): $ glance --debug image-list Contrived exception Behaviour after this patch: $ glance --debug image-list Traceback (most recent call last): File "/opt/stack/python-glanceclient/glanceclient/shell.py", line 590, in main args.func(client, args) File "/opt/stack/python-glanceclient/glanceclient/v1/shell.py", line 77, in do_image_list raise(Exception('Contrived exception')) Exception: Contrived exception Contrived exception Change-Id: Id7b76b707e5fc16a0402dcb104ec40787e0ffbe2
* | | | | | Handle UnicodeDecodeError in log_http_responseMatt Riedemann2014-09-152-1/+12
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to commit dec9c9f35 and log_curl_request, this ignores decoding errors when logging response headers by passing errors='ignore' to safe_encode. Change-Id: Ic915a7d8334e9473f300c9db670a3a8f5cda8976 Closes-Bug: #1369756
* | | | | Merge "Updated from global requirements"Jenkins2014-09-132-3/+9
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Updated from global requirementsOpenStack Proposal Bot2014-09-132-3/+9
| | | | | | | | | | | | | | | | | | | | Change-Id: I6dc3b647b806b863418d4894f9abe535b3d40ac2
* | | | | Merge "Fix v2 requests to non-bleeding edge servers"Jenkins2014-09-1315-620/+727
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix v2 requests to non-bleeding edge serversLakshmi N Sampath2014-09-1215-620/+727
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case where v2 requests are sent to a server which is not running head of tree which includes the v2 metadef code some 404 cases need to be handled to enable standard requests to complete. This patch aslo improves fetching schemas -- they are now only fetched as needed. Change-Id: I8c871f11b909337bd7df19b77e606772dbc634b2 Closes-bug: #1367326
* | | | | Merge "Work toward Python 3.4 support and testing"Jenkins2014-09-131-1/+1
|\ \ \ \ \
| * | | | | Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0498fcfdf9eee399e29de5b034fd6010682ca4b6
* | | | | | Merge "Import missing gettextutils._ in shell.py"Jenkins2014-09-131-0/+1
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Import missing gettextutils._ in shell.pyMatthew Booth2014-09-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes-Bug: #1355252 Change-Id: I3aef19235735b3b374b92985f142712cb0f37a35
* | | | | | Merge "Fix indentation in tox.ini"Jenkins2014-09-071-1/+1
|\ \ \ \ \ \
| * | | | | | Fix indentation in tox.iniLouis Taylor2014-08-261-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, a tab was used to indent a line with a block of code which otherwise uses eight spaces, causing it to display strangely in text editors which do not have tabstop=8 set. TrivialFix Change-Id: I99a432373beebac912df88e6685db26e738bf654
* | | | | | Support for Metadata Definitions Catalog API0.14.0Pawel Koniszewski2014-09-0312-43/+2716
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API calls and shell commands added in this patch: - CRUD for metadefs namespaces; - CRUD for metadefs objects; - CRUD for metadefs properites; - CRD for metadefs resource types and resource type associations. Change-Id: I6d15f749038e8fd24fc651f0b314df5be7c673ef Implements: blueprint metadata-schema-catalog-support Co-Authored-By: Facundo Maldonado <facundo.n.maldonado@intel.com> Co-Authored-By: Michal Dulko <michal.dulko@intel.com> Co-Authored-By: Lakshmi N Sampath <lakshmi.sampath@hp.com> Co-Authored-By: Pawel Koniszewski <pawel.koniszewski@intel.com>
* | | | | Catch new urllib3 exception: ProtocolErrorPawel Koniszewski2014-09-031-1/+5
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new version of requests (2.4.0) has updated underlying urllib3 to version 1.9. Unfortunately urllib3 introduced new exception ProtocolError. Because of that unit tests in glance are failing: ProtocolError: ('Connection aborted.', gaierror(-2, 'Name or service not known')) To solve this problem new urllib3 exception is caught in the same place that the old one was. Unfortunately both exception are still in use so I couldn't remove the old one. Change-Id: I55eef98e734c59b9b627f182768a633b2b701e43 Closes-Bug: #1364893
* | | | Fix error when logging http response with python 3Louis Taylor2014-08-261-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3 changed the semantics of dict.items() [0], which now returns a iterable 'view' instead of a list of tuples. This has the repercussion that you can no longer check for membership of a key using: key in dict.items() This patch simply replaces that check with a test for the key existing in the dict itself, rather than the items. [0] http://legacy.python.org/dev/peps/pep-3106/ Closes-Bug: 1359880 Change-Id: I7c59b0432725b660c9fa7270cde2e07bf3ea77db
* | | Merge "Update theme for docs"Jenkins2014-08-212-2/+3
|\ \ \
| * | | Update theme for docsSteve Martinelli2014-07-242-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current developer docs theme used is out of sync with the other openstack projects. This patch will update the docs to provide a more consistent look and feel when using developer docs Change-Id: I4a59f194bd0fc8c86c6d3c6b8cadb839a5158935
* | | | Merge "Add a tox job for generating docs"Jenkins2014-08-202-0/+5
|\ \ \ \ | |/ / /
| * | | Add a tox job for generating docsSteve Martinelli2014-07-242-0/+5
| |/ / | | | | | | | | | | | | | | | | | | Add a tox job to make it easier for developers to generate their own docs before submitting a patch. Change-Id: I1897407d0db901c61360a196b365b0661eb65b66
* | | Merge "Enable osprofiler interface in glanceclient shell"Jenkins2014-08-202-4/+40
|\ \ \
| * | | Enable osprofiler interface in glanceclient shellZhi Yan Liu2014-08-192-4/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To help end user uses profiling by glanceclient CLI directly, the change added '--profile <HMAC_KEY>' argument to the shell. This change also fixed a function regression, it was used to pass necessary trace info to glance server via http header: https://github.com/openstack/python-glanceclient/commit/dbb242b776908ca50ed8557ebfe7cfcd879366c8#diff-740dd7d9149f46fe4c01ef0ab7eb3bfbL196 In addition: 1. If client app want to enable profiling feature for glanceclient object, please see: http://paste.openstack.org/show/85722/ 2. Afer adding more trace point into Client object, as fundamental requirement of osprofiler, what we need to notice caller is providing correct messaging notifier in the context code. The relevant change for glance server is ready at: I45a19f5eb5304c2b78a9e12cbc0744941a807304 DocImpact Change-Id: If42b69b2695a5f88536ecbc2c1b3592d9dbd880a Signed-off-by: Zhi Yan Liu <lzy.dev@gmail.com>
* | | | Ensure server's SSL cert is validatedStuart McLaren2014-08-192-3/+12
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A bug was introduced which meant that the server SSL certificate was not being verified. Here we make sure that it is checked (unless the --insecure flag is used). Helps guard against man-in-the-middle attack. Change-Id: I08f30bf3906b6580c871729311343fa8eefda91b Closes-bug: #1357430
* | | Merge "Hide stderr noise in test output"Jenkins2014-08-181-8/+18
|\ \ \
| * | | Hide stderr noise in test outputLouis Taylor2014-08-181-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, some tests caused the usage options for glance to be printed out to stderr. This patch redirects the stderr output for those unnecessarily verbose test functions. Change-Id: I781d35a16a97c9c093cb17288ebd96d3e1a2e4e9 Closes-Bug: #1334655
* | | | Merge "Normalize glanceclient requested service url"Jenkins2014-08-181-3/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Normalize glanceclient requested service urlZhi Yan Liu2014-08-071-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some proxy or gateway softwares, e.g. jumpgate [0], use url-pattern based approach to match which hanlding logic needs to be triggered for particular service calling when it received a http(s) call as a middleman. The change fixed an issue which caused glanceclient send out the request to a dis-normal url, which contains duplicated "/". The change removed a wrong and duplicated code snippet from curl logging function as well. [0] http://goo.gl/yt52X1 Change-Id: Ic8b3920e11d400771ead7f9c44b615f10b4a5cef Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
* | | | Remove deprecated commands from shellCindy Pallares2014-08-127-1258/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all deprecated commands from the shell since they are no longer used and to keep the command line menu from looking cluttered. Closes-bug: #1314218 Change-Id: I66e82872988e3835e4f290f48dfc80538271426c
* | | | Merge "Add support for Keystone v3"Jenkins2014-08-073-162/+704
|\ \ \ \