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

communicators/winrm: respect boot_timeout when fetching winrm_info #6229

Merged
merged 1 commit into from
Oct 12, 2015

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Sep 2, 2015

We gained a ton of improvemnts to WinRM error handling in
#4943, but we also got one bug.

The new code raises an exception when winrm_info does not return right
away. This was preventing us from catching the retry/timout logic that's
meant to wait until boot_timeout for the WinRM communicator to be ready.

This restores the proper behavior by rescuing the WinRMNotReady
exception and continuing to retry until the surrounding timeout fires.

We gained a ton of improvemnts to WinRM error handling in
#4943, but we also got one bug.

The new code raises an exception when `winrm_info` does not return right
away. This was preventing us from catching the retry/timout logic that's
meant to wait until boot_timeout for the WinRM communicator to be ready.

This restores the proper behavior by rescuing the WinRMNotReady
exception and continuing to retry until the surrounding timeout fires.
@legal90
Copy link
Contributor

legal90 commented Oct 2, 2015

👍 on this!
With parallels provider we have the mentioned issue. Even if we implement winrm_info provider capability, we still get Errors::WinRMNotReady on the VM initial boot.

@mitchellh
Copy link
Contributor

LGTM!

mitchellh added a commit that referenced this pull request Oct 12, 2015
communicators/winrm: respect boot_timeout when fetching winrm_info
@mitchellh mitchellh merged commit 5e48d35 into master Oct 12, 2015
@mitchellh mitchellh deleted the b-winrm-info-respect-timeout branch October 12, 2015 19:50
@ghost ghost locked and limited conversation to collaborators Apr 7, 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