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: Done-Errata
    • Icon: Major Major
    • 2.8.1
    • None
    • Controller
    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      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
              Chenli Hu Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: