Skip to content

ssh hang when remote reboot #94

@ChiWu-Zero

Description

@ChiWu-Zero

Overview of the Issue

the code will hang on func newSession() in communicator/ssh/communicator.go
sometimes when rebooting remote server.

Reproduction Steps

  1. the provisioner config is as follow and the reboot.sh will reboot the remote system.

"provisioners": [ { "type": "shell", "scripts": [ "reboot.sh" ], "expect_disconnect": true }, ..... ]

  1. when rebootting the remote system, the the packer will hang on newSession()
    sometimes.

Packer Plugin SDK version

v0.2.11

Operating system and Environment details

it's a copy of golang/go#50604
and after view the the issue golang/go#26643
maybe we deal with the problem on sdk level.

Log Fragments and crash.log files

Include appropriate log fragments. If the log is longer than a few dozen lines,
please include the URL to the gist of the log or
use the Github detailed format instead of posting it directly in the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions