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

puppet_agent module Install_puppet.ps1 timeout parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: puppet_agent
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2021-03-31
    • Zendesk Ticket IDs:
      43338,43466,43640,43750
    • Zendesk Ticket Count:
      4
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support