txzookeeper.lock.Lock problem when using chroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txzookeeper |
New
|
Undecided
|
Unassigned |
Bug Description
When using chroot (e.g. localhost:
self._candidate
So it will look like this:
/myroot/
For the release step to work, it needs to strip out the chroot:
diff --git a/pythonlib/
index 0ef52c8..d44ba54 100644
--- a/pythonlib/
+++ b/pythonlib/
@@ -139,7 +139,10 @@ class Lock(object):
error = LockError("Not holding lock %s"%(self.path))
return fail(error)
- d = self._client.
+ # aparente: account for chroot
+ index = self._candidate
+ candidate_path = self._candidate
+ d = self._client.
def on_delete_