[PUP-5291] puppet device fails during SSH session closure Created: 2015/09/29  Updated: 2019/04/04  Resolved: 2016/02/10

Status: Closed
Project: Puppet
Component/s: None
Affects Version/s: PUP 4.2.2
Fix Version/s: PUP 4.4.0

Type: Bug Priority: Normal
Reporter: Jo Rhett Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: puppethack
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
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.
QA Contact: Eric Thompson

 Description   

There is a widely reported problem with SSH sessions failing. Looking into this, closing the session causes the IO handles to error out

$ 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.



 Comments   
Comment by Jo Rhett [ 2015/09/29 ]

Tested and confirmed fix in https://github.com/puppetlabs/puppet/pull/4304

Generated at Thu Nov 14 01:47:03 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.