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

winrm connection timeout, perhaps #25350

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Conversation

mildwonkey
Copy link
Contributor

2 commits here:

  1. Upgraded github.com/masterzen/winrm and github.com/packer-community/winrmcp libraries to lates. These did not make a different to the issue I was troubleshooting, but it also did no harm so I thought it worth upgrading. No harm in rolling this commit back if there are any concerns.
  2. Added the configured connection timeout to the winrm.Endpoint. This timeout is used in the underlying tcp connection: (winrm documentation)

This is not a solution to #22006 - I am still working on a reproduction that succeeds in one version of terraform and hangs in another - but I think this is a solid first step: actual timeout errors as opposed to hanging.

As a side note/additional information: The configured timeout (in both packer and terraform) is used in the winrm.NewClientWithParameters. Packer does not set the winrm.Endpoint timeout (defaults to 60s).

@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #25350 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
communicator/winrm/communicator.go 54.12% <100.00%> (+0.42%) ⬆️
terraform/node_resource_plan.go 93.44% <0.00%> (+1.63%) ⬆️

@mildwonkey mildwonkey requested a review from a team June 23, 2020 17:05
@mildwonkey mildwonkey merged commit d4ec69c into master Jun 25, 2020
@mildwonkey mildwonkey deleted the mildwonkey/windows-lib-update branch June 25, 2020 13:23
@ghost
Copy link

ghost commented Jul 26, 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 Jul 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants