]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/mirroring: Display remote fsid and mon_host in daemon status
authorKotresh HR <khiremat@redhat.com>
Tue, 17 Feb 2026 18:43:21 +0000 (00:13 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 25 Feb 2026 02:43:42 +0000 (08:13 +0530)
commite813b6cac2e530cce1c78c66ffd55041f9f7df42
treebd1bc44158e1eb5b3b9af22358449839422ce595
parent63656871def62b3a35410f1110a6fd115802f860
mgr/mirroring: Display remote fsid and mon_host in daemon status

The cephfs_mirror daemon returns the basic remote info.
Fetch the remote fsid and mon_host from the monitor
config map and append it.

Sample output:
[
  {
    "daemon_id": 4153,
    "filesystems": [
      {
        "filesystem_id": 1,
        "name": "a",
        "directory_count": 0,
        "peers": [
          {
            "uuid": "29304477-1fd7-4709-b9f7-8153acebbafd",
            "remote": {
              "client_name": "client.mirror_remote",
              "cluster_name": "remote-site",
              "fs_name": "a",
              "mon_host": "[v2:192.168.64.5:40183,v1:192.168.64.5:40184]",
              "fsid": "5682c8e5-50cd-4cfd-b75c-5354dcdda487"
            },
            "stats": {
              "failure_count": 0,
              "recovery_count": 0
            }
          }
        ]
      }
    ]
  }
]

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