jenkinsci / jenkinsci/ec2-plugin

zombie agents not terminating

Open
#1,995 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
292
Forks
709
Avg merge
3d 16h
Merged PRs (30d)
4

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.