forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubevirt#5763 from nunnatsa/fix-bug-1945589
Prevent migration of VMIs that uses virtiofs
- Loading branch information
Showing
4 changed files
with
54 additions
and
21 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
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 |
---|---|---|
|
@@ -387,12 +387,16 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][leve | |
By("Checking that the VirtualMachineInstance console has expected output") | ||
Expect(console.LoginToAlpine(vmi)).To(Succeed()) | ||
|
||
gotExpectedCondition := false | ||
for _, c := range vmi.Status.Conditions { | ||
if c.Type == v1.VirtualMachineInstanceIsMigratable { | ||
Expect(c.Status).To(Equal(k8sv1.ConditionFalse)) | ||
gotExpectedCondition = true | ||
} | ||
} | ||
|
||
Expect(gotExpectedCondition).Should(BeTrue()) | ||
|
||
// execute a migration, wait for finalized state | ||
migration := tests.NewRandomMigration(vmi.Name, vmi.Namespace) | ||
|
||
|
@@ -889,11 +893,14 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][leve | |
By("Checking that the VirtualMachineInstance console has expected output") | ||
Expect(console.LoginToAlpine(vmi)).To(Succeed()) | ||
|
||
gotExpectedCondition := false | ||
for _, c := range vmi.Status.Conditions { | ||
if c.Type == v1.VirtualMachineInstanceIsMigratable { | ||
Expect(c.Status).To(Equal(k8sv1.ConditionFalse)) | ||
gotExpectedCondition = true | ||
} | ||
} | ||
Expect(gotExpectedCondition).Should(BeTrue()) | ||
|
||
// execute a migration, wait for finalized state | ||
migration := tests.NewRandomMigration(vmi.Name, vmi.Namespace) | ||
|
@@ -1698,17 +1705,20 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][leve | |
// Start the VirtualMachineInstance with the PVC attached | ||
vmi := tests.NewRandomVMIWithPVC(pvName) | ||
tests.AddUserData(vmi, "cloud-init", "#!/bin/bash\necho 'hello'\n") | ||
vmi.Spec.Hostname = fmt.Sprintf("%s", cd.ContainerDiskCirros) | ||
vmi.Spec.Hostname = string(cd.ContainerDiskCirros) | ||
vmi = runVMIAndExpectLaunch(vmi, 180) | ||
|
||
By("Checking that the VirtualMachineInstance console has expected output") | ||
Expect(libnet.WithIPv6(console.LoginToCirros)(vmi)).To(Succeed()) | ||
|
||
gotExpectedCondition := false | ||
for _, c := range vmi.Status.Conditions { | ||
if c.Type == v1.VirtualMachineInstanceIsMigratable { | ||
Expect(c.Status).To(Equal(k8sv1.ConditionFalse)) | ||
gotExpectedCondition = true | ||
} | ||
} | ||
Expect(gotExpectedCondition).Should(BeTrue()) | ||
|
||
// execute a migration, wait for finalized state | ||
migration := tests.NewRandomMigration(vmi.Name, vmi.Namespace) | ||
|