]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Added the lockutils, fileutils, gettextutils
authorWalter A. Boring IV <walter.boring@hp.com>
Tue, 11 Dec 2012 19:26:16 +0000 (11:26 -0800)
committerWalter A. Boring IV <walter.boring@hp.com>
Wed, 19 Dec 2012 20:01:33 +0000 (12:01 -0800)
commit3b02985805a1442c97edb119ec01c013f3ab36cb
treebc0ff3846298df9a2c5553c71230463624a0c07a
parent319221d567e7a1c237fcf0eb1706181ea4cdf53c
Added the lockutils, fileutils, gettextutils

The 3par driver, for both iSCSI and Fibre Channel,
that I will commit soon, needs the lockutils to ensure thread safety in
each of the driver entry points.  The driver uses a single shared http
session for all of it's connections to the 3par drive array.
This is required for the driver because of the limitation on the
3par's WSAPI only supporting a very small number of open connections.

For example without this, the driver will have problems when 2 users try and
create a volume at the same time.   I've discovered this in my threaded
stress test tool.

Change-Id: Ic9d7295e7bcbf5c06086ddf5bd9b8b2fe771faa5
cinder/openstack/common/fileutils.py [new file with mode: 0644]
cinder/openstack/common/gettextutils.py
cinder/openstack/common/lockutils.py [new file with mode: 0644]
openstack-common.conf