From d8a8b05c1f78a2906ab9e59e6843ab5cfb473324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 26 Nov 2021 15:49:50 +0100 Subject: [PATCH] cephfs-mirror: use combined output to possibly catch peer import error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By adding a combined output to the executor we might be able to fetch more error messages. Signed-off-by: Sébastien Han --- pkg/daemon/ceph/client/filesystem_mirror.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/daemon/ceph/client/filesystem_mirror.go b/pkg/daemon/ceph/client/filesystem_mirror.go index 4de6b6b5336a..c1386c4c7216 100644 --- a/pkg/daemon/ceph/client/filesystem_mirror.go +++ b/pkg/daemon/ceph/client/filesystem_mirror.go @@ -173,6 +173,7 @@ func ImportFSMirrorBootstrapPeer(context *clusterd.Context, clusterInfo *Cluster args := []string{"fs", "snapshot", "mirror", "peer_bootstrap", "import", fsName, strings.TrimSpace(token)} cmd := NewCephCommand(context, clusterInfo, args) cmd.JsonOutput = false + cmd.combinedOutput = true // Run command output, err := cmd.Run()