@@ -36,7 +36,6 @@ import (
36
36
"k8s.io/kubernetes/test/e2e/framework"
37
37
fnodes "k8s.io/kubernetes/test/e2e/framework/node"
38
38
39
- fpod "k8s.io/kubernetes/test/e2e/framework/pod"
40
39
fpv "k8s.io/kubernetes/test/e2e/framework/pv"
41
40
admissionapi "k8s.io/pod-security-admission/api"
42
41
ctlrclient "sigs.k8s.io/controller-runtime/pkg/client"
@@ -237,8 +236,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
237
236
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
238
237
}
239
238
240
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
241
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
239
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
240
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
242
241
243
242
ginkgo .By ("Bring down the primary site" )
244
243
siteFailover (ctx , true )
@@ -262,10 +261,10 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
262
261
263
262
time .Sleep (5 * time .Minute )
264
263
// Check if csi pods are running fine after site failure
265
- ginkgo .By ("Check if csi pods are running fine after site failure" )
266
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
267
- time .Duration (pollTimeout * 2 ))
268
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
264
+ // ginkgo.By("Check if csi pods are running fine after site failure")
265
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
266
+ // time.Duration(pollTimeout*2))
267
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
269
268
270
269
ginkgo .By ("Waiting for all claims to be in bound state" )
271
270
pvs , err = fpv .WaitForPVClaimBoundPhase (ctx , client , pvclaimsList , pollTimeout )
@@ -375,8 +374,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
375
374
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
376
375
}
377
376
378
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
379
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
377
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
378
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
380
379
381
380
ginkgo .By ("Bring down the secondary site" )
382
381
siteFailover (ctx , false )
@@ -399,11 +398,11 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
399
398
}
400
399
401
400
time .Sleep (5 * time .Minute )
402
- // Check if csi pods are running fine after site failure
403
- ginkgo .By ("Check if csi pods are running fine after site failure" )
404
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
405
- time .Duration (pollTimeout * 2 ))
406
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
401
+ // // Check if csi pods are running fine after site failure
402
+ // ginkgo.By("Check if csi pods are running fine after site failure")
403
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
404
+ // time.Duration(pollTimeout*2))
405
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
407
406
408
407
ginkgo .By ("Waiting for all claims to be in bound state" )
409
408
pvs , err = fpv .WaitForPVClaimBoundPhase (ctx , client , pvclaimsList , pollTimeout )
@@ -488,8 +487,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
488
487
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
489
488
}()
490
489
491
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
492
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
490
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
491
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
493
492
494
493
ch := make (chan * vmopv1.VirtualMachine )
495
494
var wg sync.WaitGroup
@@ -535,11 +534,11 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
535
534
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
536
535
}
537
536
538
- // Check if csi pods are running fine after site failure
539
- ginkgo .By ("Check if csi pods are running fine after site failure" )
540
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
541
- time .Duration (pollTimeout * 2 ))
542
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
537
+ // // Check if csi pods are running fine after site failure
538
+ // ginkgo.By("Check if csi pods are running fine after site failure")
539
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
540
+ // time.Duration(pollTimeout*2))
541
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
543
542
544
543
ginkgo .By ("Creates a loadbalancing service for ssh with each VM" +
545
544
"and waits for VM IP to come up to come up and verify PVCs are accessible in the VM" )
@@ -628,8 +627,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
628
627
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
629
628
}()
630
629
631
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
632
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
630
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
631
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
633
632
634
633
ginkgo .By ("Creating VM" )
635
634
vms := createVMServiceVmWithMultiplePvcs (
@@ -683,11 +682,11 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
683
682
}
684
683
685
684
time .Sleep (5 * time .Minute )
686
- // Check if csi pods are running fine after site failure
687
- ginkgo .By ("Check if csi pods are running fine after site failure" )
688
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
689
- time .Duration (pollTimeout * 2 ))
690
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
685
+ // // Check if csi pods are running fine after site failure
686
+ // ginkgo.By("Check if csi pods are running fine after site failure")
687
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
688
+ // time.Duration(pollTimeout*2))
689
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
691
690
692
691
ginkgo .By ("Waiting for all claims to be in bound state" )
693
692
pvs , err = fpv .WaitForPVClaimBoundPhase (ctx , client , pvclaimsList , pollTimeout )
@@ -772,8 +771,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
772
771
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
773
772
}()
774
773
775
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
776
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
774
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
775
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
777
776
778
777
ch := make (chan * vmopv1.VirtualMachine )
779
778
var wg sync.WaitGroup
@@ -800,10 +799,10 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
800
799
}
801
800
time .Sleep (5 * time .Minute )
802
801
803
- ginkgo .By ("Check if csi pods are running fine after site recovery" )
804
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
805
- time .Duration (pollTimeout * 2 ))
806
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
802
+ // ginkgo.By("Check if csi pods are running fine after site recovery")
803
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
804
+ // time.Duration(pollTimeout*2))
805
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
807
806
808
807
ginkgo .By ("Creates a loadbalancing service for ssh with each VM" +
809
808
"and waits for VM IP to come up to come up and verify PVCs are accessible in the VM" )
@@ -855,8 +854,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
855
854
sc , err := client .StorageV1 ().StorageClasses ().Get (ctx , storageClassName , metav1.GetOptions {})
856
855
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
857
856
858
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
859
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
857
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
858
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
860
859
861
860
ginkgo .By ("Wait for k8s cluster to be healthy" )
862
861
if vanillaCluster {
@@ -876,11 +875,11 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
876
875
}
877
876
}()
878
877
879
- // Check if csi pods are running fine after site failure
880
- ginkgo .By ("Check if csi pods are running fine after site failure" )
881
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
882
- time .Duration (pollTimeout * 2 ))
883
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
878
+ // // Check if csi pods are running fine after site failure
879
+ // ginkgo.By("Check if csi pods are running fine after site failure")
880
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
881
+ // time.Duration(pollTimeout*2))
882
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
884
883
885
884
ginkgo .By ("Create multiple PVCs" )
886
885
pvclaimsList := createMultiplePVCsInParallel (ctx , client , namespace , sc , pvcCount , nil )
@@ -1041,8 +1040,8 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
1041
1040
pvs , err = fpv .WaitForPVClaimBoundPhase (ctx , client , pvclaimsList , pollTimeout )
1042
1041
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
1043
1042
}
1044
- csipods , err := client .CoreV1 ().Pods (csiNs ).List (ctx , metav1.ListOptions {})
1045
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
1043
+ // csipods, err := client.CoreV1().Pods(csiNs).List(ctx, metav1.ListOptions{})
1044
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
1046
1045
1047
1046
// Cause a network failure on primary site
1048
1047
ginkgo .By ("Isolate secondary site from witness and primary site" )
@@ -1061,11 +1060,11 @@ var _ bool = ginkgo.Describe("[vsan-stretch-vmsvc] vm service with csi vol tests
1061
1060
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
1062
1061
}
1063
1062
1064
- // Check if csi pods are running fine after site failure
1065
- ginkgo .By ("Check if csi pods are running fine after site failure" )
1066
- err = fpod .WaitForPodsRunningReady (ctx , client , csiNs , len (csipods .Items ),
1067
- time .Duration (pollTimeout * 2 ))
1068
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
1063
+ // // Check if csi pods are running fine after site failure
1064
+ // ginkgo.By("Check if csi pods are running fine after site failure")
1065
+ // err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
1066
+ // time.Duration(pollTimeout*2))
1067
+ // gomega.Expect(err).NotTo(gomega.HaveOccurred())
1069
1068
1070
1069
ginkgo .By ("Waiting for all claims to be in bound state" )
1071
1070
pvs , err = fpv .WaitForPVClaimBoundPhase (ctx , client , pvclaimsList , pollTimeout )
0 commit comments