whoami-rajat f5d4699613 Add lock per share for cinder nfs mount/umount
With cinder configured as glance store and nfs as cinder backend,
if we create multiple images concurrently into the same share,
there might be race conditions.
This patch ensures a lock per export to avoid the race conditions.

This patch also introduces a reference counting mechamism for unmounting
which will unmount the share if no active thread/process is using it.

Closes-Bug: #1870289

Change-Id: I9197f64e29a0ae2e0a58186f1a70aa134f7f1db6
2020-05-01 11:35:01 +00:00
2020-04-02 15:26:13 +02:00
2018-01-29 06:26:30 +00:00
2019-04-19 19:42:31 +00:00
2020-04-10 13:29:50 -05:00
2014-01-24 18:30:46 +01:00
2019-10-06 14:37:10 +08:00
2020-04-05 08:20:21 +02:00
2020-04-05 08:20:21 +02:00
2020-04-05 08:20:21 +02:00

Team and repository tags

The following tags have been asserted for the Glance Store
Library:
"project:official",
"stable:follows-policy",
"vulnerability:managed".
Follow the link for an explanation of these tags.

Glance Store Library

Glance's stores library

This library has been extracted from the Glance source code for the specific use of the Glance and Glare projects.

The API it exposes is not stable, has some shortcomings, and is not a general purpose interface. We would eventually like to change this, but for now using this library outside of Glance or Glare will not be supported by the core team.

Description
Glance stores library
Readme 14 MiB
Languages
Python 100%