-
Notifications
You must be signed in to change notification settings - Fork 532
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
more flexible ipconfig setup #962
base: master
Are you sure you want to change the base?
Conversation
@hestiahacker hey this is my change for adding NICs more flexibly similar to what we discussed for disks. This one should be fully backwards compatible with the current method but allow more programmatic approach as well. |
I don't have time to test this change out this week, but I took a quick look at the code and have some feedback:
I'm imaging some machine that was set up with eth0 being the uplink and eth1 being to some internal network. The services running on the machine specify which network interface they should be listening on, but then a third interface is added and we want to be sure that the NICs are not reordered. In this example, we would want the new NIC to be eth2. Maybe this isn't a reasonable concern because we're just defining the IP address/netmask/gateway for a single interface and so it doesn't matter what order we list them in, the result will always be the sum of all the entries. In that case, I have questions about how to define which network interface each of these ipconfig blocks apply to. As you may have guessed, I don't currently apply multiple NICs nor multiple IP addresses to any of my machines. But I'm willing to give it a try on my test environment to help test out this feature. |
I tried running this branch and got a crash. Here's the output from
Here are my terraform files that I'm using to test: provider.tf:
and issue876.tf (one I had lying around for testing):
To reproduce my work, you'll need to define some variables that are specific to your environment. The template can be found here This test was intended to verify backwards compatibility. I expected this fork/branch to work the same as 3.0.1-rc1 with this configuration. The following test was going to be to try out the new configuration format. To try to determine if the crash was because of something I was doing wrong, I took a look at the line at the top of the stacktrace (resource_vm_qemu.go:829) and saw that it was changed by this MR. https://github.com/spettinichi/terraform-provider-proxmox/blame/ifconfig-flexibility/proxmox/resource_vm_qemu.go#L829 So I don't think this is a testing error on my part, but if so I'd be happy to run a different terraform file and give it another try. |
thanks for testing! given the breaking changes with disks in v3 we have abandoned using our own module to simplify configuration. that means that this isn’t particularly useful anymore, unfortunately. |
No description provided.