From: Juan Miguel Olmo Martínez Date: Mon, 22 Jul 2024 07:49:09 +0000 (+0200) Subject: mgr/ccha: Complete flag is set to false only when operation in progress X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=70427d57d35b13e0460056e1fcd33be413daeae1;p=ceph-ci.git mgr/ccha: Complete flag is set to false only when operation in progress Resolves: rhbz#2299176 https://bugzilla.redhat.com/show_bug.cgi?id=2299176 Signed-off-by: Juan Miguel Olmo Martínez (cherry picked from commit bba0da72404c9dfb75287a2c8518af90395f5878) (cherry picked from commit 6709c2eb7b446112f8c0d448ccd78b1b2cdfc1eb) --- diff --git a/src/pybind/mgr/call_home_agent/dataDicts.py b/src/pybind/mgr/call_home_agent/dataDicts.py index db85a3503d1..e09f5b97761 100644 --- a/src/pybind/mgr/call_home_agent/dataDicts.py +++ b/src/pybind/mgr/call_home_agent/dataDicts.py @@ -72,13 +72,13 @@ def upload_snap_operation_event(ceph_cluster_id: str, report_timestamp: float, "component": "ceph_log_upload", "description": operation['description'], "state" : f"{operation['status']} ({operation['progress']}%)", - "complete" : (operation['status'] == OPERATION_STATUS_COMPLETE), + "complete" : (operation['status'] != OPERATION_STATUS_IN_PROGRESS), "payload": { "action": "Unsolicited_Storage_Insights_RedHatMarine_ceph_Request", "description": operation['description'], "state" : operation['status'], "progress": operation['progress'], - "complete" : (operation['status'] == OPERATION_STATUS_COMPLETE), + "complete" : (operation['status'] != OPERATION_STATUS_IN_PROGRESS), "si_requestid": operation['si_requestid'], } }