-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
2
-
False
-
None
-
True
-
-
Using OpenShift 4.17.11 and MTV 2.7.9. Tried to migrate a VM from OpenShift cluster. The migration failed with the error message (see also the attached screenshot):
admission webhook "virtualmachine-validator.kubevirt.io" denied the request: Running and RunStrategy are mutually exclusive
To work around the issue, I edited the VM object by replacing the runStrategy field with the running field.
The original VM object that failed to migrate:
apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: ... name: example namespace: kubevirt-example ... spec: runStrategy: Always ...
The updated VM object that migrated successfully:
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
...
name: example
namespace: kubevirt-example
...
spec:
running: true
...