Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-955

[2087981] PowerOnVM_Task is deprecated use PowerOnMultiVM_Task for DRS ClusterRecommendation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.8
    • None
    • Moderate
    • None
    • CLOUD Sprint 226
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Sometimes we see VMs fail to power on when the land on a host that does not have enough resources. The current power on does not retry or leverage DRS to power on the node on a suitable host.

      https://github.com/vmware/govmomi/issues/1026

      Our code is still making calls to PowerOnVM_Task which, according to the vsphere docs, is deprecated and we should use PowerOnMultiVM_Task instead.

      PowerOnVM_Task does not return a DRS ClusterRecommendation, no vmotion nor host power operations will be done as part of a DRS-facilitated power on. To have DRS consider such operations use PowerOnMultiVM_Task.

      https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.VirtualMachine.html#powerOn:
      As of vSphere API 5.1, use of this method with vCenter Server is deprecated; use PowerOnMultiVM_Task instead.

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

      How reproducible:
      Always

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:
      Sometimes powers on fails requiring manual intervention.

      Expected results:
      PowerOn should use DRS to ensure it's always successful.

      Additional info:

              dmoiseev Denis Moiseev (Inactive)
              dmoiseev Denis Moiseev (Inactive)
              Huali Liu Huali Liu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: