Commit Graph

1038 Commits

Author SHA1 Message Date
OpenStack Proposal Bot a0d1cc974e Updated from global requirements
Change-Id: I44084295af0fd0d0b0d2f6bf8810d77cb155d88a
2016-07-20 16:25:18 +00:00
Jenkins 98be935fb7 Merge "Properly build releasenotes" 2016-07-20 10:54:11 +00:00
Jenkins 2047653e06 Merge "Add comment about workaround for py3" 2016-07-20 10:53:57 +00:00
Jenkins 13093e0194 Merge "Add Python 3.5 classifier and venv" 2016-07-17 19:51:51 +00:00
Jenkins 1763e33d3d Merge "Update outdated image shema" 2016-07-16 10:27:18 +00:00
Jenkins 3a65a59220 Merge "Log request-id for each api call" 2016-07-15 10:56:26 +00:00
Jenkins 7e17c30dad Merge "Update docs URL" 2016-07-14 05:42:08 +00:00
Louis Taylor 3047afb121 Add comment about workaround for py3
Change-Id: Ibe8720c14e8ec401bc0d595915cbb962f4021bcb
2016-07-13 17:04:19 +00:00
Jenkins 3dde2be1d8 Merge "image-download: tests to catch stray output" 2016-07-13 16:21:06 +00:00
Clark Boylan 975858580f Properly build releasenotes
There is an rst error that prevents releasenotes from being built.
Address this error so that items build. This was caught during testing
for running jobs on Ubuntu Xenial.

