generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Unable to use http_ip
when running in a container
#474
Comments
AndrewSav
changed the title
Breaking change in 1.4.0 for http_ip
Breaking change in 1.4.0 for http_ip, when running packer in a container
Oct 9, 2024
tenthirtyam
changed the title
Breaking change in 1.4.0 for http_ip, when running packer in a container
using Oct 9, 2024
http_ip
when running in a container
In #431 the following was added: Adds support for
For now, use v1.3.0 and I'll take a look at resolving this for v1.4.1 or a subsequent patch release whilst I have availability. Essentially, the error handling may simply need to log this as a warning instead of an error and exit. Ryan |
tenthirtyam
changed the title
using
Unable to use Oct 9, 2024
http_ip
when running in a containerhttp_ip
when running in a container
tenthirtyam
added a commit
that referenced
this issue
Oct 9, 2024
Updates `ValidateHTTPAddress` to simply log a warning if the `http_ip` is not bound to an interface instead of error. Ref: #474 Signed-off-by: Ryan Johnson <[email protected]>
lbajolet-hashicorp
pushed a commit
that referenced
this issue
Oct 15, 2024
Updates `ValidateHTTPAddress` to simply log a warning if the `http_ip` is not bound to an interface instead of error. Ref: #474 Signed-off-by: Ryan Johnson <[email protected]>
Thank you, it's working again! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reposting from https://discuss.hashicorp.com/t/1-4-0-breaks-my-workflow/70407since no answer.
Overview of the Issue
There were changes in 1.4.0 that introduced http_interface and http_bind_address. I’m running packer in a container and using vsphere_iso. I use http_ip so that vSphere can talk back to packer. This IP is not available inside the container and is not the bind IP. It’s the IP of the VM the container is running on. This was working before, on 1.3.0
In 1.4.0 I’m getting:
I do not want packer to use this address for binding, so the fact that it is not assigned to an interface is irrelevant. How do I fix my configuration to work with 1.4.0 as it used with 1.3.0?
Reproduction Steps
Run packer inside a container. Use
http_ip
setting and provide the IP of the host.Packer Version
1.11.2
Plugin Version and Builders
1.4.0
Please select the builder.
vsphere-iso
VMware vSphere Version
7.0.3.01900
Guest Operating System
Simplified Packer Buildfile
N/A - all builds using http_ip are failing
Operating System and Environment Details
Run inside a container produced with this Dockerfile:
Log Fragments and
crash.log
FilesIt is difficult to get this log from the environment, and it appears that the cause of the issue is the recent changes. Let me know if you still want me to try and get the logs.
The text was updated successfully, but these errors were encountered: