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>
  • Loading branch information
leseb committed Nov 26, 2021
1 parent 7f7a72d commit d8a8b05
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 d8a8b05

Please sign in to comment.