OpenStack Image Management (Glance) Client
Go to file
Stuart McLaren ef9fd9fca0 https: Prevent leaking sockets for some operations
Other OpenStack services which instantiate a 'https' glanceclient using
ssl_compression=False and insecure=False (eg Nova, Cinder) are leaking
sockets due to glanceclient not closing the connection to the Glance
server.

This could happen for a sub-set of calls, eg 'show', 'delete', 'update'.

netstat -nopd would show the sockets would hang around forever:

... 127.0.0.1:9292          ESTABLISHED 9552/python      off (0.00/0/0)

urllib's ConnectionPool relies on the garbage collector to tear down
sockets which are no longer in use. The 'verify_callback' function used to
validate SSL certs was holding a reference to the VerifiedHTTPSConnection
instance which prevented the sockets being torn down.

Change-Id: Idb3e68151c48ed623ab89d05d88ea48465429838
Closes-bug: 1423165
2015-02-18 12:31:24 +00:00
doc/source Merge "Adds basic examples of v2 API usage" 2015-02-05 22:44:16 +00:00
glanceclient https: Prevent leaking sockets for some operations 2015-02-18 12:31:24 +00:00
tests https: Prevent leaking sockets for some operations 2015-02-18 12:31:24 +00:00
tools Add bash completion to glance client 2014-08-22 12:14:10 +02:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Add a tox job for generating docs 2014-07-24 17:44:37 -04:00
.gitreview Added gitreview file. 2012-04-03 20:50:44 -06:00
.mailmap Add support for location parameters in v2 commands 2014-06-16 21:56:41 +00:00
.testr.conf Migrate to testr. 2013-01-16 18:39:18 -05:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2014-07-01 15:01:36 +08:00
HACKING.rst Make HACKING.rst DRYer 2013-11-11 10:52:07 -08:00
LICENSE Basic get/list operations work 2012-03-26 22:48:48 -07:00
MANIFEST.in Update to latest oslo-version. 2013-02-07 05:10:08 -06:00
README.rst Simplify docs and provide 'News' on index.rst 2012-08-15 22:14:09 -04:00
openstack-common.conf Remove uuidutils from openstack-common 2015-02-02 11:02:58 +00:00
requirements.txt Updated from global requirements 2015-02-06 19:06:17 +00:00
run_tests.sh Start using Pyflakes and Hacking 2013-06-22 16:00:26 +02:00
setup.cfg Add wheels section to the setup.cfg 2014-06-30 08:53:29 +02:00
setup.py Updated from global requirements 2014-04-30 02:46:18 +00:00
test-requirements.txt Updated from global requirements 2015-01-09 18:35:33 +00:00
tox.ini Merge "Work toward Python 3.4 support and testing" 2014-09-13 07:19:29 +00:00

README.rst

Python bindings to the OpenStack Images API

This is a client library for Glance built on the OpenStack Images API. It provides a Python API (the glanceclient module) and a command-line tool (glance). This library fully supports the v1 Images API, while support for the v2 API is in progress.

Development takes place via the usual OpenStack processes as outlined in the OpenStack wiki. The master repository is on GitHub.

See release notes and more at http://docs.openstack.org/developer/python-glanceclient/.