Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3045

exec resource with timeout doesn't kill executed command that times out

    Details

    • Template:
    • Story Points:
      2
    • Sprint:
      Client 2015-08-19, Client 2015-09-02
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      On POSIX systems, Exec resources using the timeout parameter now send a TERM signal to the executed command if the timeout is exceeded.

      Description

      Trivial reproduction case:

      exec

      { "sleep": command => "/bin/sleep 1800", timeout => 10, }

      With this, Puppet exits after roughly 10 seconds, but the sleep continues to run until the 1800 seconds are over.

      My expectation would be for the sleep to get killed after the timeout hits.

      As far as I can tell, the relevant code didn't change (much) till current head, so I suspect the issue still exists.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  incase Sven Mueller
                  QA Contact:
                  Eric Thompson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: