Commit Graph

1054 Commits

Author SHA1 Message Date
Jenkins 7936f173c0 Merge "Don't update tags every time" 2016-08-08 09:09:22 +00:00
OpenStack Proposal Bot 3659eb7a90 Updated from global requirements
Change-Id: I787b389ea50d0ec1743604725bead55fc477a0c0
2016-08-05 20:27:36 +00:00
Jenkins 07eb350b33 Merge "Remove unused openstack/common/apiclient/client" 2016-08-04 17:05:26 +00:00
Jenkins cc17ca3265 Merge "Remove discover from test-requirements" 2016-08-01 16:16:10 +00:00
Jenkins 48d44de1c8 Merge "Updated from global requirements" 2016-07-31 02:29:19 +00:00
Jenkins c3524b6d8c Merge "Fix string interpolation to delayed to be handled by the logging code" 2016-07-30 22:02:00 +00:00
Jenkins c039237007 Merge "Log request-id before exceptions raised" 2016-07-30 22:01:48 +00:00
OpenStack Proposal Bot d2ae7f59d6 Updated from global requirements
Change-Id: I454551879e53713d6bb85c6a90dd22b113841fe2
2016-07-29 02:34:29 +00:00
Jenkins ee7e22fa52 Merge "py3: Fix encoding and use sys.stdin.buffer" 2016-07-28 11:30:11 +00:00
Matt Riedemann 96927a6c2b Remove unused openstack/common/apiclient/client
This code comes from oslo-incubator and is now frozen,
and the client module specifically is not used in glanceclient.
It's confusing to have in the library since glanceclient has
it's own HTTPClient under glanceclient.common.http. So let's just
remove this effectively dead code.

Change-Id: I820b2439ce7158a63dc55553ce50a9580d63ffb3
2016-07-27 12:02:01 -04:00
dineshbhor 98bbbb88e7 Replace OpenStack LLC with OpenStack Foundation
Change-Id: I5877db07031b12d8fa7ed774ac09d24f8906ea86
Closes-Bug: #1214176
2016-07-26 15:17:14 +05:30
Sirushti Murugesan 376037d371 py3: Fix encoding and use sys.stdin.buffer
* exc.py: Encode body in response before calling replace over it.
* http.py: prepend the bytes literal to the empty string or else
  we hit bug 1342080 again in python 3.
* utils.py: Use sys.stdin.buffer in python 3.

Change-Id: Ieefb8c633658e507486438e5518c5d53e819027d
2016-07-25 20:13:08 +05:30
Swapnil Kulkarni (coolsvap) 436023c08c Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I2b5250ffa42bcbd343a1bf78b876c5f0615e966d
2016-07-22 03:57:22 +00:00
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
Abhishek Kekane 155183a21e Log request-id before exceptions raised
As of now request-id is not logged if an excpetion
is raised.

Rearranged code so that request-id is logged even in case of
an exception.

Change-Id: Iee0398404ee752c0d880edf3054207c35862e71a
Closes-Bug: #1603863
2016-07-18 12:19:55 +05:30
haobing1 2d7b864b17 Fix string interpolation to delayed to be handled by the logging code
String interpolation should be delayed to be handled by the logging
code, rather than being done at the point of the logging call.
See the oslo i18n guideline.
* http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: If06663076e4081c6268ba88c157513723b734b31
Closes-Bug: #1596829
2016-07-18 05:34:46 +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
Mike Fedosin e77322c179 Don't update tags every time
This code removes unnecessary PATCH requests
for tags updating if they were not modified.

Change-Id: I8eced32f39d0c98e0b26014e7b2341ab6580ff01
Closes-bug: 1587999
2016-06-01 21:02:29 +03: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