Commit Graph

69 Commits

Author SHA1 Message Date
OpenStack Proposal Bot a00ea5b07c Updated from global requirements
Change-Id: Ic918892cd48f45e9f1e916aa73c96398fe786b7c
2017-07-27 23:58:04 +00:00
OpenStack Proposal Bot a6e0cdf46d Updated from global requirements
Change-Id: I3ac1a2a068421ef11ca0d137bc6d8491f718cb41
2017-07-23 13:51:39 +00:00
OpenStack Proposal Bot afff25fa98 Updated from global requirements
Change-Id: Ib5a1d3ef1cd53be664299844eaff2946754e8597
2017-07-04 17:56:44 +00:00
Doug Hellmann d6e936cd14 add explicit dependency on pyopenssl
The library is used in glanceclient/common/https.py and the
documentation build for the API fails without the dependency.

Update the error handling so that when OpenSSL reports an error it is
converted to a client communication error.

Change-Id: I0c0fb3139bb848d0cbaf88ae6a767a730bea74eb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-28 12:24:48 -04:00
OpenStack Proposal Bot a86fe0a252 Updated from global requirements
Change-Id: Ie04111374dc4769a641aa25619d0732f9f07cbea
2017-06-10 21:47:49 +00:00
OpenStack Proposal Bot f7598479d1 Updated from global requirements
Change-Id: Ic7656a41fcff3f1f5c47526d54f2254bc9a09c6b
2017-05-24 23:21:59 +00:00
OpenStack Proposal Bot a0edf0c2bf Updated from global requirements
Change-Id: If6412272a017a0887b00a33e68a00966ab8d1441
2017-05-03 12:22:23 +00:00
OpenStack Proposal Bot 92f97576f3 Updated from global requirements
Change-Id: Idd8453b0c37e991dbd80260664c775539baa7c0c
2017-04-12 04:21:02 +00:00
OpenStack Proposal Bot a9a8cc56ba Updated from global requirements
Change-Id: I8c9321e6dca3b6c66e1341fa4b66d3cfb7228362
2017-04-07 06:15:34 +00:00
OpenStack Proposal Bot 7752c4a434 Updated from global requirements
Change-Id: Ib0bd11e18e336c86e66045a256e0befe90f0f56b
2017-03-02 11:54:22 +00:00
OpenStack Proposal Bot 5f1ae538e0 Updated from global requirements
Change-Id: I33e7b23e1c47148b9b1b29b7c05d6c2d88dcd065
2017-03-01 04:15:29 +00:00
OpenStack Proposal Bot 1cd7030c8f Updated from global requirements
Change-Id: I082f5baf52318187aa0f7d32a25d23d033255218
2017-02-11 17:51:14 +00:00
OpenStack Proposal Bot 9afb56c875 Updated from global requirements
Change-Id: Ie074e23e82e89511100e65f88da18676f47bd7c6
2017-01-23 23:51:45 +00:00
Ravi Jethani 610177a779 Add request id to returned objects
Adding two classes RequestIdProxy and GeneratorProxy derived from
wrapt.ObjectProxy to wrap objects returned from the API.

GeneratorProxy class is used to wrap generator objects returned
by cases like images.list() etc. whereas RequestIdProxy class is
used to wrap non-generator object cases like images.create() etc.

In all cases the returned object will have the same behavior as
the wrapped(original) object. However now the returned objects
will have an extra property 'request_ids' which is a list of
exactly one request id.

For generator cases the request_ids property will be an empty list
until the underlying generator is invoked at-least once.

Co-Authored-By: Abhishek Kekane <abhishek.kekane@nttdata.com>

