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

Packer 1.3.1 - Random Ansible Provisioner Failures on Windows Hosts #6731

Closed
LangJV opened this issue Sep 18, 2018 · 9 comments
Closed

Packer 1.3.1 - Random Ansible Provisioner Failures on Windows Hosts #6731

LangJV opened this issue Sep 18, 2018 · 9 comments

Comments

@LangJV
Copy link

LangJV commented Sep 18, 2018

Packer 1.3.1
QEMU/KVM build of Server 2012R2 and/or Server 2016
Ansible 2.6.3 and 2.5.5

When building using packer 1.3.1 I get "random" ansible failures throughout my playbook. Different steps each time - but always a random failure. More detailed logs are here: https://groups.google.com/forum/#!topic/packer-tool/8zCL1owdL7I

I downgraded Packer from 1.3.1 to 1.2.4 and was able to then build without issue using both Ansible 2.6.3 and Ansible 2.5.5. Both of these ansible versions showed the "random error" manifesting with Packer 1.3.1

I've attached the 3 playbooks i ran up to the failure point - to show nothing crazy here. I can consistently re-run this and it will fail at "one" of the many registry edit steps (but not always the same one) with the errors indicated in the above google group logs.

I know "random" failures are super icky. My (unverified) hunch tells me this might be time-based. My two restart proveiders used to have a 15 second delay. When i removed that - it began consistently getting "further" before failing (still randomly)

stuff.zip

@SwampDragons
Copy link
Contributor

yeah random failures are definitely unfun. Any chance you'd be capable of running a bisect for me?

@SwampDragons
Copy link
Contributor

other questions: does this happen on v. 1.2.5? Does this cause a build failure nearly every time? Or intermittently? if intermittently, about what percentage would you guess that a build fails?

@LangJV
Copy link
Author

LangJV commented Sep 20, 2018 via email

@SwampDragons
Copy link
Contributor

SwampDragons commented Sep 20, 2018

You nailed it -- I was talking about a git bisect. You'd have to clone the repo and build from source, then do a git bisect. Git bisects themselves are pretty straightforward and google can give you more help than I can, probably. I know it's asking a lot of you but doing so would really help me narrow down whatever introduced this issue.

The Ansible provisioner is a community-supported one, meaning normally Hashicorp engineers don't do more than reviewing PRs for it, so anything you can do to give more information to the community will help get this resolved.

@SwampDragons
Copy link
Contributor

@LangJV any updates on whether you were successful with an older version of Packer?

@LangJV
Copy link
Author

LangJV commented Nov 14, 2018 via email

@SwampDragons
Copy link
Contributor

SwampDragons commented Nov 15, 2018

This sounds totally plausible. We did have a windows-restart regression in v1.3.1, and it should be fixed by #6792, which was released with v1.3.2. Can you give that version a try and let me know if this is still a problem?

@SwampDragons
Copy link
Contributor

Closing since I never got a response; if this is still an issue, let me know and we can reopen.

@ghost
Copy link

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

No branches or pull requests

2 participants