]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
lock_machines: record total requested, stop only when that many locked
authorDan Mick <dan.mick@redhat.com>
Sat, 25 Jul 2015 03:46:14 +0000 (20:46 -0700)
committerDan Mick <dan.mick@redhat.com>
Sat, 25 Jul 2015 04:06:56 +0000 (21:06 -0700)
commitb74fcc931031424b12b5f481a76bd7380ad1029c
tree20404edce790fe32db0734e419ec0fe39bf42c79
parentc14c6d23eb2eb43c504cf70cc5a312cc9a844229
lock_machines: record total requested, stop only when that many locked

The 'requested' counter is per-loop around the while True, and changes
for partial lock successes and multiple trips around the loop.  We need to
save the original number requested to know when we're done.

Also, add a bit of logging for each trip around the loop.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
teuthology/task/internal.py