Skip to content

Commit 223491c

Browse files
authored
Fixes for vSAN Stretch TKG (#3717)
1 parent 8c514c6 commit 223491c

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

tests/e2e/gc_metadata_syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ var _ = ginkgo.Describe("[csi-guest] pvCSI metadata syncer tests", func() {
723723
// 10. Verify CnsVolumeMetadata CRD in SV are updated.
724724
// 11. Wait for labels to be deleted in CNS.
725725
// 12. Delete PVC.
726-
ginkgo.It("[ef-vks][ef-vks-n1][ef-vks-n2] Validate PV and PVC labels are updated/deleted "+
726+
ginkgo.It("Validate PV and PVC labels are updated/deleted "+
727727
"on CNS", ginkgo.Label(p0, block, tkg, vc70), func() {
728728
var err error
729729
ctx, cancel := context.WithCancel(context.Background())

tests/e2e/policy_driven_vol_allocation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var _ = ginkgo.Describe("[vol-allocation] Policy driven volume space allocation
6464
lztVsandPvcName = "pvc-vsand-lzt-"
6565
eztVsandPodName = "pod-vsand-ezt-"
6666
lztVsandPodName = "pod-vsand-lzt-"
67-
resourceQuotaLimit = "300Gi"
67+
resourceQuotaLimit = "500Gi"
6868
svcMasterIp string
6969
sshWcpConfig *ssh.ClientConfig
7070
svcNamespace string
@@ -1159,8 +1159,8 @@ var _ = ginkgo.Describe("[vol-allocation] Policy driven volume space allocation
11591159
12 Deleted the SPBM policy created in step 1
11601160
*/
11611161
ginkgo.It("[ef-f-vanilla-block][ef-f-svc-volallowcation][csi-block-vanilla][csi-guest][csi-supervisor]"+
1162-
"[ef-f-vks-thickthin][csi-wcp-vsan-direct] Verify online LZT/EZT volume expansion of attached "+
1163-
"volumes with IO", ginkgo.Label(p0, vanilla, block, thickThin, wcp, tkg, stable,
1162+
"[csi-wcp-vsan-direct] Verify online LZT/EZT volume expansion of attached volumes "+
1163+
"with IO", ginkgo.Label(p0, vanilla, block, thickThin, wcp, tkg, stable,
11641164
vsanDirect, vc70), func() {
11651165

11661166
ctx, cancel := context.WithCancel(context.Background())

tests/e2e/vsan_stretched_cluster.go

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
357357
if guestCluster {
358358
ginkgo.By("Check if csi pods are running fine after site failure in supervisor")
359359
// Check if csi pods are running fine after site failure
360-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()),
360+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
361361
time.Duration(pollTimeout))
362362
gomega.Expect(err).NotTo(gomega.HaveOccurred())
363363
}
@@ -566,7 +566,7 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
566566
if guestCluster {
567567
ginkgo.By("Check if csi pods are running fine after site failure in supervisor")
568568
// Check if csi pods are running fine after site failure
569-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()),
569+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
570570
time.Duration(pollTimeout))
571571
gomega.Expect(err).NotTo(gomega.HaveOccurred())
572572
}
@@ -917,7 +917,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
917917
time.Sleep(pollTimeout * 2)
918918
if guestCluster {
919919
ginkgo.By("Check for csi pods to be in Ready state in supervisor")
920-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
920+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
921+
time.Duration(pollTimeout))
921922
gomega.Expect(err).NotTo(gomega.HaveOccurred())
922923
}
923924

@@ -1075,7 +1076,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
10751076

10761077
if guestCluster {
10771078
ginkgo.By("Check if csi pods are running fine after site failure in supervisor")
1078-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
1079+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
1080+
time.Duration(pollTimeout))
10791081
gomega.Expect(err).NotTo(gomega.HaveOccurred())
10801082
}
10811083

@@ -1235,7 +1237,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
12351237

12361238
time.Sleep(pollTimeout * 2)
12371239
if guestCluster {
1238-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
1240+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
1241+
time.Duration(pollTimeout))
12391242
gomega.Expect(err).NotTo(gomega.HaveOccurred())
12401243
}
12411244
// Check if csi pods are running fine after site failure
@@ -1530,7 +1533,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
15301533
time.Sleep(pollTimeout)
15311534
ginkgo.By("Check if csi pods are running fine after site failure")
15321535
if guestCluster {
1533-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
1536+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
1537+
time.Duration(pollTimeout))
15341538
gomega.Expect(err).NotTo(gomega.HaveOccurred())
15351539
}
15361540
err = fpod.WaitForPodsRunningReady(ctx, client, csiNs, len(csipods.Items),
@@ -2203,7 +2207,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
22032207
time.Sleep(pollTimeout * 2)
22042208
if guestCluster {
22052209
ginkgo.By("Check if csi pods are running fine after site failurein supervisor")
2206-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
2210+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
2211+
time.Duration(pollTimeout))
22072212
gomega.Expect(err).NotTo(gomega.HaveOccurred())
22082213
}
22092214

@@ -2392,7 +2397,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
23922397
time.Sleep(2 * pollTimeout)
23932398
if guestCluster {
23942399
ginkgo.By("Check if csi pods are running fine after site failurein supervisor")
2395-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
2400+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
2401+
time.Duration(pollTimeout))
23962402
gomega.Expect(err).NotTo(gomega.HaveOccurred())
23972403
}
23982404

@@ -2572,7 +2578,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
25722578

25732579
ginkgo.By("Check if csi pods are running fine after witness failure")
25742580
if guestCluster {
2575-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
2581+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
2582+
time.Duration(pollTimeout))
25762583
gomega.Expect(err).NotTo(gomega.HaveOccurred())
25772584
}
25782585

@@ -4031,7 +4038,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
40314038
if guestCluster {
40324039
ginkgo.By("Check if csi pods are running fine after site failure in supervisor")
40334040
// Check if csi pods are running fine after site failure
4034-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
4041+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
4042+
time.Duration(pollTimeout))
40354043
gomega.Expect(err).NotTo(gomega.HaveOccurred())
40364044
}
40374045
// Check if csi pods are running fine after site failure
@@ -4951,7 +4959,8 @@ var _ = ginkgo.Describe("[vsan-stretch-vanilla] vsan stretched cluster tests", f
49514959

49524960
if guestCluster {
49534961
ginkgo.By("Check for nodes to be in Ready state in supervisor")
4954-
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, int(svcCsipods.Size()), time.Duration(pollTimeout))
4962+
err = fpod.WaitForPodsRunningReady(ctx, svcClient, csiNs, len(svcCsipods.Items),
4963+
time.Duration(pollTimeout))
49554964
gomega.Expect(err).NotTo(gomega.HaveOccurred())
49564965
}
49574966

0 commit comments

Comments
 (0)