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

Pull Provisioner Console Logs (GUID.out files) Back from Remote #3445

Closed
DarwinJS opened this issue Apr 15, 2016 · 3 comments
Closed

Pull Provisioner Console Logs (GUID.out files) Back from Remote #3445

DarwinJS opened this issue Apr 15, 2016 · 3 comments
Labels
core Core components of Packer enhancement stage/duplicate

Comments

@DarwinJS
Copy link
Contributor

DarwinJS commented Apr 15, 2016

I am building windows boxes on AWS and have the ebs volume "delete_on_termination" set to false so after a failed build I can [a] attach the volume, [b] boot an instance, [c] look at it's logs, [d] shutdown the instance, [e] detach the volume, [f] manually delete the volume.

I noticed the c:\windows\temp.out files contain the console output of powershell provisioners I run.

Getting this output is the only reason I have to take all these extra steps to get this information.

Would be great if Packer supported something like PACKER_CONSOLE_LOGS_COPY=$env:temp so that those logs could always be brought back (especially the last one that failed) and I could avoid the extra steps.

@cbednarski
Copy link
Contributor

Thanks for opening an issue. There is an open request to support leaving artifacts intact after a failed build. We also have -debug mode which allows you to step through the build process and inspect the VM state at various points. Does either of those satisfy your use case here?

@DarwinJS
Copy link
Contributor Author

Yes - I think especially the suggestion for --pause-on-error.
Thanks!

@cbednarski
Copy link
Contributor

Great! I'm going to close this one since we have an issue open already, but I will include your feedback in the other thread.

@hashicorp hashicorp 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
core Core components of Packer enhancement stage/duplicate
Projects
None yet
Development

No branches or pull requests

2 participants