-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins v2.452.4
OpenStack plugin v2.65
Context
I have an openstack template in Jenkins casc according to which we must have minimum one VM always running (instanceMin: 1) and a retention time of 5 minutes (retentionTime: 5).
Issue
The problem I see is that after the VM finishes to be used by a set of stages and goes idle, it does not get deleted the 5 idle minutes but it remains running forever.
Expectations
I would expect the used VM to be deleted respecting the retentionTime, and a new one launched to respect the instanceMin
Additional Info
- I built my expectation based on the comments from this code https://github.com/jenkinsci/openstack-cloud-plugin/blob/d37d528acee4e35ba77cf7d523e3048aeba92422/plugin/src/main/java/jenkins/plugins/openstack/compute/JCloudsPreCreationThread.java#L30 . Am I mis-interpreting?
- when removing the instanceMin, the VM gets deleted after some time. It appeared to me being more than the set retention time, though. However I guess it could be a matter of when the VM starts actually being considered as IDLE