@@ -1667,9 +1667,10 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
1667
1667
8. Ensure the pvc with source as snapshot creates successfully and is bound
1668
1668
9. Cleanup the snapshot, pvcs and ns
1669
1669
*/
1670
- ginkgo .It ("[block-vanilla-snapshot][cf-vanilla-block][tkg-snapshot][ef-vks-snapshot] Delete the " +
1671
- "namespace hosting the pvcs and volume-snapshots and recover the data using " +
1672
- "snapshot-content" , ginkgo .Label (p0 , block , vanilla , snapshot , tkg , stable , vc80 ), func () {
1670
+ ginkgo .It ("[block-vanilla-snapshot][cf-vanilla-block][tkg-snapshot]" +
1671
+ "[ef-vks-snapshot-f] Delete the namespace hosting the pvcs and volume-snapshots " +
1672
+ "and recover the data using snapshot-content" , ginkgo .Label (p0 , block , vanilla ,
1673
+ snapshot , tkg , stable , vc80 ), func () {
1673
1674
1674
1675
ctx , cancel := context .WithCancel (context .Background ())
1675
1676
defer cancel ()
@@ -2277,8 +2278,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
2277
2278
10. Verify if the new pod attaches to the PV created in step-8
2278
2279
11. Cleanup the sts and the snapshot + pv that was left behind in step-7
2279
2280
*/
2280
- ginkgo .It ("[ef-vanilla-block][ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot]" +
2281
- "[ef-vks-snapshot] Snapshot workflow for statefulsets" , ginkgo .Label (p0 , block , vanilla , snapshot , wcp ,
2281
+ ginkgo .It ("[ef-vanilla-block][ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot]" +
2282
+ "[supervisor-snapshot][ef-vks-snapshot-f] Snapshot workflow for " +
2283
+ "statefulsets" , ginkgo .Label (p0 , block , vanilla , snapshot , wcp ,
2282
2284
tkg , vc80 ), func () {
2283
2285
ctx , cancel := context .WithCancel (context .Background ())
2284
2286
defer cancel ()
@@ -4893,9 +4895,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4893
4895
2. Create Snapshot class and take a snapshot of the volume
4894
4896
3. Cleanup of snapshot, pvc and sc
4895
4897
*/
4896
- ginkgo .It ("[pq-wcp-snpt][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Volume " +
4897
- "provision and snapshot creation/restore on VVOL Datastore" , ginkgo . Label ( p0 , block , vanilla , snapshot ,
4898
- tkg , vc80 ), func () {
4898
+ ginkgo .It ("[pq-wcp-snpt][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot]" +
4899
+ "[ef-vks-snapshot-f] Volume provision and snapshot creation/restore on VVOL " +
4900
+ "Datastore" , ginkgo . Label ( p0 , block , vanilla , snapshot , tkg , vc80 ), func () {
4899
4901
ctx , cancel := context .WithCancel (context .Background ())
4900
4902
defer cancel ()
4901
4903
invokeSnapshotOperationsOnSharedDatastore (client , ctx , namespace , scParameters , snapc , "VVOL" ,
@@ -4910,9 +4912,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4910
4912
3. Cleanup of snapshot, pvc and sc
4911
4913
*/
4912
4914
4913
- ginkgo .It ("[ef-vanilla-block][pq-wcp-snpt][block-vanilla-snapshot][tkg-snapshot] [supervisor-snapshot] " +
4914
- "[ef-vks-snapshot] Volume provision and snapshot creation/restore on VMFS Datastore" , ginkgo . Label ( p0 ,
4915
- block , vanilla , snapshot , tkg , vc80 ), func () {
4915
+ ginkgo .It ("[ef-vanilla-block][pq-wcp-snpt][block-vanilla-snapshot][tkg-snapshot]" +
4916
+ "[supervisor-snapshot][ ef-vks-snapshot-f ] Volume provision and snapshot creation/restore " +
4917
+ "on VMFS Datastore" , ginkgo . Label ( p0 , block , vanilla , snapshot , tkg , vc80 ), func () {
4916
4918
ctx , cancel := context .WithCancel (context .Background ())
4917
4919
defer cancel ()
4918
4920
invokeSnapshotOperationsOnSharedDatastore (client , ctx , namespace , scParameters , snapc , "VMFS" , pandoraSyncWaitTime )
@@ -4925,8 +4927,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4925
4927
3. Cleanup of snapshot, pvc and sc
4926
4928
*/
4927
4929
ginkgo .It ("[ef-vanilla-block][ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot] [supervisor-snapshot]" +
4928
- "[ef-vks-snapshot] Volume provision and snapshot creation/restore on NFS Datastore" , ginkgo . Label ( p0 ,
4929
- block , vanilla , snapshot , tkg , vc80 ), func () {
4930
+ "[ef-vks-snapshot-f ] Volume provision and snapshot creation/restore on " +
4931
+ "NFS Datastore" , ginkgo . Label ( p0 , block , vanilla , snapshot , tkg , vc80 ), func () {
4930
4932
ctx , cancel := context .WithCancel (context .Background ())
4931
4933
defer cancel ()
4932
4934
invokeSnapshotOperationsOnSharedDatastore (client , ctx , namespace , scParameters , snapc , "NFS" , pandoraSyncWaitTime )
@@ -4938,8 +4940,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4938
4940
2. Create Snapshot class and take a snapshot of the volume
4939
4941
3. Cleanup of snapshot, pvc and sc
4940
4942
*/
4941
- ginkgo .It ("[pq-wcp-snpt] [tkg-snapshot][ef-vks-snapshot][supervisor-snapshot] Volume provision and snapshot " +
4942
- "creation/restore on VSAN2 Datastore" , ginkgo .Label (p0 , snapshot , tkg , newTest , vc80 ), func () {
4943
+ ginkgo .It ("[pq-wcp-snpt] [tkg-snapshot][ef-vks-snapshot-f][supervisor-snapshot] Volume provision and " +
4944
+ "snapshot creation/restore on VSAN2 Datastore" , ginkgo .Label (p0 , snapshot , tkg ,
4945
+ newTest , vc80 ), func () {
4943
4946
ctx , cancel := context .WithCancel (context .Background ())
4944
4947
defer cancel ()
4945
4948
invokeSnapshotOperationsOnSharedDatastore (client , ctx , namespace , scParameters , snapc , "VSAN" , pandoraSyncWaitTime )
@@ -5224,8 +5227,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5224
5227
10. Run cleanup: Delete snapshots, restored-volumes, pods
5225
5228
*/
5226
5229
5227
- ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Volume restore using dynamic and pre-provisioned snapshot on " +
5228
- "guest cluster" , ginkgo .Label (p0 , snapshot , tkg , flaky , vc80 ), func () {
5230
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot-f ] Volume restore using dynamic and pre-provisioned " +
5231
+ "snapshot on guest cluster" , ginkgo .Label (p0 , snapshot , tkg , flaky , vc80 ), func () {
5229
5232
5230
5233
ctx , cancel := context .WithCancel (context .Background ())
5231
5234
defer cancel ()
@@ -5622,7 +5625,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5622
5625
staticSnapshotContent .Name , metav1.GetOptions {})
5623
5626
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
5624
5627
framework .Logf ("Snapshotcontent name is %s" , staticSnapshotContent .ObjectMeta .Name )
5625
- if ! * staticSnapshotContent .Status .ReadyToUse {
5628
+ staticSnapshotContent , err = waitForVolumeSnapshotContentReadyToUse (* snapc , ctx , staticSnapshotContent .Name )
5629
+ if err != nil && ! * staticSnapshotContent .Status .ReadyToUse {
5626
5630
framework .Logf ("VolumeSnapshotContent is not ready to use" )
5627
5631
}
5628
5632
@@ -5762,7 +5766,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5762
5766
_ , err := e2eVSphere .getVMByUUID (ctx , vmUUID )
5763
5767
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
5764
5768
}
5765
- isDiskAttached , err := e2eVSphere .isVolumeAttachedToVM (client , pvs [ 0 ]. Spec . CSI . VolumeHandle , vmUUID )
5769
+ isDiskAttached , err := e2eVSphere .isVolumeAttachedToVM (client , volHandle , vmUUID )
5766
5770
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
5767
5771
gomega .Expect (isDiskAttached ).To (gomega .BeTrue (), "Volume is not attached to the node" )
5768
5772
@@ -6317,7 +6321,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6317
6321
err = fpv .WaitForPersistentVolumeClaimPhase (ctx , v1 .ClaimBound ,
6318
6322
client , pvclaim .Namespace , pvclaim .Name , framework .Poll , framework .ClaimProvisionTimeout )
6319
6323
gomega .Expect (err ).To (gomega .HaveOccurred ())
6320
- expectedErrMsg := "no datastores found to create file volume, vsan file service may be disabled "
6324
+ expectedErrMsg := "file services are disabled on supervisor cluster "
6321
6325
err = waitForEvent (ctx , client , namespace , expectedErrMsg , pvclaim .Name )
6322
6326
gomega .Expect (err ).NotTo (gomega .HaveOccurred (), fmt .Sprintf ("Expected error : %q" , expectedErrMsg ))
6323
6327
})
@@ -6394,7 +6398,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6394
6398
_ , err := e2eVSphere .getVMByUUID (ctx , vmUUID )
6395
6399
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
6396
6400
}
6397
- isDiskAttached , err := e2eVSphere .isVolumeAttachedToVM (client , pvs1 [ 0 ]. Spec . CSI . VolumeHandle , vmUUID )
6401
+ isDiskAttached , err := e2eVSphere .isVolumeAttachedToVM (client , volHandle1 , vmUUID )
6398
6402
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
6399
6403
gomega .Expect (isDiskAttached ).To (gomega .BeTrue (), "Volume is not attached to the node" )
6400
6404
@@ -6563,7 +6567,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6563
6567
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
6564
6568
}
6565
6569
6566
- isDiskAttached , err := e2eVSphere .isVolumeAttachedToVM (client , pvs [ 0 ]. Spec . CSI . VolumeHandle , vmUUID )
6570
+ isDiskAttached , err := e2eVSphere .isVolumeAttachedToVM (client , volHandle , vmUUID )
6567
6571
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
6568
6572
gomega .Expect (isDiskAttached ).To (gomega .BeTrue (), "Volume is not attached to the node" )
6569
6573
defer func () {
@@ -6643,8 +6647,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6643
6647
9. Delete all the above created PV, PVC and resource quota.
6644
6648
*/
6645
6649
6646
- ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Provisioning of static volume on guest cluster using FCD with snapshot " +
6647
- "creation" , ginkgo .Label (p0 , snapshot , tkg , stable , vc90 ), func () {
6650
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot-f ] Provisioning of static volume on guest cluster using " +
6651
+ "FCD with snapshot creation" , ginkgo .Label (p0 , snapshot , tkg , stable , vc90 ), func () {
6648
6652
6649
6653
var err error
6650
6654
ctx , cancel := context .WithCancel (context .Background ())
0 commit comments