Change-Id: Ic0e53d668193b592501175b51dce1275d4fcb93c
2016-07-12 18:20:30 -07:00
KATO Tomoyuki b660d3247a Update docs URL
Change-Id: Id8b1b97a85534c4398b3c49648c6e2f2df3ee20e
Related:-Bug: #1602266
2016-07-13 09:00:24 +09:00
zheng yin fa5bfbed41 Add Python 3.5 classifier and venv
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
2016-07-12 07:26:45 +08:00
OpenStack Proposal Bot f2c02830f6 Updated from global requirements
Change-Id: Iff3305ceda5ae1b7e938591eeeec2bf690e84ab8
2016-07-01 04:24:05 +00:00
Jenkins b1b806fd0e Merge "Replace tempest_lib with tempest.lib" 2016-06-29 19:37:42 +00:00
Stuart McLaren 7ed22a91d3 image-download: tests to catch stray output
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
2016-06-29 16:08:30 +00:00
Jenkins 8a584d5938 Merge "Use correct order of arguments to assertEqual" 2016-06-29 16:04:35 +00:00
zhengyao1 c3de38ed53 Use correct order of arguments to assertEqual
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
2016-06-29 03:46:30 +00:00
OpenStack Proposal Bot d530fbd9c3 Updated from global requirements
Change-Id: I900450e96871910b116958f8129b980994c0538e
2016-06-28 18:55:15 +00:00
Mike Fedosin 29cfd07e17 Update outdated image shema
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
2016-06-28 20:59:05 +03:00
wangxiyuan cbb46434e6 Replace tempest_lib with tempest.lib
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
2016-06-27 17:26:02 +08:00
Abhishek Kekane 96151efd51 Log request-id for each api call
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
2016-06-27 11:31:07 +05:30
OpenStack Proposal Bot d168bd73eb Updated from global requirements
Change-Id: I2080edfcefa94d1c29f78b27bf84da44f32ddf58
2016-06-24 03:17:11 +00:00
OpenStack Proposal Bot 8ead51d9f4 Updated from global requirements
Change-Id: I1ee3b5f6f8547d9d2dc23ddd8f1b3f3688d733b1
2016-06-21 18:05:05 +00:00
Jenkins 985df912e1 Merge "Remove unused skip_authentication decorator" 2016-06-21 16:13:59 +00:00
OpenStack Proposal Bot 46c3792fee Updated from global requirements
Change-Id: Ida2080b0c209b87781313b2be92c957d22b3188c
2016-06-10 15:49:11 +00:00
kairat_kushaev 2ab2678140 Remove deprecated construct method from session init
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
2016-06-09 19:31:02 +00:00
Niall Bunting 10ad2886e1 Add upper constraints to glanceclient
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
2016-06-03 14:21:15 +00:00
kairat_kushaev f58a73495f Remove unused skip_authentication decorator
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
2016-06-02 13:25:30 +00:00
OpenStack Proposal Bot 28f905fb45 Updated from global requirements
Change-Id: Ibcb8da6b56adf4a8d6d814f81b8034899b54deef
2016-06-01 14:06:59 +00:00
Jenkins 561c33ccf0 Merge "[Trivial] Remove unnecessary executable privilege" 2016-06-01 13:54:15 +00:00
Jenkins 7dbbbfb542 Merge "Fixed grammar in image-download command description" 2016-06-01 13:37:57 +00:00
Ihar Hrachyshka 3a0007a1c3 Fixed grammar in image-download command description
Change-Id: Ie18e1bee3376fdc01685c6f1d3a949c6934296b3
2016-06-01 10:07:47 +00:00
OpenStack Proposal Bot 3ced7d5905 Updated from global requirements
Change-Id: I353dee7615434bfbc0ae76ed8c7ce168458065fc
2016-05-31 03:05:57 +00:00
OpenStack Proposal Bot a1cd7ef609 Updated from global requirements
Change-Id: Ie88b8762b6db82dc26c6d652786d68ace6e002dd
2016-05-30 00:38:52 +00:00
OpenStack Proposal Bot 3296620f5e Updated from global requirements
Change-Id: Ic3499b5fdacf7602cbfec3720580790d1bda384c
2016-05-26 17:04:47 +00:00
Jenkins 6f2fae7a19 Merge "Fix "Codec can't encode characters"" 2016-05-23 14:31:04 +00:00
ZhiQiang Fan 3066256ba7 [Trivial] Remove unnecessary executable privilege
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
2016-05-21 13:17:41 +00:00
Jenkins 2e6f60502e Merge "Get endpoint if os_image_url is not set" 2016-05-19 16:57:27 +00:00
Darja Shakhray 9329ef0bc4 Fix "Codec can't encode characters"
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
2016-05-19 16:48:03 +00:00
Jenkins fc06c9c120 Merge "Update the home-page with developer documentation" 2016-05-19 03:19:30 +00:00
Jenkins 6afc66e4e5 Merge "Updated from global requirements" 2016-05-18 22:05:54 +00:00
Jenkins 7150ceee1a Merge "Add last_request_id member to HTTPClient and SessionClient" 2016-05-18 21:44:53 +00:00
OpenStack Proposal Bot f0dca77f0e Updated from global requirements
Change-Id: I86de9b2a73cae95dad02a01dbef96f78d9c39b88
2016-05-17 14:09:35 +00:00
venkatamahesh f9dade5eda Update the home-page with developer documentation
Change-Id: I570ee3d8963292ebb1c0fef7e7794378c7f08e7e
2016-05-17 12:32:23 +00:00
Niall Bunting a862196cfb Get endpoint if os_image_url is not set
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
2016-05-12 12:47:35 +00:00
OpenStack Proposal Bot f39647ab47 Updated from global requirements
Change-Id: I5f2cc15aae2b34f6d600fbd1c67c88c552aa1562
2016-05-06 22:22:12 +00:00
PranaliD 41e10e3690 Corrected wrong parameter in docstring
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
2016-05-02 03:43:44 -04:00
Jenkins 9ffebbb25e Merge "Enable hacking checks" 2016-04-20 17:13:16 +00:00
OpenStack Proposal Bot da22122450 Updated from global requirements
Change-Id: I84ad85d08fcee0556f43f7c9d2e98d4a42d8e395
2016-04-19 12:28:31 +00:00
Jenkins 12e92558e5 Merge "Re-enable stacktracing when --debug is used" 2016-04-18 17:04:57 +00:00