Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/extended/node/node_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,19 @@ func GetNotReadyNodes(ctx context.Context, oc *exutil.CLI) ([]string, error) {
func EnsureNodesReady(ctx context.Context, oc *exutil.CLI) {
notReadyNodes, err := GetNotReadyNodes(ctx, oc)
o.Expect(err).NotTo(o.HaveOccurred(), "failed to check node readiness")

if exutil.ClusterDegraded && len(notReadyNodes) == 1 && exutil.IsTwoNodeFencing(ctx, oc.AdminConfigClient()) {
cpNodes, cpErr := getControlPlaneNodes(ctx, oc)
if cpErr == nil {
for _, cp := range cpNodes {
if cp.Name == notReadyNodes[0] {
framework.Logf("Tolerating NotReady control-plane node %s on intentionally degraded TNF cluster", notReadyNodes[0])
return
}
}
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

o.Expect(notReadyNodes).To(o.BeEmpty(),
"Cannot start test: nodes not Ready: %v. Cluster may be recovering from previous test.", notReadyNodes)
}
Expand Down