Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: PUP 4.2.2
-
Fix Version/s: PUP 4.4.0
-
Component/s: None
-
Labels:
-
Template:customfield_10700 99705
-
Story Points:2
-
Release Notes:Bug Fix
-
Release Notes Summary:Fix "stream closed" problem with SSH transport to Cisco devices closing the session with the IO handles still open.
Description
There is a widely reported problem with SSH sessions failing. Looking into this, closing the session causes the IO handles to error out
- https://ask.puppetlabs.com/question/1389/puppet-device-fails-halfway-through-fact-discovery-on-cisco-catalyst-2960/
- http://gadgetsytecnologia.com/56775b756283c83d7/could-not-retrieve-local-facts-closed-stream.html
$ puppet device switch01.example.com --verbose
|
Info: starting applying configuration to switch01.example.com at ssh://switch01.example.com/
|
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Error: Could not retrieve local facts: closed stream
|
Error: Failed to apply catalog: Could not retrieve local facts: closed stream
|
Poking around in the author's own code, he's trapping IOError when closing things. This makes perfect sense, as the SSH transport has open IO handles when it closes the session.