-
Notifications
You must be signed in to change notification settings - Fork 53
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
Primary IP cannot be changed via opennebula_virtual_network_address_range
#505
Comments
Hey guys, |
This issue is stale because it has been open for 30 days with no activity and it has not the 'status: confirmed' label or it is not in a milestone. Remove the 'status: stale' label or comment, or this will be closed in 5 days. |
The current provider behavior when updating the Looking at your problem: the provider is not able to detach the AR because I'm not sure that we should manage the VM NIC addresses from the AR resource so I'm not sure we should directly modify the provider here but I'm open to discuss. Any idea @frousselet ? |
I suppose you mean 'not able to detach the NIC' I was thinking about a new locals {
ip = "192.168.1.5"
}
resource "opennebula_virtual_network_address_range" "ar" {
virtual_network_id = data.opennebula_virtual_network.vnet.id
ip4 = local.ip # Force recreate when changed
size = 1
}
resource "opennebula_nic" "nic" {
model = "virtio"
virtio_queues = local.virtio_queues
network_id = data.opennebula_virtual_network.vnet.id
ip4 = local.ip # Force recreate when changed
depends_on = [
opennebula_virtual_network_address_range.ar
]
}
resource "opennebula_virtual_machine" "vm" {
...
}
resource "opennebula_nic_attachement" "vmnic" {
vm_id = opennebula_virtual_machine.vm.id
nic_id = opennebula_nic.nic.id
} If you change the |
I don't see any problems with this approach. |
Hi guys, is anybody working on this? |
BUMP! |
Description
Provider version: 1.2.2
OpenNebula version: 6.4.0.1
opennebula_virtual_network_address_range cannot update existing IPs
Terraform and Provider version
Affected resources and data sources
No response
Terraform configuration
No response
Expected behavior
The existing IP should be released and replaced with the new one.
Actual behavior
Steps to Reproduce
Debug output
No response
Panic output
No response
Important factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: