Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74981

retentionTime not respected when instanceMin is set

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • openstack-cloud-plugin
    • 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

          [JENKINS-74981] retentionTime not respected when instanceMin is set

          berto created issue -
          berto made changes -
          Description Original: *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 start actually being considered as IDLE
          New: *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 start actually being considered as IDLE
          berto made changes -
          Description Original: *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 start actually being considered as IDLE
          New: *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

            olivergondza Oliver Gondža
            bdattoma berto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: