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: v17.1.0~3107^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ea51f6990cf7e1dbc89ae3ffb8c8cd9f943e1c21;p=ceph.git mgr/rook: Fix possibly infinite loop in _execute_blight_job Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/rook/rook_cluster.py b/src/pybind/mgr/rook/rook_cluster.py index c842b3579cada..d40613090b5a6 100644 --- a/src/pybind/mgr/rook/rook_cluster.py +++ b/src/pybind/mgr/rook/rook_cluster.py @@ -725,7 +725,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(