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

[2087981] PowerOnVM_Task is deprecated use PowerOnMultiVM_Task for DRS ClusterRecommendation

    XMLWordPrintable

Details

    • Moderate
    • False
    • Hide

      None

      Show
      None
    • N/A, covered in BZ2087981 (BZ writeup links to this bug as well)

    Description

      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:

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: