-
Notifications
You must be signed in to change notification settings - Fork 137
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
[BUG] "Invalid region" error when using OVH Terraform module ovh_cloud_project_network_private and Local Zone #802
Comments
Hello @jtrebaol, You are right, the resource After checking, we have no easy way to update the current resource to handle the local zones, so we will add a new resource |
Thanks @amstuta for your analysis |
Hello @amstuta In which Terraform ovh provider release this bug is fixed? Thanks |
Hello @jtrebaol, you can use the new resource |
Following test, seems the subnet { start / end } arguments for allocation_pool are not taken into account: ==> Resource added
==> tofu apply
==> Result: allocation pool is set to 10.10.232.1 - 10.10.232.254 which is not expected
|
Hello @jtrebaol, there are two issues here:
allocation_pools = [
{
start = "10.10.232.50"
end = "10.10.232.100"
}
] I'll check to fix the doc.
|
Fix has been merged and will be released in a few days. |
Describe the bug
Issue is only observed with Terraform module "ovh_cloud_project_network_private" and Local Zone. No issue with module OpenStack "openstack_networking_network_v2"
Terraform Version
OpenTofu v1.8.5
OVH Terraform Provider Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
│ Error: calling /cloud/project/2f23ff001e304c81a88c728cf68c739e/network/private with params projectId: 2f23ff001e304c81a88c728cf68c739e, vlanId:98, name: Private_network_MAD, regions: [EU-SOUTH-LZ-MAD-A]:
│ "OVHcloud API error (status code 400): Client::BadRequest: "Invalid region EU-SOUTH-LZ-MAD-A" (X-OVH-Query-Id: EU.ext-4.677f8595.2300585.24b33c1c8894afd19f753b041caea0fb)"
│
Expected Behavior
ovh_cloud_project_network_private and ovh_cloud_project_network_private_subnet shall support Local Zones region
Actual Behavior
Seems the Local Zones region are not supported yet on ovh modules
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
create the network.tf file with above example
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: