e2e: disable rbd-nbd tests by default

Because the rbd-nbd tests fail with minikube and the Podman driver,
disable the tests for the time being.

Updates: #3431
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-10-13 10:22:55 +02:00 committed by mergify[bot]
parent 8eaf1d790d
commit 386d3ddd6e
3 changed files with 56 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func init() {
flag.BoolVar(&deployNFS, "deploy-nfs", false, "deploy nfs csi driver") flag.BoolVar(&deployNFS, "deploy-nfs", false, "deploy nfs csi driver")
flag.BoolVar(&testCephFS, "test-cephfs", true, "test cephFS csi driver") flag.BoolVar(&testCephFS, "test-cephfs", true, "test cephFS csi driver")
flag.BoolVar(&testRBD, "test-rbd", true, "test rbd csi driver") flag.BoolVar(&testRBD, "test-rbd", true, "test rbd csi driver")
flag.BoolVar(&testNBD, "test-nbd", false, "test rbd csi driver with rbd-nbd mounter")
flag.BoolVar(&testNFS, "test-nfs", false, "test nfs csi driver") flag.BoolVar(&testNFS, "test-nfs", false, "test nfs csi driver")
flag.BoolVar(&helmTest, "helm-test", false, "tests running on deployment via helm") flag.BoolVar(&helmTest, "helm-test", false, "tests running on deployment via helm")
flag.BoolVar(&upgradeTesting, "upgrade-testing", false, "perform upgrade testing") flag.BoolVar(&upgradeTesting, "upgrade-testing", false, "perform upgrade testing")

View File

@ -1047,6 +1047,12 @@ var _ = Describe("RBD", func() {
}) })
By("create a PVC and bind it to an app using rbd-nbd mounter", func() { By("create a PVC and bind it to an app using rbd-nbd mounter", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
@ -1083,6 +1089,12 @@ var _ = Describe("RBD", func() {
}) })
By("Resize rbd-nbd PVC and check application directory size", func() { By("Resize rbd-nbd PVC and check application directory size", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
if util.CheckKernelSupport(kernelRelease, nbdResizeSupport) { if util.CheckKernelSupport(kernelRelease, nbdResizeSupport) {
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
@ -1290,6 +1302,12 @@ var _ = Describe("RBD", func() {
By("create PVC with journaling,fast-diff image-features and bind it to an app using rbd-nbd mounter", By("create PVC with journaling,fast-diff image-features and bind it to an app using rbd-nbd mounter",
func() { func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
if util.CheckKernelSupport(kernelRelease, fastDiffSupport) { if util.CheckKernelSupport(kernelRelease, fastDiffSupport) {
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
@ -1330,6 +1348,12 @@ var _ = Describe("RBD", func() {
// NOTE: RWX is restricted for FileSystem VolumeMode at ceph-csi, // NOTE: RWX is restricted for FileSystem VolumeMode at ceph-csi,
// see pull#261 for more details. // see pull#261 for more details.
By("Create RWX+Block Mode PVC and bind to multiple pods via deployment using rbd-nbd mounter", func() { By("Create RWX+Block Mode PVC and bind to multiple pods via deployment using rbd-nbd mounter", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
@ -1415,6 +1439,12 @@ var _ = Describe("RBD", func() {
}) })
By("Create ROX+FS Mode PVC and bind to multiple pods via deployment using rbd-nbd mounter", func() { By("Create ROX+FS Mode PVC and bind to multiple pods via deployment using rbd-nbd mounter", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
@ -1540,6 +1570,12 @@ var _ = Describe("RBD", func() {
}) })
By("Create ROX+Block Mode PVC and bind to multiple pods via deployment using rbd-nbd mounter", func() { By("Create ROX+Block Mode PVC and bind to multiple pods via deployment using rbd-nbd mounter", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
@ -1666,6 +1702,12 @@ var _ = Describe("RBD", func() {
}) })
By("perform IO on rbd-nbd volume after nodeplugin restart", func() { By("perform IO on rbd-nbd volume after nodeplugin restart", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
@ -1830,6 +1872,12 @@ var _ = Describe("RBD", func() {
}) })
By("create a PVC and bind it to an app using rbd-nbd mounter with encryption", func() { By("create a PVC and bind it to an app using rbd-nbd mounter with encryption", func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
@ -2199,6 +2247,12 @@ var _ = Describe("RBD", func() {
By( By(
"create a PVC and Bind it to an app with journaling/exclusive-lock image-features and rbd-nbd mounter", "create a PVC and Bind it to an app with journaling/exclusive-lock image-features and rbd-nbd mounter",
func() { func() {
if !testNBD {
e2elog.Logf("skipping NBD test")
return
}
err := deleteResource(rbdExamplePath + "storageclass.yaml") err := deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)

View File

@ -85,6 +85,7 @@ var (
deployNFS bool deployNFS bool
testCephFS bool testCephFS bool
testRBD bool testRBD bool
testNBD bool
testNFS bool testNFS bool
helmTest bool helmTest bool
upgradeTesting bool upgradeTesting bool