Hi there,
Terraform fails to update the start and end properties of allocation_pools on openstack_networking_network_v2 resources.
0.8.2
openstack_networking_subnet_v2.bugreportresource "openstack_networking_network_v2" "bugreport" {
name = "bugreport"
region = "sal01"
shared = "false"
admin_state_up = "true"
}
resource "openstack_networking_subnet_v2" "bugreport" {
name = "bugreport"
region = "sal01"
network_id = "${openstack_networking_network_v2.bugreport.id}"
ip_version = 4
cidr = "10.0.1.0/24"
gateway_ip = "10.0.1.1"
enable_dhcp = "true"
allocation_pools = {
start = "10.0.1.150"
end = "10.0.1.200"
}
}
https://gist.github.com/cassianoleal/c0c55ca6b1479c971832650dc64927f4
Apply should have changed the allocation_pools for the openstack_networking_subnet_v2 resource.
Nothing, apparently. allocation_pools were left intact and subsequent plans show the intended changes again.
Please list the steps required to reproduce the issue, for example:
terraform applyallocation_pools start and/or end valuesterraform applyterraform planneutron subnet-show bugreportObs: After a manual update using neutron subnet-update the plan comes empty as expected.
@cassianoleal Thank you for reporting this and sorry for the delay.
I've just confirmed that the provider (and the underlying OpenStack library) does not support updating the allocation pools yet. I'll work on getting this added.
Just faced the same issue. The workaround for me was to change the pool size via Horizon.
Quick update: I've submitted a patch to Gophercloud to support this. Once it's merged, I'll get this into Terraform right away.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
@cassianoleal Thank you for reporting this and sorry for the delay.
I've just confirmed that the provider (and the underlying OpenStack library) does not support updating the allocation pools yet. I'll work on getting this added.