]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
lock.ops.unlock_one: Fail sooner on 403, with msg 1850/head
authorZack Cerza <zack@redhat.com>
Wed, 24 May 2023 17:53:19 +0000 (11:53 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 24 May 2023 17:53:19 +0000 (11:53 -0600)
commitf2fcae667ce0b8d87f5715b55f1dafbabc12c86b
tree514fd3b17fbe39f70b366cea1985de132e45b814
parent6fb4f0c910de3902d27909a642e8d50d731dd28c
lock.ops.unlock_one: Fail sooner on 403, with msg

In the case of e.g. owners values not matching on an unlock attempt, we
were exhausting all retries and failing to display the exact reason for
the unlock failure. We can simply break on 403 errors and let the rest
of the function do its thing.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/lock/ops.py