-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Problem with obtain ipv4 addresses for group of nodes #1349
Comments
Hi @krnwrks! It won't be possible to reliably populate the VM IP addresses at the end of VM provisioning flow without using qemu guest agent.
|
The guest agent is enabled, you can see that in my output I received the address from 1 of nodes in the first try |
Hm... The provider actually does wait for a non-localhost IP address 🤔 @krnwrks Could you pls. provide additional details about your environment, and perhaps output from your plan execution? A debug log would be ideal. |
As a workaround you may try adding something like this to your VM config: provisioner "local-exec" {
when = create
command = "sleep 5s"
}
|
There is a good analysis on "wait for IP" behaviour in #668 (comment) |
I'm going to close this issue as I haven't heard back from the author with additional details. @krnworks, please feel free to reopen it if you need more support on this. |
Hello!
Occasionally, upon the initial run, I receive empty output for the IP-addresses of virtual machines. However, if I repeat the apply command, I get the expected lists.
It appears that this behavior occurs because the output is retrieved before the virtual machines have acquired their IP addresses.
Is there a workaround for this issue or a way to introduce artificial delay to ensure that the output is retrieved after the virtual machines have acquired their IP addresses?
I use dhcp.
Best regards, Roman
The text was updated successfully, but these errors were encountered: