Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1139

Azure: suspending a node also deallocates it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.2
    • 2.0.0
    • jclouds-labs

    Description

      (Note that this is about the "classic" azurecompute provider, not about azurecompute-arm.)

      The AzureComputeServiceAdapter.suspend calls the VirtualMachineApi.shutdown method with a parameter of StoppedDeallocated. Per https://msdn.microsoft.com/en-us/library/jj157195, this parameter makes Azure release all the resources used by the VM. This causes the suspend operation to take a lot of time and any other following resume will also take a lot of time.

      I think there should be an option that would cause AzureComputeServiceAdapter.suspend to call the VirtualMachineApi.shutdown method with a parameter of Stopped. That way, suspending and resuming are much faster.

      Tearing down the VM entirely (i.e. destroyNode) would still always use StoppedDeallocated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ladicek Ladislav Thon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: