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

[2182973] [Doc] "matchLabels" should be removed from MigrationPolicy example YAML

XMLWordPrintable

    • Medium
    • None

      Document URL:
      https://docs.openshift.com/container-platform/4.12/virt/live_migration/virt-configuring-live-migration-policies.html

      Section Number and Name:
      Configuring a live migration policy from the command line

      Describe the issue:
      Create a MigrationPolicy using the example YAML on CNV 4.12/4.13 cluster, I get the following error:

      The MigrationPolicy "my-awesome-policy" is invalid: spec.selectors.namespaceSelector.matchLabels: Invalid value: "object": spec.selectors.namespaceSelector.matchLabels in body must be of type string: "object"

      Suggestions for improvement:
      The YAML file works if "matchLabels" is removed.

      spec:
      <----snip---->

      1. Matching to VMs
        selectors:
        namespaceSelector:
        kubernetes.io/metadata.name: "test"
        <----snip---->

      Additional information:
      https://bugzilla.redhat.com/show_bug.cgi?id=2117319#
      Although it's not a bug, the document should be updated.

              apinnick@redhat.com Avital Pinnick
              jira-bugzilla-migration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: