]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
console: Rework power on/off retry mechanism 1955/head
authorZack Cerza <zack@redhat.com>
Tue, 11 Jun 2024 21:45:52 +0000 (15:45 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 12 Jun 2024 18:27:03 +0000 (12:27 -0600)
commit244591edb34d349072389680f43aafa25c8cc020
treeea1edb25a321fee2958e397af2c8190d2ae03e1d
parentc1b06c2b5d3a02a3583265a115f09e052855bcf2
console: Rework power on/off retry mechanism

We were only ever issuing the inital request once; Now, after five unsuccessful
checks to see that the node is in the desired state, we re-issue the request but
do not reset the clock.
We were also checking the power state immediately after sending the request,
which is unhelpful as the operation will never complete that quickly. Now, we
sleep at least once.

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