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

Timeout on VM's that have network interfaces without an ip assigned. #164

Closed
xonvanetta opened this issue Oct 29, 2022 · 3 comments · Fixed by #182
Closed

Timeout on VM's that have network interfaces without an ip assigned. #164

xonvanetta opened this issue Oct 29, 2022 · 3 comments · Fixed by #182
Labels
🐛 bug Something isn't working

Comments

@xonvanetta
Copy link
Contributor

xonvanetta commented Oct 29, 2022

Describe the bug
Timeout on VM's that have network interfaces without an ip assigned. This can be caused when using something like k3s, podman/docker and other containerized applications.

To Reproduce
Steps to reproduce the behavior:

  1. Have a VM with an Network Interface thats missing IP
  2. Having qemu guest agent enabled on this host
  3. Trying to run terrafrom apply, will try until timeout is hit which is default 15m

Expected behavior
Should be able to handle those interfaces and not timeout.

Screenshots
image

Additional context
I tried to find a way to configure qemu guest agent to ignore certain networks but didn't find a lot, could have missed something to configure it to ignore those interfaces.

I can create a PR for this but the real question is how this should be handled, should 1 ip be enough or any other ideas?

Workaround
Setting the agent to a lower timeout

agent {
    enabled = true
    timeout = "2s"
}
@xonvanetta xonvanetta added the 🐛 bug Something isn't working label Oct 29, 2022
@bpg
Copy link
Owner

bpg commented Oct 31, 2022

Thanks @xonvanetta, let me look into this.
The issue looks quite similar to #100, and prob. #133. I think it would be really helpful to have a reproducible example of such network configuration, as it seems the problem is fairly common.

@xonvanetta
Copy link
Contributor Author

Yea, i made a test in the http client that has this problem right now here

Don't know if this is how you wanted it or a real vm with the config or if the json response from proxmox is enough?
Also sorry my linter/format tool went a bit wild

@bpg
Copy link
Owner

bpg commented Nov 18, 2022

👍🏻 thanks @xonvanetta, I'll try to debug it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants