-
Bug
-
Resolution: Fixed
-
Critical
-
Jenkins 1.625.1 LTS
The new implementation of the delete-node command badly breaks cleanup of cloud-managed VMs (at least in jclouds-plugin and openstack-plugin)
The cloud plugins extend AbstractCloudComputer and then override doDoDelete() in order to perform any cleanup (and delay the actual deleteion until this is done). The new delete-node command does not invoke this and thus when using this command, lots of unused VM's are kept around which get never cleaned up. In fact, there is no "hook" whatsoever anymore which allows a cloud plugin to intercept node deletion.
If there's some other (new) functionality to intercept node-deletion please let me know.
Unfortunately this made it into 1.625.1 LTS and I only noticed that change now. It is not even mentioned in the changelog.
[JENKINS-31098] New delete-node CLI command breaks node cleanup in cloud plugins
Assignee | New: Pavel Janoušek [ pajasoft ] |
Even if doDoDelete() is a Stapler call designed for UIs, it is currently the only possible place to intercept node-deletion (that I know of).
I have not looked into other cloud plugins right now but at least JClouds as well as OpenStack need something like this in order to
shutdown and/or delete unused VMs.