Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5291

puppet device fails during SSH session closure

    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:
    • 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

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jorhett Jo Rhett
              QA Contact:
              Eric Thompson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support