Skip to content

Commit

Permalink
cephfs-mirror: use combined output to possibly catch peer import error
Browse files Browse the repository at this point in the history
By adding a combined output to the executor we might be able to fetch more
error messages.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit d8a8b05)
  • Loading branch information
leseb authored and mergify-bot committed Nov 29, 2021
1 parent d07549a commit c0d0f16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/daemon/ceph/client/filesystem_mirror.go
Expand Up @@ -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()
Expand Down

0 comments on commit c0d0f16

Please sign in to comment.