From bbfed8a7db65a478e2e3335b605e2dcdb3b4116a Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Thu, 17 Dec 2020 18:31:29 +0100 Subject: [PATCH] fix sctp hostPort test The test create a pod with a hostPort to expose an SCTP port, then it checks if the iptables rules were installed correctly in the host. The iptables rules MUST be checked in the same host where the pod is running :) --- test/e2e/network/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/network/service.go b/test/e2e/network/service.go index 63af87c6641..a4b20eb7949 100644 --- a/test/e2e/network/service.go +++ b/test/e2e/network/service.go @@ -3842,6 +3842,7 @@ var _ = SIGDescribe("SCTP [Feature:SCTP] [LinuxOnly]", func() { podName := "hostport" ports := []v1.ContainerPort{{Protocol: v1.ProtocolSCTP, ContainerPort: 5060, HostPort: 5060}} podSpec := e2epod.NewAgnhostPod(f.Namespace.Name, podName, nil, nil, ports) + podSpec.Spec.NodeName = node.Name ginkgo.By(fmt.Sprintf("Launching the pod on node %v", node.Name)) f.PodClient().CreateSync(podSpec)