Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workaround for azure bug. #5864

Merged
merged 1 commit into from
Feb 7, 2018
Merged

add workaround for azure bug. #5864

merged 1 commit into from
Feb 7, 2018

Conversation

SwampDragons
Copy link
Contributor

Adds a one-second sleep to the windows-restart provisioner. This works around an azure/winrm bug here: Azure/go-ntlmssp#9 that was causing reliable crashes every time a user ran the windows-restart provisioner on azure.

closes #5257 but doesn't address underlying cause, which is outside of our wheelhouse.

@SwampDragons SwampDragons requested a review from a team as a code owner February 7, 2018 19:36
// This sleep works around an azure/winrm bug. For more info see
// https://github.com/hashicorp/packer/issues/5257; we can remove the
// sleep when the underlying bug has been resolved.
time.Sleep(1 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like the right direction, but my concerns are

  • This only impacts ntlmssp connections. should we limit it to those?
  • is 1 second long enough? What happens if it's not? Should we make it configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to test for ntlmssp connections from inside the provisioner? If so, that's definitely a good idea. And in that case I'd be more willing to bump the sleep length "just in case"; I wanted to keep it short in order to not unduly impact other users. For what it's worth, this actually works on my computer with a sleep of 500ms.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to test for ntlmssp connections from inside the provisioner?

probably not, thinking about it...

@mwhooker mwhooker added this to the v1.2.0 milestone Feb 7, 2018
@mwhooker mwhooker merged commit 51dcf9f into master Feb 7, 2018
@mwhooker mwhooker deleted the workaround_5257 branch February 7, 2018 21:38
@mwhooker
Copy link
Contributor

mwhooker commented Feb 7, 2018

for posterity: this is a hacky workaround to a big hairy bug. We'll continue to investigate in #5865

@ghost
Copy link

ghost commented Apr 2, 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 Apr 2, 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.

unexpected EOF in windows_restart provider with azure_rm builder
2 participants