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

Agent Upgrade - Write PID file on Windows for agent

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: puppet_agent 1.1.0
    • Fix Version/s: puppet_agent 1.3.0
    • Component/s: puppet_agent
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      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
    • Story Points:
      2
    • Sprint:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support