]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
nuke.nuke: Rework lock-checking logic 1765/head
authorZack Cerza <zack@redhat.com>
Wed, 8 Jun 2022 18:41:37 +0000 (12:41 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 8 Jun 2022 18:41:37 +0000 (12:41 -0600)
commita56302017805d047e97394c3b4a62bbed5935504
treed0361c55a0cd0d473cc31322d649dc7229b399de
parent93d2b653facc0e5a7a532b39d9ff91a044f2c4a9
nuke.nuke: Rework lock-checking logic

Previously, we would call list_locks(), then iterate over the response,
each time iterating over the list of targets. If list_locks()
encountered an error and returned an empty response, we'd never actually
verify what we intended to. Instead, we should specifically query for
each target. This is far safer and faster.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke/__init__.py
teuthology/test/test_nuke.py