]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: Fix division by zero error in upgrade progress calculation
authorPrashant D <pdhange@redhat.com>
Mon, 8 Sep 2025 21:44:16 +0000 (17:44 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 8 Sep 2025 21:50:53 +0000 (17:50 -0400)
commit4133c6eb1ce3a21d570e0108914740dbb8cc99c8
tree44cb193cb887d9ac10a1606cf50a0fb6f577a9fc
parent6df3fd0f6db466ccd36e7399cc0c15c7c1cf2a84
mgr/cephadm: Fix division by zero error in upgrade progress calculation

Ensure that daemon list is non-empty before computing upgrade progress
to prevent unexpected exceptions during the upgrade process.

Fixes: https://tracker.ceph.com/issues/72916
Signed-off-by: Prashant D <pdhange@redhat.com>
src/pybind/mgr/cephadm/upgrade.py