Here's how I'd like to define my floating ip:
# the jump host has a floating IP and association --------------------
resource "openstack_networking_floatingip_v2" "floatip_1" {
pool = "EXT_Corp"
fixed_ip = "10.0.2.134"
tenant_id = "${var.tenantId}"
}
But it always complains when I add the fixed IP:
* openstack_networking_floatingip_v2.floatip_1: Error allocating floating IP: Invalid request due to incorrect syntax or missing required parameters.
If I comment out the fixed_ip line, it seems to work, but it allocates an IP from the IP range of the pool network.
Settings for EXT_Corp network:
IP version: IPv4
CIDR 10.0.2.0/24
IP allocation pool
Start 10.0.2.56 - End 10.0.2.58
Start 10.0.2.130 - End 10.0.2.146
Start 10.0.2.160 - End 10.0.2.169
Gateway IP - 10.0.2.1
DHCP Enable Yes
What am I doing wrong?
Thanks,
Chris.