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

using marketplace image gives 'Creating a virtual machine from Marketplace image requires Plan information in the request' error

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: azure-vm-agents-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.130

      azure-vm-agents: 0.6.2, 0.7.1
    • Similar Issues:
    • Released As:
      This issue has been fixed in version 0.7.2

      Description

      We are trying to use a custom agent based on Kali Linux with this plugin, but on provisioning we get the below error.

      We've tried both custom image (based on Kali using a blob URL) and also the base Kali image, providing the publisher, sku, offer, and version.  Both give us the same error.

      Programmatic access is also enabled for this image in the subscription.

       

      com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment Failed: Microsoft.Compute/virtualMachines:kali-jenkins-builders956e30 - Conflict - {status=Failed, error={code=ResourceDeploymentFailure, message=The resource operation completed with terminal provisioning state 'Failed'., details=[{code=VMMarketplaceInvalidInput, message=Creating a virtual machine from Marketplace image requires Plan information in the request. VM: '/subscriptions/bf308a5c-0624-4334-8ff8-8dca9fd43783/resourceGroups/mgmt-vmimg-store-timwdev/providers/Microsoft.Compute/virtualMachines/kali-jenkins-builders956e30'.}]}}com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment Failed: Microsoft.Compute/virtualMachines:kali-jenkins-builders956e30 - Conflict - {status=Failed, error={code=ResourceDeploymentFailure, message=The resource operation completed with terminal provisioning state 'Failed'., details=[{code=VMMarketplaceInvalidInput, message=Creating a virtual machine from Marketplace image requires Plan information in the request. VM: '/subscriptions/bf308a5c-0624-4334-8ff8-8dca9fd43783/resourceGroups/mgmt-vmimg-store-timwdev/providers/Microsoft.Compute/virtualMachines/kali-jenkins-builders956e30'.}]}} at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:37) at com.microsoft.azure.vmagent.AzureVMCloud.createProvisionedAgent(AzureVMCloud.java:609) at com.microsoft.azure.vmagent.AzureVMCloud$4.call(AzureVMCloud.java:833) at com.microsoft.azure.vmagent.AzureVMCloud$4.call(AzureVMCloud.java:810) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 

       

        Attachments

          Activity

          Hide
          jieshe Jie Shen added a comment -

          Hi Matthias Hinterschwepfinger,

          Sorry for late response. We have released a new version 0.7.2.1 for the issue. Thanks for your contribution.

          Show
          jieshe Jie Shen added a comment - Hi  Matthias Hinterschwepfinger , Sorry for late response. We have released a new version 0.7.2.1 for the issue. Thanks for your contribution.
          Hide
          matthias_h Matthias Hinterschwepfinger added a comment -

          No problem! Thank you too for the quick release with a fix I will check out the new version next week. Have a great day!! Cheers

          Show
          matthias_h Matthias Hinterschwepfinger added a comment - No problem! Thank you too for the quick release with a fix I will check out the new version next week. Have a great day!! Cheers
          Hide
          azure_devops Azure DevOps added a comment -

          Hi Matthias Hinterschwepfinger,

          You had better not upgrade to version 0.7.2.1 according to JENKINS-52838 . We need to upgrade some dependencies to deal with newer Jenkins versions.

          Show
          azure_devops Azure DevOps added a comment - Hi Matthias Hinterschwepfinger , You had better not upgrade to version 0.7.2.1 according to JENKINS-52838  . We need to upgrade some dependencies to deal with newer Jenkins versions.
          Hide
          matthias_h Matthias Hinterschwepfinger added a comment -

          Oh, okay. I will keep an eye on the open issue. Thanks a lot for the update

          Show
          matthias_h Matthias Hinterschwepfinger added a comment - Oh, okay. I will keep an eye on the open issue. Thanks a lot for the update
          Hide
          matthias_h Matthias Hinterschwepfinger added a comment -

          So there was a fix in 0.7.3 as described in JENKINS-52838 and now it is working again for me. Thanks again for all the help here!

          Show
          matthias_h Matthias Hinterschwepfinger added a comment - So there was a fix in 0.7.3 as described in JENKINS-52838 and now it is working again for me. Thanks again for all the help here!

            People

            • Assignee:
              jieshe Jie Shen
              Reporter:
              timwebster9 Tim Webster
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: