-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exited container not get release from Jenkins #229
Comments
Need more system information.
|
I'm running it on vsphere . Containers: 1 |
Another one issue on below flow.
is this expected one,? there should be new slave spin up when job added to the queue right? |
https://vmware.github.io/vic-product/assets/files/html/1.1/vic_app_dev/container_operations.html vsphere does not appear to be a full implementation of the remote docker API. If you manually delete a single offline agent does the container get removed on the backend? What version of yet another docker plugin are you using? |
Yes it does, the version im using is "0.1.0-rc46". |
@saibalak80 as a temporary workaround you can create a regularly scheduled freestyle job which cleans up dead agents. You would need the groovy plugin installed and run the following system groovy script. https://github.com/samrocketman/jenkins-script-console-scripts/blob/master/cleanup-offline-agents.groovy I would personally modify it so that it takes into account the age of the agent (i.e. don't delete agents which were just created and make sure the dead agent is at least 5 minutes old) and run it on an infrequent schedule like no less than every 30 minutes. You don't even necessarily need to account for the age of the agent because the docker plugin will just provision new agents after they were deleted. It's not a perfect workaround but would address infinite resource starvation. |
AFAIR i did cleanup somewhere. In retentionStrtategy?... |
I don't experience this when using Docker daemon so it might be a difference with how vsphere containers work compared to Docker. |
The containers not getting cleaned. any suggest whats going wrong?
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3002f37077b9 jenkins-slave:1.7 "/bin/sh -cxe cat ..." 21 seconds ago Starting sad_fermi
f15178ca9657 jenkins-slave:1.7 "/bin/sh -cxe cat ..." 16 minutes ago Exited (0) 10 minutes ago wonderful_mclean
257727b1aa9a jenkins-slave:1.7 "/bin/sh -cxe cat ..." 16 minutes ago Exited (0) 10 minutes ago
The text was updated successfully, but these errors were encountered: