]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: Fix unfound progress events 57772/head
authorPrashant D <pdhange@redhat.com>
Fri, 3 May 2024 23:32:32 +0000 (19:32 -0400)
committerAdam King <adking@redhat.com>
Wed, 29 May 2024 15:11:26 +0000 (11:11 -0400)
commit498ffdbd289d49f18bcfca66a46b00f6b97bbce2
tree39b024b245a0d3456ad3aff4fb1aa85a6c71aece
parent6f942bab36be616edeaf498cbf0aac3a354221e0
mgr/cephadm: Fix unfound progress events

While applying service specs, cephadm creates a progress event for
the daemons to be added or deleted from the hosts. The progress
event is initialized if progress_total is greater than 0
but at the end cephadm tries to mark the progress event as
complete/fail even though progress event has not been initialized.

Mark progress events as complete/fail only if they are initialized.

Fixes: https://tracker.ceph.com/issues/65799
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit cfcdfd6ae2e0580450cc857123ca35e0d4d2ebea)
src/pybind/mgr/cephadm/serve.py