Both cinder-volume and cinder-backup could want to mount the
SOFS at the same time (during init).
Related-Bug: #
1410341
Change-Id: I75faa6eb283bc7c1f655cf5b051bed025af3d701
from oslo.config import cfg
from oslo.utils import units
+from oslo_concurrency import lockutils
import six.moves.urllib.parse as urlparse
from cinder import exception
if e.errno != errno.EEXIST:
raise
+ @lockutils.synchronized('mount-sofs', 'cinder-sofs', external=True)
def _mount_sofs(self):
config = self.configuration.scality_sofs_config
mount_path = self.configuration.scality_sofs_mount_point