-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add MAC address(es) to either ovirt_nic or ovirt_wait_for_ip #484
Comments
I ran into the exact same issue. The only thing about the implementation: it seems to me that MAC address must return during ovirt_nic creation, cause we may have OS without guest-agent yet. And also no reason to wait for IP from guest agent, cause MAC address we know in nic creation. |
I am perfectly fine with it being returned from ovirt_nic creation, but I do also need the IP, because that's how I am converting the dynamic dhcp lease to static with the mikrotik bit of my configuration... I just..... need the mac address to show its face at some point during the process, and it currently does not. |
Hey folks, with RHV being sunset in Red Hat, we have little capacity to develop new features for this provider. However, we can review if anyone wants to contribute a change to this effect. |
As far as I understood this new feature, the following changes would be required to implement this new feature:
Would you be up for it? @Vatson112 @phunyguy |
Hello, @engelmi. Yes, I think I can do it. I alreay wrote working prototype, but it work kinda strange: I see my new key (mac) in .tfstate file:
but not in output:
So, I need to deeply look at it, and I think I`ll do PR in few days. |
Please describe what you would like to see
in ovirt_wait_for_ip, or during ovirt_nic creation, I would like the mac address of the nic to be returned as an output.
I appreciate that the IP addresses are returned, and would love to see this expanded out to return the mac address.
If the mac address is provided, it can be used to populate DHCP leases for created ovirt VMs.
My initial solution I was using is an external data provider that I wrote myself to hook into the ovirt API with python, and give me the IP and mac of the VM, so that I can create a lease, but I am now moving to gitlab workflow for ci/cd, and the terraform docker image it uses does not have python, so I am stuck.
Please describe the solution you'd like
Just a way to return the VM mac address that corresponds to the returned IPs as usable data to call in additional steps.
Currently what I use:
Provided by: ovirtvmnicprops
But this is not possible on gitlab ci/cd. with their terraform integration. So this feature request would make ovirtvmnicprops obsolete, which I will gladly welcome.
Please describe your use case
My use case is an on-premise ovirt cluster, with automatically created VMs that have DHCP static leases in mikrotik or any other system that terraform has hooks for.
The text was updated successfully, but these errors were encountered: