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

Mock for IP address assignment doesn't work #215

Closed
Darth-Mera opened this issue Jun 9, 2022 · 1 comment
Closed

Mock for IP address assignment doesn't work #215

Darth-Mera opened this issue Jun 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Darth-Mera
Copy link
Contributor

Describe the bug

When using WaitForNonLocalIP after VM start the IP never gets assigned

To Reproduce

Please see: oVirt/terraform-provider-ovirt#435

@Darth-Mera Darth-Mera added the bug Something isn't working label Jun 9, 2022
@Darth-Mera Darth-Mera assigned ghost Jun 9, 2022
ghost pushed a commit that referenced this issue Jun 13, 2022
This change adds an explicit error message when a required IP address is not found that checks if the VM has a NIC attached and warns the user if that is not the case.
@ghost
Copy link

ghost commented Jun 13, 2022

After debugging this issue, it seems that the test code in oVirt/terraform-provider-ovirt#435 does not have an ovirt_nic resource that would attach a network interface to the VM, which results in the simulation not adding an IP address.

However, the resulting error messages are hard to debug, so I will add a PR that explicitly checks for the presence of a NIC and warns if the VM has no NIC attached.

ghost pushed a commit that referenced this issue Jun 13, 2022
This change adds an explicit error message when a required IP address is not found that checks if the VM has a NIC attached and warns the user if that is not the case.
@ghost ghost closed this as completed in a09763c Jun 13, 2022
This issue was closed.
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
None yet
Development

No branches or pull requests

1 participant