Skip to content

Only treat ssh exit errors as errors#4010

Closed
mwhooker wants to merge 1 commit into
masterfrom
fix4006
Closed

Only treat ssh exit errors as errors#4010
mwhooker wants to merge 1 commit into
masterfrom
fix4006

Conversation

@mwhooker
Copy link
Copy Markdown
Contributor

Fixes #4006
#3966 was written because there was a report that packer continued building even though there was an apparent error.

the apparent error happened to be sshd shutting down as the result of a package update.

I believe continuing on was the expected behavior, even if it wasn't obvious what was going on. Failing the build was too aggressive, but I believe more information for the user is the right approach.

There's been some talk of adding an option to decide if a step should fail if ssh disconnects. Will create a ticket for that, since I want to get this fix out right away

@rickard-von-essen
Copy link
Copy Markdown
Contributor

I think this is a bad solution, see #4011 (comment)

@ghost
Copy link
Copy Markdown

ghost commented Mar 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem executing reboot in shell provisioner

2 participants