Closes-Bug: #1525259
Blueprint: return-request-id-to-caller
Change-Id: If8c0e0843270ff718a37ca2697afeb8da22aa3b1
2017-01-20 14:50:42 +05:30
OpenStack Proposal Bot 54e6faadf2 Updated from global requirements
Change-Id: I63545eb6cb26b6296e162c39c8df93d35ea652d0
2017-01-16 17:27:24 +00:00
OpenStack Proposal Bot 07e0cb9e2b Updated from global requirements
Change-Id: If643570d0aebd47f7c9d76285a30dc26aaa1425f
2016-12-15 03:54:52 +00:00
OpenStack Proposal Bot 611401d229 Updated from global requirements
Change-Id: I95aeef6351136ca3093fdea1d1dc159532dcbe70
2016-12-05 18:47:55 +00:00
OpenStack Proposal Bot bcbd2af6aa Updated from global requirements
Change-Id: I87aa54d8afae437826c46b913e49985e633c8fa0
2016-11-09 04:23:37 +00:00
OpenStack Proposal Bot dca95300de Updated from global requirements
Change-Id: I3cf13c3f0ec14056afa30f8d7e95ed950e961751
2016-10-22 01:26:47 +00:00
OpenStack Proposal Bot 6e0ef89e92 Updated from global requirements
Change-Id: Ibc25874307327b2a5cb8117f455f53b37bde6db7
2016-09-30 20:05:34 +00:00
OpenStack Proposal Bot 8c78a973f1 Updated from global requirements
Change-Id: I4eb1b99d0763ba02dc232ad90d2d5bc871223a5a
2016-09-13 09:42:20 +00:00
Itisha Dewan a9115b4cd8 switch from keystoneclient to keystoneauth
move glanceclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated.

refer to [1] for more information.

1: https://github.com/openstack/python-keystoneclient/commit/1a84e24fa4ce6d3169b59e385f35b2a63f2257f0

implements bp: use-keystoneauth

Co-Authored-By: Itisha <ishadewan07@gmail.com>
Change-Id: I88fb327628e1bec48dc391f50d66b3deab4a8ab9
2016-09-03 03:22:04 +00:00
OpenStack Proposal Bot 9e84185a6d Updated from global requirements
Change-Id: I1f342679edc9284fb051ec6e2d012bc6265600d7
2016-08-11 18:17:44 +00:00
OpenStack Proposal Bot d2ae7f59d6 Updated from global requirements
Change-Id: I454551879e53713d6bb85c6a90dd22b113841fe2
2016-07-29 02:34:29 +00:00
OpenStack Proposal Bot a0d1cc974e Updated from global requirements
Change-Id: I44084295af0fd0d0b0d2f6bf8810d77cb155d88a
2016-07-20 16:25:18 +00:00
OpenStack Proposal Bot f2c02830f6 Updated from global requirements
Change-Id: Iff3305ceda5ae1b7e938591eeeec2bf690e84ab8
2016-07-01 04:24:05 +00:00
OpenStack Proposal Bot d530fbd9c3 Updated from global requirements
Change-Id: I900450e96871910b116958f8129b980994c0538e
2016-06-28 18:55:15 +00:00
OpenStack Proposal Bot 28f905fb45 Updated from global requirements
Change-Id: Ibcb8da6b56adf4a8d6d814f81b8034899b54deef
2016-06-01 14:06:59 +00:00
OpenStack Proposal Bot 3ced7d5905 Updated from global requirements
Change-Id: I353dee7615434bfbc0ae76ed8c7ce168458065fc
2016-05-31 03:05:57 +00:00
OpenStack Proposal Bot f0dca77f0e Updated from global requirements
Change-Id: I86de9b2a73cae95dad02a01dbef96f78d9c39b88
2016-05-17 14:09:35 +00:00
OpenStack Proposal Bot f39647ab47 Updated from global requirements
Change-Id: I5f2cc15aae2b34f6d600fbd1c67c88c552aa1562
2016-05-06 22:22:12 +00:00
OpenStack Proposal Bot da22122450 Updated from global requirements
Change-Id: I84ad85d08fcee0556f43f7c9d2e98d4a42d8e395
2016-04-19 12:28:31 +00:00
OpenStack Proposal Bot 6146e03e5c Updated from global requirements
Change-Id: I6e1e76f71f26043bf3e9bc226ba78bca28901f67
2016-02-20 22:00:10 +00:00
OpenStack Proposal Bot 38f57531e8 Updated from global requirements
Change-Id: I566b999b69a794c45d9b38432b57a72242aa72ad
2016-01-24 04:01:54 +00:00
Andreas Jaeger 22d7002a9e Remove argparse from requirements
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
2016-01-20 19:19:48 +01:00
OpenStack Proposal Bot ad80acf595 Updated from global requirements
Change-Id: I190f13f19d82e5a74ab3bb35f9fdb10c2ee3d43f
2016-01-19 13:52:21 +00:00
OpenStack Proposal Bot 225c87cbb5 Updated from global requirements
Change-Id: I865fc967b38a62156413e902523171738f6a494a
2016-01-18 22:45:33 +00:00
OpenStack Proposal Bot b123561676 Updated from global requirements
Change-Id: I19053c6e0050385c9f21ca1a8884ec3d3007eafa
2016-01-16 03:31:55 +00:00
OpenStack Proposal Bot a7f099616d Updated from global requirements
Change-Id: Ide65c653b1ec5a8405cb290a8febfccc28aef7a9
2015-12-15 18:59:44 +00:00
OpenStack Proposal Bot 96f62fe7a0 Updated from global requirements
Change-Id: I82b6811a187f2f96a89e587756c62b90b960053a
2015-12-11 15:25:14 +00:00
OpenStack Proposal Bot be22b3923b Updated from global requirements
Change-Id: Ie9846e7e22c8fbcadea16ebc5e1c632d4f45786d
2015-12-01 06:09:44 +00:00
OpenStack Proposal Bot 784f4fe000 Updated from global requirements
Change-Id: Ib423d76792b0d72853972fc7b769003b76ae989e
2015-11-19 15:52:17 +00:00
OpenStack Proposal Bot c7c0754bfc Updated from global requirements
Change-Id: Ie73fb93994a5f83e3b2f035aa9bc10125fce7a9d
2015-10-21 13:27:00 +00:00
OpenStack Proposal Bot 8cf2bfce3c Updated from global requirements
Change-Id: I8ecfc3575347c8814247d2a537686f56b3653853
2015-10-16 01:00:34 +00:00
OpenStack Proposal Bot 77012ee670 Updated from global requirements
Change-Id: I99290470cc6ddc1079b7d72a24558ba352631203
2015-10-09 05:04:17 +00:00
OpenStack Proposal Bot 603697a325 Updated from global requirements
Change-Id: Ib81815a6f0d5a07e28d832f199fd993dd7dd6759
2015-09-29 17:56:14 +00:00
OpenStack Proposal Bot f0b30f4ff2 Updated from global requirements
Change-Id: I88e5d1c0cc29a94cbe958e20557e16e1a12c1e2b
2015-09-04 19:40:48 +00:00
Stuart McLaren 618637a5bd Remove custom SSL compression handling
Custom SSL handling was introduced because disabling SSL layer compression
provided an approximately five fold performance increase in some
cases. Without SSL layer compression disabled the image transfer would be
CPU bound -- with the CPU performing the DEFLATE algorithm.  This would
typically limit image transfers to < 20 MB/s. When --no-ssl-compression
was specified the client would not negotiate any compression algorithm
during the SSL handshake with the server which would remove the CPU
bottleneck and transfers could approach wire speed.

