@@ -27,6 +27,7 @@ import (
2727 . "github.com/onsi/gomega"
2828 k8snet "k8s.io/utils/net"
2929
30+ "github.com/hashicorp/go-retryablehttp"
3031 corev1 "k8s.io/api/core/v1"
3132 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3233 "k8s.io/client-go/kubernetes"
@@ -182,17 +183,17 @@ func AzureLBSpec(ctx context.Context, inputGetter func() AzureLBSpecInput) {
182183 // TODO: determine root issue of failures of addressing the ELB from prow and fix
183184 // see https://kubernetes.slack.com/archives/CEX9HENG7/p1610547551019900
184185
185- // if !input.IPv6 {
186- // By("connecting directly to the external LB service")
187- // url := fmt.Sprintf("http://%s", elbIP)
188- // resp, err := retryablehttp.Get(url)
189- // if resp != nil {
190- // defer resp.Body.Close()
191- // }
192- // Expect(err).NotTo(HaveOccurred())
193- // Expect(resp.StatusCode).To(Equal(200))
194- // Expect(err).NotTo(HaveOccurred())
195- // }
186+ if ! input .IPv6 {
187+ By ("connecting directly to the external LB service" )
188+ url := fmt .Sprintf ("http://%s" , elbIP )
189+ resp , err := retryablehttp .Get (url )
190+ if resp != nil {
191+ defer resp .Body .Close ()
192+ }
193+ Expect (err ).NotTo (HaveOccurred ())
194+ Expect (resp .StatusCode ).To (Equal (200 ))
195+ Expect (err ).NotTo (HaveOccurred ())
196+ }
196197
197198 if input .SkipCleanup {
198199 return
0 commit comments