Fix image handling when shared storage is being used
The image cache operation uses thread locks, for which reason it is
prone to race conditions when using shared storage. This is avoided
by using file locks, placed on the shared path.
Change-Id: I2b002993b7ab0973960794bfdd81d4fe57bf7399
Partial-Bug: #1565895
(cherry picked from commit 7c2e267d5da59cce6eb19e1ec6e98679ec0af102)
Reviewed: https:/ /review. openstack. org/400636 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=522d0e91522 ea3caa4a53d0a84 0020b06c3ddd31
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 522d0e91522ea3c aa4a53d0a840020 b06c3ddd31
Author: Lucian Petrut <email address hidden>
Date: Thu Sep 22 19:23:39 2016 +0300
Fix image handling when shared storage is being used
The image cache operation uses thread locks, for which reason it is
prone to race conditions when using shared storage. This is avoided
by using file locks, placed on the shared path.
Change-Id: I2b002993b7ab09 73960794bfdd81d 4fe57bf7399 e6eb19e1ec6e986 79ec0af102)
Partial-Bug: #1565895
(cherry picked from commit 7c2e267d5da59cc