@@ -23,7 +23,6 @@ import (
23
23
24
24
. "github.com/onsi/ginkgo"
25
25
csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util"
26
- "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner/plugin"
27
26
"github.com/oracle/oci-cloud-controller-manager/test/e2e/framework"
28
27
)
29
28
@@ -392,7 +391,8 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
392
391
pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
393
392
394
393
f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
395
- err := pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
394
+ err := pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
395
+ if err != nil {
396
396
framework .Failf ("Error deleting pod: %v" , err )
397
397
}
398
398
_ = f .DeleteStorageClass (scName )
@@ -407,7 +407,8 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
407
407
pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
408
408
409
409
f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
410
- err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
410
+ err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
411
+ if err != nil {
411
412
framework .Failf ("Error deleting pod: %v" , err )
412
413
}
413
414
_ = f .DeleteStorageClass (scName )
@@ -422,14 +423,15 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
422
423
pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
423
424
424
425
f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
425
- err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
426
+ err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
427
+ if err != nil {
426
428
framework .Failf ("Error deleting pod: %v" , err )
427
429
}
428
430
_ = f .DeleteStorageClass (scName )
429
431
By ("Completed test: Create CSI block volume with UHP Performance Level and xfs file system" )
430
432
431
433
By ("Running test: Static Provisioning CSI UHP" )
432
- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-4" , "blockvolume.csi.oraclecloud.com" ,
434
+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-4" , "blockvolume.csi.oraclecloud.com" ,
433
435
map [string ]string {framework .AttachmentType : framework .AttachmentTypeParavirtualized , csi_util .VpusPerGB : "30" },
434
436
pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
435
437
@@ -439,15 +441,16 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
439
441
pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
440
442
441
443
pvcJig .CheckVolumeCapacity ("50Gi" , pvc .Name , f .Namespace .Name )
442
- err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
444
+ err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
445
+ if err != nil {
443
446
framework .Failf ("Error deleting pod: %v" , err )
444
447
}
445
448
f .VolumeIds = append (f .VolumeIds , volumeId )
446
449
_ = f .DeleteStorageClass (scName )
447
450
By ("Completed test: Static Provisioning CSI UHP" )
448
451
449
452
By ("Running test: Basic Pod Delete UHP" )
450
- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-5" , "blockvolume.csi.oraclecloud.com" ,
453
+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-5" , "blockvolume.csi.oraclecloud.com" ,
451
454
map [string ]string {framework .AttachmentType : framework .AttachmentTypeISCSI , csi_util .VpusPerGB : "30" },
452
455
pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
453
456
pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
@@ -476,7 +479,7 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
476
479
framework .AttachmentType : framework .AttachmentTypeISCSI ,
477
480
csi_util .VpusPerGB : "30" ,
478
481
}
479
- scName = f .CreateStorageClassOrFail (framework .ClassOCIKMS + "-1" , "blockvolume.csi.oraclecloud.com" , scParameter , pvcJig .Labels , "WaitForFirstConsumer" , false , "Delete" , nil )
482
+ scName = f .CreateStorageClassOrFail (framework .ClassOCIKMS + "-1" , "blockvolume.csi.oraclecloud.com" , scParameter , pvcJig .Labels , "WaitForFirstConsumer" , false , "Delete" , nil )
480
483
pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
481
484
podName = pvcJig .NewPodForCSI ("app1" , f .Namespace .Name , pvc .Name , setupF .AdLabel )
482
485
pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
@@ -501,7 +504,7 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
501
504
By ("Running test: Expand PVC VolumeSize from 50Gi to 100Gi and asserts size, file existence and file corruptions for iSCSI UHP volume" )
502
505
pvcJig .Name = "csi-uhp-pvc-expand-to-100gi"
503
506
var size = "100Gi"
504
- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-6" , "blockvolume.csi.oraclecloud.com" ,
507
+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-6" , "blockvolume.csi.oraclecloud.com" ,
505
508
map [string ]string {framework .AttachmentType : framework .AttachmentTypeISCSI , csi_util .VpusPerGB : "30" },
506
509
pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
507
510
pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
@@ -519,7 +522,7 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
519
522
By ("Completed test: Expand PVC VolumeSize from 50Gi to 100Gi and asserts size, file existence and file corruptions for iSCSI UHP volume" )
520
523
521
524
By ("Running test: Expand PVC VolumeSize from 50Gi to 100Gi and asserts size, file existence and file corruptions for Paravirtualized UHP volume" )
522
- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-7" , "blockvolume.csi.oraclecloud.com" ,
525
+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-7" , "blockvolume.csi.oraclecloud.com" ,
523
526
map [string ]string {framework .AttachmentType : framework .AttachmentTypeParavirtualized , csi_util .VpusPerGB : "30" },
524
527
pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
525
528
pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
@@ -751,8 +754,8 @@ func testTwoPVCSetup(f *framework.CloudProviderFramework, storageclass1params ma
751
754
nodeHostname := pvcJig .GetNodeHostnameFromPod (podName , f .Namespace .Name )
752
755
753
756
nodeLabels := map [string ]string {
754
- plugin . LabelZoneFailureDomain : setupF .AdLabel ,
755
- framework .NodeHostnameLabel : nodeHostname ,
757
+ v1 . LabelTopologyZone : setupF .AdLabel ,
758
+ framework .NodeHostnameLabel : nodeHostname ,
756
759
}
757
760
758
761
lowPerfScName := f .CreateStorageClassOrFail ("storage-class-two" , "blockvolume.csi.oraclecloud.com" ,
@@ -761,7 +764,6 @@ func testTwoPVCSetup(f *framework.CloudProviderFramework, storageclass1params ma
761
764
pvcTwo := pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , lowPerfScName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
762
765
podName2 := pvcJig .NewPodWithLabels ("pvc-two-app" , f .Namespace .Name , pvcTwo .Name , nodeLabels )
763
766
764
-
765
767
pvcJig .DeleteAndAwaitPodOrFail (f .Namespace .Name , podName )
766
768
pvcJig .DeleteAndAwaitPodOrFail (f .Namespace .Name , podName2 )
767
769
f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
0 commit comments