terraform-provider-stackit
terraform-provider-stackit copied to clipboard
Wrong OS version in node pool leads to ambigious error message
trafficstars
A wrong OS Version in the node pool will fail the provisioning of the SKE-Cluster but will show a ambigious/misleading error message.
The OS version 3602.2.1 does not exist.
resource "stackit_ske_cluster" "cluster" {
project_id = var.stackit_project_id
name = "example"
kubernetes_version = "1.26"
node_pools = [
{
name = "pool-reg-t04"
machine_type = "g1.2" # 2 CPU, 8 GB RAM
# this os version doesnt exist anymore
os_version = "3602.2.1"
minimum = "1"
maximum = "5"
max_surge = "1"
availability_zones = ["eu01-3"]
volume_size = 30
volume_type = "storage_premium_perf1"
}
]
}
module.ske_cluster.stackit_ske_cluster.cluster: Creating...
╷
│ Error: Error creating/updating cluster
│
│ with module.ske_cluster.stackit_ske_cluster.cluster,
│ on modules/ske_cluster/main.tf line 1, in resource "stackit_ske_cluster" "cluster":
│ 1: resource "stackit_ske_cluster" "cluster" {
│
│ Calling API: 400 Bad Request, status code 400, Body:
│ {"code":"InvalidArgument","message":"invalid input: cluster with name
│ \"example\"","details":""}
I would expect to receive a error message indicating that the OS version does not exist.
Hi @robertadesso1, thanks for opening the issue. We have this in our backlog and will work on it soon.
This enhancement has been implemented in the latest version of the provider v0.18.0