From da111de65d83847d8e3a928f28217168faa10d97 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Thu, 25 Jul 2019 11:52:19 +0530 Subject: [PATCH] Revert "Temperory workaround for the regression to pass" The rook commit e52efdb8d4ed98129708d49cbbbbbcb083b02d6c fixes the issue. Hence reverting this patch. --- e2e/cephfs.go | 1 - e2e/utils.go | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/e2e/cephfs.go b/e2e/cephfs.go index de16ea4d0..79a5bc4c6 100644 --- a/e2e/cephfs.go +++ b/e2e/cephfs.go @@ -39,7 +39,6 @@ var _ = Describe("cephfs", func() { deployCephfsPlugin() createCephfsStorageClass(f.ClientSet, f) createCephfsSecret(f.ClientSet, f) - GivePermToCephfsRoot(f) }) AfterEach(func() { diff --git a/e2e/utils.go b/e2e/utils.go index 0d63a7e35..115f40c28 100644 --- a/e2e/utils.go +++ b/e2e/utils.go @@ -746,20 +746,6 @@ func listSnapshots(f *framework.Framework, pool, imageName string) ([]snapInfo, return snapInfos, err } -func GivePermToCephfsRoot(f *framework.Framework) { - opt := metav1.ListOptions{ - LabelSelector: "app=rook-ceph-tools", - } - out := execCommandInPod(f, "mkdir /mnt/cephfs", rookNS, &opt) - e2elog.Logf("Creating temperory mount point in tools pod %s", out) - - out = execCommandInPod(f, "ceph-fuse /mnt/cephfs >/dev/null 2>&1", rookNS, &opt) - e2elog.Logf("Mounting ceph file system at /mnt/cephfs %s", out) - - out = execCommandInPod(f, "chmod 777 /mnt/cephfs/", rookNS, &opt) - e2elog.Logf("Setting chmod 777 on the cepfs root %s", out) -} - func checkDataPersist(pvcPath, appPath string, f *framework.Framework) error { data := "checking data persist" pvc, err := loadPVC(pvcPath)