Skip to content

zombie agents not terminating #1995

@sdarwin

Description

@sdarwin

Jenkins and plugins versions report

Jenkins: 2.528.3
ec2-plugin: 2045.v06da_da_a_46422

What Operating System are you using (both controller, and any agents involved in the problem)?

OS: Ubuntu 24.04

Reproduction steps

Set up a Cloud configuration, it launches nodes.

Expected Results

Everything works.

Actual Results

Infrequently, agents never terminate.

Anything else?

Launching Ubuntu agents on AWS. Usually it works fine. However today, and also a few weeks ago, I noticed a problem.

An agent was running for 8 days continuously. It appeared in the AWS console and in Jenkins. 8 days. Why was it still online? The idle configuration for this cloud pool is 10 minutes. Most of the time a job isn't running.

In the logs for this agent there was something surprising. In the logs, around 5 days ago, there are messages such as "agent launching, agent is online". etc. As if came online 5 days ago (not 8 days ago). Based only from the log messages.

I have terminated the agent. Usually things are working ok.

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions