Skip to content

Commit 611dce0

Browse files
committed
cephfs_mirror: deprecate 'peer_add' command
Fixes: https://tracker.ceph.com/issues/72683 Signed-off-by: Jos Collin <[email protected]>
1 parent ac1af20 commit 611dce0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pybind/mgr/mirroring/module.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ def snapshot_mirorr_peer_add(self,
3939
if remote_mon_host and cephx_key:
4040
conf['mon_host'] = remote_mon_host
4141
conf['key'] = cephx_key
42-
return self.fs_snapshot_mirror.peer_add(fs_name, remote_cluster_spec,
43-
remote_fs_name, remote_conf=conf)
42+
r, out, err = self.fs_snapshot_mirror.peer_add(fs_name, remote_cluster_spec,
43+
remote_fs_name, remote_conf=conf)
44+
out = (f"{out}\n"
45+
"Warning: The 'peer_add' command is deprecated and will be removed in a "
46+
"future release. Use 'peer_bootstrap' instead.\n")
47+
return r, out, err
4448

4549
@CLIReadCommand('fs snapshot mirror peer_list')
4650
def snapshot_mirror_peer_list(self,

0 commit comments

Comments
 (0)