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

Documentation on MigrationPolicy selectors is incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • CNV v4.15.0
    • CNV Documentation
    • None
    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Migrate
    • No

      Description of problem:

      The docs imply that adding a label to a VM and then using that in the MigrationPolicy selector will make the policy apply to the VM. It does not.
      
      The code looks at VMI label to apply the policy, and the VMI label is not copied over from the VM label, it it copied over from the VM .spec.template.metadata.labels.
      
      https://docs.openshift.com/container-platform/4.15/virt/live_migration/virt-configuring-live-migration.html#live-migration-policies

      Version-Release number of selected component (if applicable):

      All

      Please improve the documentation to reflect that its a VMI label, and add an example or link some other part of the Docs on how to set such labels. The way its stands its almost impossible to get the feature working correctly.

              jherrman@redhat.com Jiří Herrmann
              rhn-support-gveitmic Germano Veit Michel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: