From 1c6a57d722f21cc499912bbc389267151b44c962 Mon Sep 17 00:00:00 2001 From: marcusvrn Date: Wed, 1 Jul 2015 15:03:40 -0300 Subject: [PATCH] Fix HBSD horcm driver with oslo.concurrency 2.1.0 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cinder/volume/drivers/hitachi/hbsd_basiclib.py b/cinder/volume/drivers/hitachi/hbsd_basiclib.py index 8fc59912f..8d0983a5b 100644 --- a/cinder/volume/drivers/hitachi/hbsd_basiclib.py +++ b/cinder/volume/drivers/hitachi/hbsd_basiclib.py @@ -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: