Ignore "didn't find PVC associated with DataVolume" warning.
The VMI can be created before CDI creates a PVC, resulting in
this spurious warning.
@@ -1573,7 +1573,11 @@ func RunVMIAndExpectLaunchWithDataVolume(vmi *v1.VirtualMachineInstance, dv *cdi
By("Waiting until the DataVolume is ready")
Eventually(ThisDV(dv), timeout).Should(HaveSucceeded())
By("Waiting until the VirtualMachineInstance will start")
- WaitForSuccessfulVMIStartWithTimeout(obj, timeout)
+ ctx, cancel := context.WithCancel(context.Background())
+ defer cancel()
+ warningsIgnoreList := []string{"didn't find PVC associated with DataVolume"}
+ wp := WarningsPolicy{FailOnWarnings: true, WarningsIgnoreList: warningsIgnoreList}
+ _ = waitForVMIStart(ctx, obj, timeout, wp)
return obj
}
