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

Agent Upgrade - Write PID file on Windows for agent

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • puppet_agent 1.1.0
    • puppet_agent 1.3.0
    • puppet_agent
    • None
    • Hide

      Observe that a PID file is created on disk at %TEMP%\puppet_agent_upgrade.pid

      Show
      Observe that a PID file is created on disk at %TEMP%\puppet_agent_upgrade.pid
    • 2
    • Windows 2016-06-15

    Description

      It can be difficult to determine when an agent upgrade has actually completed on Windows, because a sequence of events must occur:

      • the current puppet run must complete
      • the install_puppet.bat file must wait 5 seconds, then infinite loops until a given PID is no longer running (from last Puppet run)
      • the actual MSI must run to completion (it can actually encounter issues if for some reason any Puppet processes are still running)

      If any other process (such as tests) want to synchronize / wait until the install has completed, there is no great way to do so cross-process.

      To improve this process, the install_puppet.bat can be modified to write a PID file to %temp% that other processes may observe.

      Attachments

        Issue Links

          Activity

            People

              erick Erick Banks
              ethan Ethan Brown
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support