In order to support '--no-ssl-compression' two totally separate code
paths exist depending on whether this is True or False.  When SSL
compression is disabled, rather than using the standard 'requests'
library, we enter some custom code based on pyopenssl and httplib in
order to disable compression.

This patch/spec proposes removing the custom code because:

* It is a burden to maintain

 Eg adding new code such as keystone session support is more complicated

* It can introduce additional failure modes

 We have seen some bugs related to the 'custom' certificate checking

* Newer Operating Systems disable SSL for us.

 Eg. While Debian 7 defaulted to compression 'on', Debian 8 has compression
 'off'. This makes both servers and client less likely to have compression
 enabled.

* Newer combinations of 'requests' and 'python' do this for us

 Requests disables compression when backed by a version of python which
 supports it (>= 2.7.9). This makes clients more likely to disable
 compression out-of-the-box.

* It is (in principle) possible to do this on older versions too

 If pyopenssl, ndg-httpsclient and pyasn1 are installed on older
 operating system/python combinations, the requests library should
 disable SSL compression on the client side.

* Systems that have SSL compression enabled may be vulnerable to the CRIME
(https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4929) attack.
Installations which are security conscious should be running the Glance
server with SSL disabled.

Full Spec: https://review.openstack.org/#/c/187674
Blueprint: remove-custom-client-ssl-handling

Change-Id: I7e7761fc91b0d6da03939374eeedd809534f6edf
2015-08-26 12:26:21 +00:00
OpenStack Proposal Bot 9284eb4253 Updated from global requirements
Change-Id: I47c54849f6687927ac1eb25081907438c7ea2b56
2015-08-10 01:10:04 +00:00
OpenStack Proposal Bot b10e8938f9 Updated from global requirements
Change-Id: I19b9915bedacec60fc584a7437a9b46a80a26bdc
2015-06-22 08:27:41 +00:00