Skip to content

Commit

Permalink
increase timeouts and install ip command
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Sluiter <msluiter@redhat.com>
  • Loading branch information
slintes committed Jul 3, 2024
1 parent e6356db commit 8f28090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/self_node_remediation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
const (
disconnectCommand = "ip route add blackhole %s"
reconnectCommand = "ip route delete blackhole %s"
nodeExecTimeout = 20 * time.Second
nodeExecTimeout = 120 * time.Second
reconnectInterval = 300 * time.Second
skipLogsEnvVarName = "SKIP_LOG_VERIFICATION"
skipOOSREnvVarName = "SKIP_OOST_REMEDIATION_VERIFICATION"
Expand Down Expand Up @@ -454,7 +454,7 @@ func killApiConnection(node *v1.Node, apiIPs []string, withReconnect bool) {
msg := fmt.Sprintf("killing api connectivity on NODE: %s and API ep: %v", node.Name, apiIPs)
By(msg)

script := composeScript(disconnectCommand, apiIPs)
script := "dnf -y install iproute && " + composeScript(disconnectCommand, apiIPs)
if withReconnect {
script += fmt.Sprintf(" && sleep %s && ", strconv.Itoa(int(reconnectInterval.Seconds())))
script += composeScript(reconnectCommand, apiIPs)
Expand Down
2 changes: 1 addition & 1 deletion e2e/utils/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func RunCommandInCluster(ctx context.Context, c *kubernetes.Clientset, nodeName
return "", err
}

err = waitForCondition(c, pod, corev1.PodReady, corev1.ConditionTrue, time.Minute)
err = waitForCondition(c, pod, corev1.PodReady, corev1.ConditionTrue, 3*time.Minute)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 8f28090

Please sign in to comment.