diff options
author | whoami-rajat <rajatdhasmana@gmail.com> | 2020-04-01 14:18:44 +0000 |
---|---|---|
committer | Rajat Dhasmana <rajatdhasmana@gmail.com> | 2020-05-01 11:35:01 +0000 |
commit | f5d46996139593f6249138bcc9f09b6120f0034a (patch) | |
tree | cf51b33ee3f7505666c3a4f1d2297270080877d8 /doc | |
parent | 2aa892d4dfb1cf8beb5f9bdba4e468486d4bae44 (diff) | |
download | glance_store-f5d46996139593f6249138bcc9f09b6120f0034a.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/conf.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 7c71c42..0bf9837 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -88,3 +88,11 @@ latex_documents = [ '%s Documentation' % project, 'OpenStack Foundation', 'manual'), ] + +# The autodoc module imports every module to check for import +# errors. Since the fs_mount module is self initializing, it +# requires configurations that aren't loaded till that time. +# It would never happen in a real scenario as it is only imported +# from cinder store after the config are loaded but to handle doc +# failures, we mock it here. +autodoc_mock_imports = ['glance_store.common.fs_mount']
\ No newline at end of file |