Created attachment 1735431 [details] migrating pending if VMI is not running Description of problem: When migrating a VM which is not running: - From cli, it throws an error: $ virtctl migrate vm-example Error migrating VirtualMachine Operation cannot be fulfilled on virtualmachine.kubevirt.io "vm-example": VM is not running - From UI, the migration action is enabled and migrate the vm goes to pending state. Version-Release number of selected component (if applicable): master How reproducible: 100% Steps to Reproduce: 1. Create a VM which can be started but not be able to be scheduled. 2. Migrate the VM from CLI. 3. Migrate the VM on UI. Actual results: Expected results: Either disable migrate when VM is not running or throws the error like the cli do. Additional info:
Created attachment 1735432 [details] vm yaml
verified on 4.7.0-0.nightly-2020-12-13-202314, migration is not available when VMI is not running.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633