Merge pull request #125111 from aojea/e2e_panic_lb

add logging on e2e loadbalancer test
This commit is contained in:
Kubernetes Prow Robot
2024-05-23 22:27:21 -07:00
committed by GitHub

View File

@@ -356,7 +356,7 @@ var _ = common.SIGDescribe("LoadBalancers", feature.LoadBalancer, func() {
testReachableUDP(ctx, udpIngressIP, svcPort, loadBalancerLagTimeout) testReachableUDP(ctx, udpIngressIP, svcPort, loadBalancerLagTimeout)
// Change the services' main ports. // Change the services' main ports.
framework.Logf("Service Status: %v", udpService.Status)
ginkgo.By("changing the UDP service's port") ginkgo.By("changing the UDP service's port")
udpService, err = udpJig.UpdateService(ctx, func(s *v1.Service) { udpService, err = udpJig.UpdateService(ctx, func(s *v1.Service) {
s.Spec.Ports[0].Port++ s.Spec.Ports[0].Port++
@@ -370,6 +370,7 @@ var _ = common.SIGDescribe("LoadBalancers", feature.LoadBalancer, func() {
if int(udpService.Spec.Ports[0].NodePort) != udpNodePort { if int(udpService.Spec.Ports[0].NodePort) != udpNodePort {
framework.Failf("UDP Spec.Ports[0].NodePort (%d) changed", udpService.Spec.Ports[0].NodePort) framework.Failf("UDP Spec.Ports[0].NodePort (%d) changed", udpService.Spec.Ports[0].NodePort)
} }
framework.Logf("Service Status: %v", udpService.Status)
if e2eservice.GetIngressPoint(&udpService.Status.LoadBalancer.Ingress[0]) != udpIngressIP { if e2eservice.GetIngressPoint(&udpService.Status.LoadBalancer.Ingress[0]) != udpIngressIP {
framework.Failf("UDP Status.LoadBalancer.Ingress changed (%s -> %s) when not expected", udpIngressIP, e2eservice.GetIngressPoint(&udpService.Status.LoadBalancer.Ingress[0])) framework.Failf("UDP Status.LoadBalancer.Ingress changed (%s -> %s) when not expected", udpIngressIP, e2eservice.GetIngressPoint(&udpService.Status.LoadBalancer.Ingress[0]))
} }