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

Required parameter 'hyperVGeneration' is missing (null)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: _unsorted
    • Labels:
      None
    • Environment:
      Azure VM Agents 1.2.1
    • Similar Issues:
    • Released As:
      1.2.2

      Description

      Sometime between July 12th – our last successful Azure VM agent for Jenkins – and September 12th, the deployments of new agents from Jenkins stopped working. I upgraded to 1.2.1 today and tested it, and the deployment failed with the following error:

      {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"InvalidParameter\",\r\n \"message\": \"Required parameter 'hyperVGeneration' is missing (null).\",\r\n \"target\": \"hyperVGeneration\"\r\n }\r\n}"}]}
      

      I tried downgrading to 1.2.0 in case that was the issue, but it has the same issue – suggesting that this is a new requirement on the Azure side that the Azure VM Agents plugin is not handling.

      This entirely blocks the usage of Azure agents, so we have no workaround but to use permanent agents or alternate clouds.

        Attachments

          Issue Links

            Activity

            Hide
            jieshe Jie Shen added a comment -

            It is a little wired here. I have successfully provisioned some agents with the newest version. 

            For the error message here, the hyperVGeneration is not required according to the documentation https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/2019-03-01/images#imageproperties-object .

            Show
            jieshe Jie Shen added a comment - It is a little wired here. I have successfully provisioned some agents with the newest version.  For the error message here, the hyperVGeneration is not required according to the documentation  https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/2019-03-01/images#imageproperties-object  .
            Hide
            jieshe Jie Shen added a comment -

            To mitigate this issue, I think I just need to add the hyperVGeneration parameter in the arm template. But I cannot find more information about the difference between "V1" and "V2" for hyperVGeneration.

             

            Another option here is following this PR https://github.com/Azure/azure-sdk-for-python/pull/4931 to revert the images to previous API version.

            Show
            jieshe Jie Shen added a comment - To mitigate this issue, I think I just need to add the hyperVGeneration parameter in the arm template. But I cannot find more information about the difference between "V1" and "V2" for hyperVGeneration.   Another option here is following this PR  https://github.com/Azure/azure-sdk-for-python/pull/4931  to revert the images to previous API version.
            Hide
            jieshe Jie Shen added a comment - - edited

            Nick Jones Indeed you can manually install any version of a plugin. You just need to download the official hpi package from https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/ . And unpack it to the right place at $JENIINS_HOME/plugins. Then restart the Jenkins server.

            Show
            jieshe Jie Shen added a comment - - edited Nick Jones Indeed you can manually install any version of a plugin. You just need to download the official hpi package from  https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/  . And unpack it to the right place at $JENIINS_HOME/plugins. Then restart the Jenkins server.
            Hide
            medianick Nick Jones added a comment -

            I confirm that 1.2.2 fixes the issue. Thanks!

            Show
            medianick Nick Jones added a comment - I confirm that 1.2.2 fixes the issue. Thanks!

              People

              Assignee:
              jieshe Jie Shen
              Reporter:
              medianick Nick Jones
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: