• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • _unsorted
    • Jenkins ver. 2.138.3 with Azure VM Agents Plugin ver. 0.7.4

      We are currently using the Azure VM agents plugin for our CI/CD environment, we use custom images.

      Our images are one of:

      • Image 1
        • Linux (With SSH launch)
        • Idle retention time (10 min)
        • Shutdown Only enabled
      • Image 2
        • Windows (With JNLP launch)
        • Idle retention time (20 min)
        • Shutdown Only enabled

      Our issue is that we have an agent that successfully gets provisioned launched and is usable, after the idle timeout the node successfully shuts down and applies the (offline) and (suspended) flags to it correctly. Once another build comes along and attempts to use it, the plugin correctly launches the previously shutdown VM it starts correctly, connects correctly but it maintains the (suspended) flag making it unusable. I can manually fix it by issuing the following command in the Jenkins script console

      Jenkins.instance.getNode('azure-nodeXXXXXX').toComputer().setAcceptingTasks(true);

      Then the build goes to the node and builds successfully, however if that command is not issued the build gets stuck waiting for the node to come online.

      This issue happens with both types of images.

          [JENKINS-54776] Node stays suspended after node is started

          Daniel McAssey created issue -
          Jie Shen made changes -
          Assignee Original: Azure DevOps [ azure_devops ] New: Jie Shen [ jieshe ]
          Jie Shen made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tim Jacomb made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: In Progress [ 3 ] New: Closed [ 6 ]
          Jenkins IRC Bot made changes -
          Component/s New: _unsorted [ 19622 ]
          Component/s Original: azure-vm-agents-plugin [ 21950 ]

            jieshe Jie Shen
            glokon Daniel McAssey
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: