Fix lock decorator usage for LVM and Generic drivers
DHSS=False mode of LVM and Generic drivers uses not safe locking
for NFS helper. So, several instances of same driver may suffer
from race conditions for modification of NFS config files.
So, make this lock external (inter-process) and add possibility to
set up "lock_name", that is useful in case of LVM driver. Also,
make Generic driver use "instance_id" instead of IP address.
In those both cases we avoid race conditions.
Reviewed: https:/ /review. openstack. org/292370 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=e49324f6713 19318ff69ed290e 0b136dab60ab13
Committed: https:/
Submitter: Jenkins
Branch: master
commit e49324f67131931 8ff69ed290e0b13 6dab60ab13
Author: vponomaryov <email address hidden>
Date: Mon Mar 14 14:57:06 2016 +0200
Fix lock decorator usage for LVM and Generic drivers
DHSS=False mode of LVM and Generic drivers uses not safe locking
for NFS helper. So, several instances of same driver may suffer
from race conditions for modification of NFS config files.
So, make this lock external (inter-process) and add possibility to
set up "lock_name", that is useful in case of LVM driver. Also,
make Generic driver use "instance_id" instead of IP address.
In those both cases we avoid race conditions.
Change-Id: I0687b1080cb6a0 e1d3bf7c87066fa 46c06977181
Closes-Bug: #1550378