Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-9798

puppet_agent module Install_puppet.ps1 timeout parameters

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • puppet_agent
    • Night's Watch
    • 1
    • NW - 2021-03-31
    • 43338,43466,43640,43750
    • 4
    • Not Needed
    • Needs Assessment

    Description

      Basic Info:

      • Version: 2.2.0 or any version using the install_puppet.ps1 script with hard coded 2 minute timeout parameters.

      Problem description:

      Recently encountered a customer issue where the post Puppet agent run was taking longer than two minutes waiting for the pxp-agent process to end. This caused the install_puppet.ps1 script to hit the hard coded 2 minute timeout parameter, forcing the agent upgrade to fail.  

      Current script doesn't allow or account for scenario's where the post run command can take longer than 2 minutes to complete and there isn't any configuration options to adjust the parameter or forcibly kill the long running process.

      Desired behavior:

      Two sections of the script that leverage a timeout parameter, proposing the following.

      1. The timeout that waits for Puppet agent process to finish:
      2. The second timeout that waits for the pxp-agent process to terminate: 

      Actual behavior:

      Both timeouts will force the script to fail after 2 minutes and log the appropriate error message. 

       

      Attachments

        Activity

          People

            gabriel.nagy Gabriel Nagy
            lucas.young Lucas Young
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support