Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-2092

Can't migrate VM due to Running and RunStrategy are mutually exclusive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.8.0
    • None
    • Controller
    • 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
      ...

              rh-ee-ehazan Elad Hazan
              anosek@redhat.com Ales Nosek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: