etcd: if etcd is not working, acquire() raises an exception

Bug #1604906 reported by John Schwarz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tooz
Confirmed
Medium
Unassigned

Bug Description

See [1]: in case self.client.put() raises RequestException, and if watch == None, then the code doesn't break - it will proceed to line 123, where UnboundLocalError is raised from the code.

Reproduction steps: stop etcd, try to acquire lock.

[1]: https://github.com/openstack/tooz/blob/5149c402db09d5997b6fc086dbd7d3b1d12815c8/tooz/drivers/etcd.py#L112

Revision history for this message
John Schwarz (jschwarz) wrote :
Ben Nemec (bnemec)
Changed in python-tooz:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.