]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix HBSD horcm driver with oslo.concurrency 2.1.0
authormarcusvrn <marcus.nascimento@fit-tecnologia.org.br>
Wed, 1 Jul 2015 18:03:40 +0000 (15:03 -0300)
committermarcusvrn <marcus.nascimento@fit-tecnologia.org.br>
Fri, 3 Jul 2015 12:12:52 +0000 (09:12 -0300)
The oslo.concurrency 2.1.0 has replaced locks and replaced with fasteners which
means that locking stuff has moved to a generic 3rd party lib. This lib uses
the variable "path" instead of "fname".

Closes-bug: #1470112
Change-Id: I8b844c827c940a01da9cd97d8f69b3a7e42f706c

cinder/volume/drivers/hitachi/hbsd_basiclib.py

index 8fc59912f544e3b1d0c3801aa638d12f0538e14b..8d0983a5bb79f635a714b3904eee7032e0e7eb42 100644 (file)
@@ -198,10 +198,6 @@ class FileLock(lockutils.InterProcessLock):
         super(FileLock, self).__init__(name)
 
     def __enter__(self):
-        if not os.access(self.fname, os.W_OK):
-            msg = output_err(633, file=self.fname)
-            raise exception.HBSDError(message=msg)
-
         self.lock_object.acquire()
 
         try: