]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/mirroring: Show default stats on newly added dir_root
authorKotresh HR <khiremat@redhat.com>
Sun, 21 Jun 2026 17:35:30 +0000 (23:05 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 23 Jun 2026 15:19:29 +0000 (20:49 +0530)
commitc24b8d3cc2fb36ea77276598a2d1c2f90b1304ec
treedca6df84148569139986e773d6e9ab481f4c6571
parent15e998b865b99b3091054321cf0fdf6df9f327ab
mgr/mirroring: Show default stats on newly added dir_root

When the directory is added for mirroring and the snapshot
is not taken yet, the peer_status show the following default
metrics.

{
  'state': 'idle',
  'snaps_synced': 0,
  'snaps_deleted': 0,
  'snaps_renamed': 0,
}

The mgr interface should also match that.

Fixes: https://tracker.ceph.com/issues/76686
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/pybind/mgr/mirroring/fs/metrics/format.py
src/pybind/mgr/mirroring/fs/metrics/load.py
src/pybind/mgr/mirroring/fs/snapshot_mirror.py