From: Sebastian Wagner Date: Thu, 28 Jan 2021 12:13:20 +0000 (+0100) Subject: mgr/rook: Fix possibly infinite loop in _execute_blight_job X-Git-Tag: v16.2.6~154^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=857273d876912e9b1590a7df76e0bcbbda799f0b;p=ceph.git mgr/rook: Fix possibly infinite loop in _execute_blight_job Signed-off-by: Sebastian Wagner (cherry picked from commit ea51f6990cf7e1dbc89ae3ffb8c8cd9f943e1c21) --- diff --git a/src/pybind/mgr/rook/rook_cluster.py b/src/pybind/mgr/rook/rook_cluster.py index acf178c5522..7db2f38ceb6 100644 --- a/src/pybind/mgr/rook/rook_cluster.py +++ b/src/pybind/mgr/rook/rook_cluster.py @@ -730,7 +730,7 @@ class RookCluster(object): deleted = not api_response.items if retries > 5: sleep(0.1) - ++retries + retries += 1 if retries == 10 and not deleted: raise orchestrator.OrchestratorError( "Light <{}> in <{}:{}> cannot be executed. Cannot delete previous job <{}>".format(