Giter Site home page Giter Site logo

Comments (4)

v1v avatar v1v commented on August 31, 2024

I've been testing it out the CloudProvisioningListener interface with the Google Compute Engine plugin.

What have I seen so far?

  • Google Compute Engine with oneShot configuration produces some stacktrace warnings
2021-05-21 12:02:51.759+0000 [id=100]	WARNING	hudson.slaves.NodeProvisioner#lambda$update$6: Unexpected exception encountered while provisioning agent obs11-ubuntu-18-linux-370cgd
java.io.IOException: Agent failed to connect, even though the launcher didn't report it. See the log output for details.
	at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:320)
	at hudson.slaves.SlaveComputer$$Lambda$264/0x0000000000000000.call(Unknown Source)
Caused: java.util.concurrent.ExecutionException
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:206)
	at com.google.jenkins.plugins.computeengine.ComputeEngineCloud.lambda$getPlannedNodeFuture$0(ComputeEngineCloud.java:315)
	at com.google.jenkins.plugins.computeengine.ComputeEngineCloud$$Lambda$507/0x0000000000000000.call(Unknown Source)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
	at java.util.concurrent.FutureTask.run(FutureTask.java)
	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:823)

Even though the agent was created when the build requested an agent and removed afterwards.

Pipeline:

pipeline {
    agent {
      label 'linux'
    }

    stages {
        stage('Build') {
            steps {
                echo 'hi'
            }
        }
    }
}

Screenshot 2021-05-21 at 12 55 49

Screenshot 2021-05-21 at 12 55 55

A bit of context,

As far as I see the Google Compute Engine uses the OnceRetentionStrategy when the task has finished and therefore the taskCompleted is executed for the AbstractCloudSlave.

I'm not sure if we can use the CloudProvisioningListener without fixing the root cause error with the exceptions when using one shot workers.

What are your thoughts?

from opentelemetry-plugin.

v1v avatar v1v commented on August 31, 2024

I've just asked in the jenkins-dev-mailing-list

from opentelemetry-plugin.

v1v avatar v1v commented on August 31, 2024

The issue with the oneShot provisioning seems to be fixed with the Jenkins core version in our test instance: 2.189.1.

image

from opentelemetry-plugin.

v1v avatar v1v commented on August 31, 2024

Metrics are now available in the plugin, so I'd like now to move forward with the comment in #101 (comment) and tracking the provisioning of the cloud agents using a distributed trace.

Should both traces the one we are tracking so far, linked to the ci build, linked with the one for the cloud agents? I'm not sure whether it's possible though

from opentelemetry-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.