mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Merge pull request #125111 from aojea/e2e_panic_lb
add logging on e2e loadbalancer test
This commit is contained in:
@@ -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]))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user