Merge pull request #15051 from parth-gr/reconcle-fix

rbdmirror: rbd import cmd stuck forever
This commit is contained in:
Travis Nielsen
2024-11-26 10:11:05 -07:00
committed by GitHub
+2 -1
View File
@@ -27,6 +27,7 @@ import (
cephv1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"github.com/rook/rook/pkg/clusterd"
cephver "github.com/rook/rook/pkg/operator/ceph/version"
"github.com/rook/rook/pkg/util/exec"
"k8s.io/apimachinery/pkg/util/sets"
)
@@ -87,7 +88,7 @@ func ImportRBDMirrorBootstrapPeer(context *clusterd.Context, clusterInfo *Cluste
cmd := NewRBDCommand(context, clusterInfo, args)
// Run command
output, err := cmd.Run()
output, err := cmd.RunWithTimeout(exec.CephCommandsTimeout)
if err != nil {
return errors.Wrapf(err, "failed to add rbd-mirror peer token for pool %q. %s", poolName, output)
}