Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48024

vSphere plugin waits forever attempting to power-off a VM that is already powered-off

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: vsphere-cloud-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.73.2, vSphere plugin 2.16
    • Similar Issues:

      Description

      Using the pipeline syntax for a vsphere build step to power-off a VM, when the VM is already powered-off, the plugin just waits forever never timing out.  It should check the power state first before trying to power off and only power-off if the VM is on or suspended otherwise skip.

        Attachments

          Activity

          Hide
          pjdarton pjdarton added a comment -

          According to the code, it's checking and only telling vSphere to turn the VM off if vSphere says the VM is powered on (or suspended, if the "even if suspended" flag is set). Even then, it only waits until vSphere says it's powered-off.
          i.e. "that shouldn't happen".

          Can you verify that this is (still) an issue with the current version of the plugin?
          If so, can you provide a repro case (e.g. a pipeline script) that demonstrates the issue?

          Show
          pjdarton pjdarton added a comment - According to the code, it's checking and only telling vSphere to turn the VM off if vSphere says the VM is powered on (or suspended, if the "even if suspended" flag is set). Even then, it only waits until vSphere says it's powered-off. i.e. "that shouldn't happen". Can you verify that this is (still) an issue with the current version of the plugin? If so, can you provide a repro case (e.g. a pipeline script) that demonstrates the issue?

            People

            • Assignee:
              Unassigned
              Reporter:
              dfgraham Darren Graham
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: