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

Failure creating provisioned agent after successful provisioning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • _unsorted
    • None

      We use a linux-scalable label which spins up agents on Azure. This works mostly well, but have had this issue on a couple of machines: 

      • Jenkins spins up an agent
      Feb 15, 2018 3:26:00 AM com.microsoft.azure.vmagent.AzureVMCloud$4 call
      INFO: Azure Cloud: provision: Adding agent linux-scalablef495f0 to Jenkins nodes
      Feb 15, 2018 3:27:35 AM com.microsoft.azure.vmagent.AzureVMAgent createComputer
      INFO: AzureVMAgent: createComputer: start for agent linux-scalablef495f0
      Feb 15, 2018 3:27:35 AM com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher launch
      INFO: AzureVMAgentSSHLauncher: launch: launch method called for agent linux-scalablef495f0
      Feb 15, 2018 3:27:47 AM com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher getRemoteSession
      INFO: AzureVMAgentSSHLauncher: getRemoteSession: getting remote session for user jenkins to host linux-scalablef495f0.westeurope.cloudapp.azure.com:22
      Feb 15, 2018 3:27:47 AM com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher getRemoteSession
      INFO: AzureVMAgentSSHLauncher: getRemoteSession: Got remote session for user jenkins to host linux-scalablef495f0.westeurope.cloudapp.azure.com:22
      Feb 15, 2018 3:27:58 AM com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher getRemoteSession
      INFO: AzureVMAgentSSHLauncher: getRemoteSession: getting remote session for user jenkins to host linux-scalablef495f0.westeurope.cloudapp.azure.com:22
      Feb 15, 2018 3:27:58 AM com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher getRemoteSession
      INFO: AzureVMAgentSSHLauncher: getRemoteSession: Got remote session for user jenkins to host linux-scalablef495f0.westeurope.cloudapp.azure.com:22
      • Starts build 
      03:28:17 Running on linux-scalablef495f0 in /mnt/resource/jenkins/workspace/Build-Dashboard/opensource
      
      • The Azure plugin suddenly reports that the VM didn't start up. 
      Feb 15, 2018 3:44:00 AM com.microsoft.azure.vmagent.AzureVMCloud$4 call
      SEVERE: Failure creating provisioned agent 'linux-scalablef495f0'
      com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment jenkins-linux-8-core-build-slave0215032324572 failed, max timeout reached (1200 seconds)
      at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:37)
      at com.microsoft.azure.vmagent.AzureVMCloud.createProvisionedAgent(AzureVMCloud.java:642)
      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 java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:748)
      Feb 15, 2018 3:44:29 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
      
      • Plugin checks if vm exists, and finds it, then terminates it.
      Feb 15, 2018 3:44:00 AM com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate virtualMachineExists
      INFO: AzureVMManagementServiceDelegate: virtualMachineExists: check for jenkins-linux-8-core-build-slavef495f0
      Feb 15, 2018 3:44:00 AM com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate virtualMachineExists
      INFO: AzureVMManagementServiceDelegate: virtualMachineExists: jenkins-linux-8-core-build-slavef495f0 exists
      Feb 15, 2018 3:44:02 AM com.microsoft.rest.interceptors.LoggingInterceptor log
      Feb 15, 2018 3:44:24 AM com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate terminateVirtualMachine
      INFO: AzureVMManagementServiceDelegate: terminateVirtualMachine: Removing virtual machine jenkins-linux-8-core-build-slavef495f0
      • I/O error in channel jenkins-linux-scalablef495f0 error
      SEVERE: I/O error in channel jenkins-linux-scalablef495f0
      java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
      Caused by: java.io.EOFException
      at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2638)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3113)
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:853)
      at java.io.ObjectInputStream.<init>(ObjectInputStream.java:349)
      at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
      at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
      

       

            zackliu Chenyang Liu
            hentis Henti Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: