-
Notifications
You must be signed in to change notification settings - Fork 458
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
"wait_for_lease = true" does not take effect #1091
Comments
Hello, |
Thank you for the method you provided |
I'll try to take a look and see if I can find anything changed that might cause it between those two versions. |
I couldn't find anything particular between those versions. Also, I don't have bridged network in my setup and it's hard for me to create it so I used NAT-ed one and I couldn't reproduce it. @SJFCS could you check if you can reproduce it in different network types? NAT-ed and routed for example? EDIT: forget what I wrote, I can reproduce it, just used wrong image before 🤦 I'll try to bisect and see where problem lies |
Okay, more debugging later: I cannot reproduce it - previously I had problems with cloud-init. I think it might be related to cloud-init itself rather than to provider. Either way, I have consisten behavior between 0.7.6 and 0.7.1 - it's either failing if qemu-guest-agent is not installed and started or it is running fine otherwise. |
The network configuration is the same, I think it has nothing to do with this |
Okay, thanks for the troubleshooting, but I did only change the provider version number while keeping the configuration unchanged. |
Do you have cloud-init logs for both scenarios? |
System Information
Linux distribution
Archlinux
Terraform version
Provider and libvirt versions
Description of Issue/Question
I use the following simple configuration. It installs qemu-ga through cloud-init.
When using terraform-provider-libvirt 0.7.6 version, "qemu_agent = true", "wait_for_lease = true" will not wait for qemu-ga to obtain the IP, prompting "Error: couldn't retrieve IP address". Only after changing the version to 0.7.1, try terraform init -upgrade, and then apply, it will wait for qemu-ga to obtain the IP.
Please excuse my poor English.
Setup
this is my main.tf
this is cloud_init.yml
network_config.yml
Steps to Reproduce Issue
0.7.6 is doesn't work step:
when use 0.7.6 debug:
0.7.1 is work step:
when use 0.7.1 debug:
(Include debug logs if possible and relevant).
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? NO
The text was updated successfully, but these errors were encountered: