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

Cannot provision vm because of 'specify OS disk size' issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: _unsorted
    • Labels:
      None
    • Environment:
      Jenkins 2.176.2
    • Similar Issues:

      Description

      Failure creating provisioned agent 'win201-2a84f12'
      com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment Failed: Microsoft.Compute/virtualMachines:win201-2a84f12 - BadRequest - {error={code=BadRequest, message=Could not find member 'diskSizeGB' on object of type 'OSDisk'. Path 'properties.storageProfile.osDisk.diskSizeGB', line 1, position 670., target=vm.properties.storageProfile.osDisk.diskSizeGB}}
      at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:37)
      at com.microsoft.azure.vmagent.AzureVMCloud.createProvisionedAgent(AzureVMCloud.java:572)
      at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:818)
      at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:796)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:834)

        Attachments

          Activity

          Hide
          olblak Olivier Vernin added a comment -

          If we keep the default value for 'OS disk size in GB (Optional)' which is 0, then provisionning work as expected

          Show
          olblak Olivier Vernin added a comment - If we keep the default value for 'OS disk size in GB (Optional)' which is 0, then provisionning work as expected
          Hide
          jieshe Jie Shen added a comment -

          Different image configuration need different different disk size setting. Need more investigation on how to set os disk size for this case.

          Show
          jieshe Jie Shen added a comment - Different image configuration need different different disk size setting. Need more investigation on how to set os disk size for this case.
          Hide
          rtyler R. Tyler Croy added a comment -

          Just to make sure this detail isn't lost. We did not see any issues here until we tried the "Pool" retention strategy (in effect, 0 size disk, with pool retention). We have reverted our configuration to a Idle retention strategy with the default "0" size disk.

          Show
          rtyler R. Tyler Croy added a comment - Just to make sure this detail isn't lost. We did not see any issues here until we tried the "Pool" retention strategy (in effect, 0 size disk, with pool retention). We have reverted our configuration to a Idle retention strategy with the default "0" size disk.
          Hide
          jieshe Jie Shen added a comment -

          Instead of the retention strategy, I think this error is caused by the disks type setting. It seems that only Managed disk could support customized OS disk size.

          Show
          jieshe Jie Shen added a comment - Instead of the retention strategy, I think this error is caused by the disks type setting. It seems that only Managed disk could support customized OS disk size.
          Hide
          timja Tim Jacomb added a comment -

          All issues have been transferred to GitHub.

          See https://github.com/jenkinsci/azure-vm-agents-plugin/issues

          Search the issue title to find it.

          (This is a bulk comment and can't link to the specific issue)

          Show
          timja Tim Jacomb added a comment - All issues have been transferred to GitHub. See https://github.com/jenkinsci/azure-vm-agents-plugin/issues Search the issue title to find it. (This is a bulk comment and can't link to the specific issue)

            People

            Assignee:
            jieshe Jie Shen
            Reporter:
            olblak Olivier Vernin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: