[node-patches] Change in ovirt-node[node-3.0]: Don't let transactions run on unlock errs

fabiand at fedoraproject.org fabiand at fedoraproject.org
Wed Oct 16 10:16:31 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: Don't let transactions run on unlock errs
......................................................................

Don't let transactions run on unlock errs

Sometimes it could happen that transactions failed because the lockfile
wasn't locked at the end of a transaction, that's not nice, but also not
fatal.

Change-Id: I0670d2987d09e758cc83189d0367cf8379ccf8a8
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/__init__.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/27/20227/1

diff --git a/src/ovirt/node/utils/__init__.py b/src/ovirt/node/utils/__init__.py
index ec52d36..0d0ab03 100644
--- a/src/ovirt/node/utils/__init__.py
+++ b/src/ovirt/node/utils/__init__.py
@@ -249,6 +249,8 @@
                 self.prepare()
                 for idx, e in enumerate(self):
                     yield (idx, e)
+        except lockfile.NotLocked:
+            self.logger.warning("The lockfile wasn't locked at the end")
         except Exception as e:
             self.logger.warning("'%s' on transaction '%s': %s - %s" %
                                 (type(e), self, e, e.message))


-- 
To view, visit http://gerrit.ovirt.org/20227
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0670d2987d09e758cc83189d0367cf8379ccf8a8
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list