]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/ccha: Complete flag is set to false only when operation in progress
authorJuan Miguel Olmo Martínez <jolmomar@ibm.com>
Mon, 22 Jul 2024 07:49:09 +0000 (09:49 +0200)
committerJustin Caratzas <jcaratza@redhat.com>
Tue, 23 Sep 2025 13:07:09 +0000 (09:07 -0400)
Resolves: rhbz#2299176
          https://bugzilla.redhat.com/show_bug.cgi?id=2299176

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@ibm.com>
(cherry picked from commit bba0da72404c9dfb75287a2c8518af90395f5878)
(cherry picked from commit 6709c2eb7b446112f8c0d448ccd78b1b2cdfc1eb)

src/pybind/mgr/call_home_agent/dataDicts.py

index db85a3503d1b5d857cc7462c16963aadf7afb1a0..e09f5b97761f17b36f32e77998fdce3ef9b09d48 100644 (file)
@@ -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'],
                 }
             }