Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-39418

MigrationPolicy matches on VMI labels, not VM labels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.16.0
    • None
    • CNV User Interface
    • None
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • ---
    • ---
    • No

      In the console, when using the Form to configure a Migration Policy is says:

      VirtualMachine labels
      

      But...

      a) The code matches on VMI labels, not VM labels https://github.com/kubevirt/kubevirt/blob/e10c1d9979fd590294c2f81b2230f41d1f7f6e2f/pkg/virt-controller/watch/migrationpolicy.go#L49

      b) VM labels are not copied to VMI labels once the VM starts. Its the stuff under .spec.template.metadata.labels that is carried over.

      This makes it very confusing for a customer to use.

            hstastna@redhat.com Hilda Stastna (Inactive)
            rhn-support-gveitmic Germano Veit Michel
            Guohua Ouyang Guohua Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: