Jira (BOLT-1533) stop unconfigurable inactivity timeouts killing winrm sessions

1 view
Skip to first unread message

Michiel van de Garde (JIRA)

unread,
Jan 17, 2020, 10:56:03 AM1/17/20
to puppe...@googlegroups.com
Michiel van de Garde created an issue
 
Puppet Task Runner / Improvement BOLT-1533
stop unconfigurable inactivity timeouts killing winrm sessions
Issue Type: Improvement Improvement
Affects Versions: 2019.1
Assignee: Unassigned
Attachments: image-2020-01-17-16-12-38-224.png
Components: bolt, Tasks
Created: 2020/01/17 7:55 AM
Environment:

All based on puppet v2019.1.0

Priority: Normal Normal
Reporter: Michiel van de Garde

Starting a task to upgrade the puppet-agent on windows hosts with relatively high load results in the winrm task failing with the message "timed out waiting for status response from <host>".

The task is basically the command "choco upgrade puppet-agent". This task completes ok on a number of hosts (seems like it's mostly ones with the lowest average load) but about 115 out of 250 hosts show the result pictured above, when checked on, the install completes just fine when manually running "choco upgrade puppet-agent" doing it.

From the chocolatey logs, all the clients failing to complete the task seem to have no trouble continuing the installation without an active winrm session, until they have to stop/start a service, at which point they fail (and leave the system without an active puppet-agent or pxp-service, but that's not what this ticket is about).

Doing some digging, there seems to be no method within puppet to set an inactivity timeout for a winrm session at the moment. Doing more digging, it seems there's a windows registry key related to a winrm inactivity timeout: 

https://www.windows-security.org/a8984e09959b7cda375457a176edfee6/specify-idle-timeout

And, it seems it is possible to set this activity timeout as the initiating party when connecting, which seems to happen here:
https://docs.microsoft.com/en-us/windows/win32/winrm/session-timeout#examples

Is a configurable inactivity timeout something that could be implemented?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages