summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add Python 3.5 classifier and venv"2.2.0Jenkins2016-07-172-1/+2
|\
| * Add Python 3.5 classifier and venvzheng yin2016-07-122-1/+2
| | | | | | | | | | | | | | There is a passing gate job, we can claim support for Python 3.5 in the classifier. This patch also adds the convenience py35 venv. Change-Id: I15304210a7f32b719a910e22518d33427ddedbb9
* | Merge "Update outdated image shema"Jenkins2016-07-161-91/+63
|\ \
| * | Update outdated image shemaMike Fedosin2016-06-281-91/+63
| | | | | | | | | | | | | | | | | | | | | | | | Image schema that is located in glance client is seriously outdated, we need to updated it and bring it in line with the server version. Change-Id: I5a79a84a9c07b9ee821a71a5bd2d61cb4299ad72
* | | Merge "Log request-id for each api call"Jenkins2016-07-152-0/+16
|\ \ \
| * | | Log request-id for each api callAbhishek Kekane2016-06-272-0/+16
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support to log 'X-Openstack-Request-Id' for each api call. If glanceclient is used from command line then following log will be logged on console if --debug flag is used. DEBUG:glanceclient.common.http:GET call to glance-api for http://172.26.88.20:9292/v2/schemas/image used request id req-e0c7c97a-8fc0-4ce3-a669-d0b1eb5d7aae If python-glanceclient is used in applications (e.g. Nova) then following log message will be logged in service logs. DEBUG glanceclient.common.http [req-be074f1e-1c17-4786-b703-2a221751c8f4 demo demo] GET call to glance-api for http://172.26.88.20:9292/v1/images/detail?is_public=none&limit=20 used request id req-9b1dd929-df30-46b2-a8f2-dfd6ffbad3fc DocImpact: To use this feature user need to set 'default_log_levels' in third party application. For example nova uses glance then in nova.conf 'default_log_levels' should be set as below: default_log_levels = glanceclient=DEBUG Implements: blueprint log-request-id Change-Id: Ib04a07bac41ad2a5e997348f3b0bccc640169dc9
* | | Merge "Update docs URL"Jenkins2016-07-142-3/+3
|\ \ \ | |_|/ |/| |
| * | Update docs URLKATO Tomoyuki2016-07-132-3/+3
| | | | | | | | | | | | | | | Change-Id: Id8b1b97a85534c4398b3c49648c6e2f2df3ee20e Related:-Bug: #1602266
* | | Merge "image-download: tests to catch stray output"Jenkins2016-07-134-4/+188
|\ \ \ | |/ / |/| |
| * | image-download: tests to catch stray outputStuart McLaren2016-06-294-4/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit tests to ensure that any stray output (eg print statements) during image-download cause a test failure. Regression test for bug 1488914. Change-Id: Ic19ba5693d059bf7c283702e7c333672a878a1a1 Partial-bug: 1488914
* | | Updated from global requirementsOpenStack Proposal Bot2016-07-012-2/+2
| | | | | | | | | | | | Change-Id: Iff3305ceda5ae1b7e938591eeeec2bf690e84ab8
* | | Merge "Replace tempest_lib with tempest.lib"Jenkins2016-06-293-3/+3
|\ \ \ | |/ / |/| |
| * | Replace tempest_lib with tempest.libwangxiyuan2016-06-273-3/+3
| |/ | | | | | | | | | | | | As the tempest_lib is deprecated and the code has been moved into tempest. We should use tempest.lib insteded of tempest_lib. Change-Id: Id22f90a47056cd88f9524fc6015607c93f7d88b5
* | Merge "Use correct order of arguments to assertEqual"Jenkins2016-06-295-39/+35
|\ \
| * | Use correct order of arguments to assertEqualzhengyao12016-06-295-39/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The correct order of arguments to assertEqual that is expected by testtools is (expected, observed). This patch fixes the inverted usage of arguments in some places that have cropped up since the last fix of this bug. Change-Id: If8c0dcb58496bc2fcf4c635f384522a1f7d2b2af Closes-Bug: #1259292
* | | Updated from global requirementsOpenStack Proposal Bot2016-06-281-1/+1
| |/ |/| | | | | Change-Id: I900450e96871910b116958f8129b980994c0538e
* | Updated from global requirementsOpenStack Proposal Bot2016-06-241-2/+2
| | | | | | | | Change-Id: I2080edfcefa94d1c29f78b27bf84da44f32ddf58
* | Updated from global requirementsOpenStack Proposal Bot2016-06-211-1/+1
| | | | | | | | Change-Id: I1ee3b5f6f8547d9d2dc23ddd8f1b3f3688d733b1
* | Merge "Remove unused skip_authentication decorator"Jenkins2016-06-212-18/+1
|\ \ | |/ |/|
| * Remove unused skip_authentication decoratorkairat_kushaev2016-06-022-18/+1
| | | | | | | | | | | | | | | | skip_authentication is not used as decorator for glanceclient methods. So this method can be safely removed from glance codebase because it is artifact from old implementation. Change-Id: I235b4c6b835c75266d8fae1bb603685aa17ad497
* | Updated from global requirements2.1.0OpenStack Proposal Bot2016-06-101-1/+1
| | | | | | | | Change-Id: Ida2080b0c209b87781313b2be92c957d22b3188c
* | Remove deprecated construct method from session initkairat_kushaev2016-06-092-25/+20
| | | | | | | | | | | | | | | | construct method is marked as deprecated and might be deleted in one of future releases. So glanceclient need to be aware of that and initialize sesssion from command line arguments directly. Change-Id: Ie81b62b7e70bb177f178caadc41554ae88e51b05
* | Add upper constraints to glanceclientNiall Bunting2016-06-032-1/+66
|/ | | | | | | | | | | | | 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
* Updated from global requirementsOpenStack Proposal Bot2016-06-011-1/+1
| | | | Change-Id: Ibcb8da6b56adf4a8d6d814f81b8034899b54deef
* Merge "[Trivial] Remove unnecessary executable privilege"Jenkins2016-06-011-0/+0
|\
| * [Trivial] Remove unnecessary executable privilegeZhiQiang Fan2016-05-211-0/+0
| | | | | | | | | | | | | | | | | | glanceclient/shell.py defines a main entry, however this file cannot be executed directly because we do not call the main function in this file. It is actually a module which will be used by /usr/bin/glance, hence doesn't need to be executable. Change-Id: I8b45ac7b8b88265cfc27e5ba7201e4766d9dc276
* | Merge "Fixed grammar in image-download command description"Jenkins2016-06-012-2/+2
|\ \
| * | Fixed grammar in image-download command descriptionIhar Hrachyshka2016-06-012-2/+2
| | | | | | | | | | | | Change-Id: Ie18e1bee3376fdc01685c6f1d3a949c6934296b3
* | | Updated from global requirementsOpenStack Proposal Bot2016-05-312-2/+2
| | | | | | | | | | | | Change-Id: I353dee7615434bfbc0ae76ed8c7ce168458065fc
* | | Updated from global requirementsOpenStack Proposal Bot2016-05-301-1/+1
| | | | | | | | | | | | Change-Id: Ie88b8762b6db82dc26c6d652786d68ace6e002dd
* | | Updated from global requirementsOpenStack Proposal Bot2016-05-261-1/+1
|/ / | | | | | | Change-Id: Ic3499b5fdacf7602cbfec3720580790d1bda384c
* | Merge "Fix "Codec can't encode characters""Jenkins2016-05-232-20/+17
|\ \ | |/ |/|
| * Fix "Codec can't encode characters"Darja Shakhray2016-05-192-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
* | Merge "Get endpoint if os_image_url is not set"Jenkins2016-05-192-17/+87
|\ \
| * | Get endpoint if os_image_url is not setNiall Bunting2016-05-122-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
* | Merge "Update the home-page with developer documentation"Jenkins2016-05-191-1/+1
|\ \
| * | Update the home-page with developer documentationvenkatamahesh2016-05-171-1/+1
| |/ | | | | | | Change-Id: I570ee3d8963292ebb1c0fef7e7794378c7f08e7e
* | Merge "Updated from global requirements"Jenkins2016-05-181-2/+2
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2016-05-171-2/+2
| |/ | | | | | | Change-Id: I86de9b2a73cae95dad02a01dbef96f78d9c39b88
* | Merge "Add last_request_id member to HTTPClient and SessionClient"Jenkins2016-05-182-0/+12
|\ \ | |/ |/|
| * Add last_request_id member to HTTPClient and SessionClientCao ShuFeng2016-03-302-0/+12
| | | | | | | | | | | | | | | | | | apiclient.base.Resource.get method requires manager.client to have last_request_id member. Otherwise get operation fails with AttributeError exception. Change-Id: I0ece85e3f61f2a7f176520ddf3ebee7792e51993 Closes-bug: 1552533
* | Updated from global requirementsOpenStack Proposal Bot2016-05-061-1/+1
| | | | | | | | Change-Id: I5f2cc15aae2b34f6d600fbd1c67c88c552aa1562
* | Corrected wrong parameter in docstringPranaliD2016-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | In docstring of list() method of glanceclient/v1/images.py, parameter 'return_request_id' used within **kwargs is 'return_req_id', not 'return_request_id'. Changed 'return_request_id' to 'return_req_id'. Change-Id: I7f4a2a5af1b13184c67fa81be971dc5139569f8b Closes-Bug: 1573049
* | Merge "Enable hacking checks"Jenkins2016-04-208-40/+29
|\ \
| * | Enable hacking checksTin Lam2016-04-188-40/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled following hacking checks from tox.ini: - H233 Python 3.x incompatible use of print operator - H303 no wildcard import - H404 multi line docstring should start with a summary Change-Id: I2553bcd3e80c00acc08d135a1d2dadfb6cda49fe Partial-Bugs: #1475054
* | | Updated from global requirementsOpenStack Proposal Bot2016-04-191-1/+1
| | | | | | | | | | | | Change-Id: I84ad85d08fcee0556f43f7c9d2e98d4a42d8e395
* | | Merge "Re-enable stacktracing when --debug is used"Jenkins2016-04-183-12/+49
|\ \ \
| * | | Re-enable stacktracing when --debug is usedStuart McLaren2016-04-073-12/+49
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Fix typos in docstrings and comments"Jenkins2016-04-134-10/+11
|\ \ \
| * | | Fix typos in docstrings and commentsDao Cong Tien2016-04-114-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | Update a comment to be more meaningful Change-Id: Ie1aa46917c1a253db92a0dc819803a1d3e795b07