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

puppet agent option to wait for lock

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.16.0
    • Component/s: None
    • Template:
    • Epic Link:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2020-04-01, NW - 2020-04-15, NW - 2020-05-13, NW - 2020-05-27
    • CS Priority:
      Reviewed
    • Zendesk Ticket IDs:
      33323
    • Zendesk Ticket Count:
      1
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      Before this commit, an agent run would immediately exit if there was an already ongoing instance.

      Two CLI arguments/puppet configuration settings were added in aid of this issue.

      Waitforlock: How frequently puppet agent should try running when there is an already ongoing puppet agent instance.

      Maxwaitforlock: The maximum amount of time the puppet agent should wait for an already running puppet agent to finish before starting a new one.
      Show
      Before this commit, an agent run would immediately exit if there was an already ongoing instance. Two CLI arguments/puppet configuration settings were added in aid of this issue. Waitforlock: How frequently puppet agent should try running when there is an already ongoing puppet agent instance. Maxwaitforlock: The maximum amount of time the puppet agent should wait for an already running puppet agent to finish before starting a new one.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Please add an option to make puppet agent wait for the lock to become available and then run. As is I often end up retrying multiple times, or setting up a while loop to check for the presence of the lock file.

      For example, puppet agent --waitforlock --test or puppet agent -Wt.

      This should also work for the agent's ssl lock

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dorin.pleava Dorin Pleava
              Reporter:
              daniel.parks Daniel Parks
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support