forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request kubevirt#3314 from maya-r/loopdev"
This reverts commit 5c0e98b, reversing changes made to 7b7e02d. The `losetup` is not namespaced, and as such is creating a new loop device in the host for every time the `disks-images-provider` container is created. As a result, our CI is doomed to only work 100 times on each host (the number of pre-provisioned devices). Once the 'next available' loop device is not a pre-provisioned one, the `disks-images-provider` container will fail to reach a `Running` state, which will cause the functest make target to fail after 5 minutes (default timeout of the test script). Signed-off-by: Miguel Duarte Barroso <[email protected]>
- Loading branch information
Showing
6 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,8 @@ var _ = Describe("[rfe_id:899][crit:medium][vendor:[email protected]][level:comp | |
}) | ||
|
||
It("[test_id:782]Should be the fs layout the same for a pod and vmi", func() { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
expectedOutput := "value1value2value3" | ||
|
||
By("Running VMI") | ||
|
@@ -162,6 +164,7 @@ var _ = Describe("[rfe_id:899][crit:medium][vendor:[email protected]][level:comp | |
}) | ||
|
||
It("[test_id:779]Should be the fs layout the same for a pod and vmi", func() { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
expectedOutput := "adminredhat" | ||
|
||
|
@@ -240,6 +243,8 @@ var _ = Describe("[rfe_id:899][crit:medium][vendor:[email protected]][level:comp | |
serviceAccountPath := config.ServiceAccountSourceDir | ||
|
||
It("[test_id:998]Should be the namespace and token the same for a pod and vmi", func() { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
By("Running VMI") | ||
vmi := tests.NewRandomVMIWithServiceAccount("default") | ||
tests.RunVMIAndExpectLaunch(vmi, 90) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,11 +104,12 @@ var _ = Describe("Storage", func() { | |
}) | ||
Context("[rfe_id:3106][crit:medium][vendor:[email protected]][level:component]with Alpine PVC", func() { | ||
table.DescribeTable("should be successfully started", func(newVMI VMICreationFunc, storageEngine string) { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
var ignoreWarnings bool | ||
var pvName string | ||
// Start the VirtualMachineInstance with the PVC attached | ||
if storageEngine == "nfs" { | ||
tests.SkipNFSTestIfRunnigOnKindInfra() | ||
pvName = initNFS() | ||
ignoreWarnings = true | ||
} else { | ||
|
@@ -128,6 +129,8 @@ var _ = Describe("Storage", func() { | |
) | ||
|
||
table.DescribeTable("should be successfully started and stopped multiple times", func(newVMI VMICreationFunc) { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
vmi = newVMI(tests.DiskAlpineHostPath) | ||
|
||
num := 3 | ||
|
@@ -251,11 +254,11 @@ var _ = Describe("Storage", func() { | |
|
||
// The following case is mostly similar to the alpine PVC test above, except using different VirtualMachineInstance. | ||
table.DescribeTable("should be successfully started", func(newVMI VMICreationFunc, storageEngine string) { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
var ignoreWarnings bool | ||
var pvName string | ||
// Start the VirtualMachineInstance with the PVC attached | ||
if storageEngine == "nfs" { | ||
tests.SkipNFSTestIfRunnigOnKindInfra() | ||
pvName = initNFS() | ||
ignoreWarnings = true | ||
} else { | ||
|
@@ -275,6 +278,8 @@ var _ = Describe("Storage", func() { | |
|
||
// Not a candidate for testing on NFS because the VMI is restarted and NFS PVC can't be re-used | ||
It("[test_id:3137]should not persist data", func() { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
vmi = tests.NewRandomVMIWithEphemeralPVC(tests.DiskAlpineHostPath) | ||
|
||
By("Starting the VirtualMachineInstance") | ||
|
@@ -340,6 +345,8 @@ var _ = Describe("Storage", func() { | |
|
||
// Not a candidate for testing on NFS because the VMI is restarted and NFS PVC can't be re-used | ||
It("[test_id:3138]should start vmi multiple times", func() { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
|
||
vmi = tests.NewRandomVMIWithPVC(tests.DiskAlpineHostPath) | ||
tests.AddPVCDisk(vmi, "disk1", "virtio", tests.DiskCustomHostPath) | ||
|
||
|
@@ -662,6 +669,7 @@ var _ = Describe("Storage", func() { | |
|
||
// Not a candidate for NFS because local volumes are used in test | ||
It("[test_id:1015] should be successfully started", func() { | ||
tests.SkipPVCTestIfRunnigOnKindInfra() | ||
// Start the VirtualMachineInstance with the PVC attached | ||
vmi = tests.NewRandomVMIWithPVC(tests.BlockDiskForTest) | ||
// Without userdata the hostname isn't set correctly and the login expecter fails... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters