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

Not able to use custom image with associated plan (Marketplace image requires Plan information in the request' error)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • _unsorted
    • None
    • Jenkins 2.164.3
      Azure VM Agents 0.9.0

      Hello,

      It's not possible to use a custom image with attachedĀ  plan (created from the Market place)

      For example using RancherOS 1.5.1

      • Create an custom image using Packer (inject SSH keys, configure engine etc..)
      • Use this custom image to start new machines using SSH

      We cannot do it because the API is expecting we pass the plan information in the request

      Creating a virtual machine from Marketplace image requires Plan information in the request
      

      In case of packer it stores the plan information directly on the tags of the image

        "tags": {
          "PlanInfo": "os",
          "PlanProduct": "rancheros",
          "PlanPromotionCode": "",
          "PlanPublisher": "rancher",
          "provisioned_by": "packer"
        },
      

      Works if using the cli

      az vm create --name whatever  --image /subscriptions/<whatever>/resourceGroups/<whatever>/providers/Microsoft.Compute/images/<my image> --plan-name os --plan-product rancheros --plan-publisher rancher 
      

      So can we automatically get those information from Packer tag and pass them on the requestion ?

      Or UI/configuration must be updated to enter those information to the user ?

      Basically same of JENKINS-52407 but for custom image, not only marketplace

      Thanks again for the work on this plugin. It solve use many use cases!

            jieshe Jie Shen
            jonesbusy Valentin Delaye
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: