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

Converged (a bit) to azure-arm coding style, added sysprep_done flag … #161

Merged
merged 10 commits into from
Feb 15, 2022
Merged

Converged (a bit) to azure-arm coding style, added sysprep_done flag … #161

merged 10 commits into from
Feb 15, 2022

Conversation

flixman
Copy link
Contributor

@flixman flixman commented Nov 2, 2021

Sometimes, on win images, sysprep does not work as expected. The recommendation then is to perform the sysprep manually (removing the agent extensions, then calling sysprep, etc.), in which case packer can skip the sysprep. This PR provides that functionality and also performs some small refactoring to make the azure-arm and azure-dtl builders more alike.

@flixman flixman requested a review from a team as a code owner November 2, 2021 08:28
@flixman
Copy link
Contributor Author

flixman commented Nov 7, 2021

@sylviamoss Excuse me for referencing you directly but... what do you think about this PR? :-)

@flixman
Copy link
Contributor Author

flixman commented Feb 7, 2022

@nywilken Sorry for referencing you directly, but ... seems my PR is completely ignored? :-/

@nywilken
Copy link
Contributor

nywilken commented Feb 7, 2022

Hi @flixman no need for apologies and thanks for the ping. We've been a bit heads down on some Packer core related changes so we are working through the pending PRs for each of the plugins with a bit of delay. So our apologies there.

I wanted to review your PR on Friday but just got caught up with a bug for Azure. I will be taking a look as I would like to try and pull in your refactor before making the fix I have planned. Thanks for the contribution.

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

Overall this looks good. Thanks for the refactor and contribution.

I left one suggestion but this should be otherwise good to go. I'm running the acceptance tests. I will report back if there are any failures.

@nywilken
Copy link
Contributor

nywilken commented Feb 8, 2022

Hi @flixman thanks for making the update. It looks like you need to regenerate the HCL configuration after you latest change. You can fix this by running make generate or go generate ./... if you don't have Make installed, then commit the generated files.

I tried testing this code and the code on main but I'm running into an issue, which I pasted below. I don't have too much experience with DTL so it might just be my setup. Can you confirm that you are able to build as expected using the updated code?

2022/02/07 18:28:33 ui error: ==> azure-dtl: dtl.VirtualMachinesClient#ApplyArtifacts: Failure sending request: StatusCode=0 -- Original Error: Code="ApplyArtifactsUnavailable" Message="Apply artifacts feature is currently unavailable. This can occur when the virtual machine is stopped or the agent is unresponsive. If the issue persists, refer to the troubleshooting guide (https://aka.ms/ArtifactsTroubleshoot)."

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

@flixman thanks again for the contribution. This is good to go.

I committed two small changes to address the documentation generation and fix the failing tests. The test failure was due to a timeout issue; not with the changes in the code.

@nywilken nywilken merged commit 379c14b into hashicorp:main Feb 15, 2022
@flixman
Copy link
Contributor Author

flixman commented May 4, 2022

@nywilken Sorry for the radio silence: I have been catching fire for several months, and this felt off my mental stack :-/. Thank you!!!

@flixman flixman deleted the add_sysprep_done branch May 4, 2022 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants