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

[2143039] Some liveMigrationConfig options cannot be used for cluster-wide setting

XMLWordPrintable

    • CNV I/U Operators Sprint 230, CNV I/U Operators Sprint 231
    • None

      Description of problem:
      Following the doc method to adjust cluster-wide migration policies:
      https://docs.openshift.com/container-platform/4.11/virt/live_migration/virt-live-migration-limits.html

      oc edit hco -n openshift-cnv kubevirt-hyperconverged

      It is not possible to add:
      allowAutoConverge: "true"
      or
      allowPostCopy: "true"

      I can adjust existing params and/or add a bandwidthPerMigration value, but when I add either of the "allow" options it just saves and they disappear.

      Version-Release number of selected component (if applicable):
      OCP 4.11.7
      Virt 4.11.1-91

      How reproducible:
      Each time

      Steps to Reproduce:
      1. oc edit hco -n openshift-cnv kubevirt-hyperconverged
      Default values:
      liveMigrationConfig:
      completionTimeoutPerGiB: 800
      parallelMigrationsPerCluster: 5
      parallelOutboundMigrationsPerNode: 2
      progressTimeout: 150
      2. Add to this section and save:
      allowAutoConverge: "true"
      3. oc edit again, that param is gone

      Actual results:
      Changes are removed.

      Expected results:
      Users can set cluster-wide policies that are not in the default list.

      Additional info:
      The cluster-wide policy cannot be set for those params, however setting a migration policy for a group of VMs does work properly, ex:

      apiVersion: migrations.kubevirt.io/v1alpha1
      kind: MigrationPolicy
      metadata:
      name: my-awesome-policy
      spec:

      1. Migration Configuration
        allowAutoConverge: true
        completionTimeoutPerGiB: 900
        allowPostCopy: false
      2. Matching to VMIs
        selectors:
        virtualMachineInstanceSelector:
        matchLabels:
        app: db

      Once the VMI migrated it shows those values are used as expected:
      migrationConfiguration:
      allowAutoConverge: true
      allowPostCopy: false
      bandwidthPerMigration: "0"
      completionTimeoutPerGiB: 900

              stirabos Simone Tiraboschi
              jhopper@redhat.com Jenifer Abrams
              Natalie Gavrielov Natalie Gavrielov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: