You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This worked fine until I recently added the "extra_groups" = "gpu_node" line (feature from https://github.com/kubernetes-sigs/kubespray/pull/9211/files). This should just add "gpu_node" to kubespray_groups of one node. However when I terraform apply, it tries to remove the "no_floating" group from all nodes, even though floating_ip is still false!
Terraform will perform the following actions:
# module.compute.openstack_compute_instance_v2.k8s_nodes["b01"] will be updated in-place
~ resource "openstack_compute_instance_v2" "k8s_nodes" {
id = "c8d647bb-565a-44b4-ae78-bd6b0d5affb9"
~ metadata = {
~ "kubespray_groups" = "kube_node,k8s_cluster,no_floating," -> "kube_node,k8s_cluster,,"
# (3 unchanged elements hidden)
}
}
# module.compute.openstack_compute_instance_v2.k8s_nodes["b02"] will be updated in-place
~ resource "openstack_compute_instance_v2" "k8s_nodes" {
id = "037dac0d-a137-42f6-bd35-ef97cba0f5e3"
~ metadata = {
~ "kubespray_groups" = "kube_node,k8s_cluster,no_floating," -> "kube_node,k8s_cluster,,"
# (3 unchanged elements hidden)
}
}
# module.compute.openstack_compute_instance_v2.k8s_nodes["v01"] will be updated in-place
~ resource "openstack_compute_instance_v2" "k8s_nodes" {
id = "254f01e0-657d-483c-9197-30b4e8382822"
~ metadata = {
~ "kubespray_groups" = "kube_node,k8s_cluster,no_floating," -> "kube_node,k8s_cluster,,gpu_node"
# (3 unchanged elements hidden)
}
}
Plan: 0 to add, 3 to change, 0 to destroy.
I've spent hours trying to reproduce this potential Terraform bug in a simpler/independent environment than Kubespray but have not been able to :(
I tried Terraform versions 1.3.9, 1.4.7 and 1.6.6.
I tried .terraform/providers/registry.terraform.io/terraform-provider-openstack/openstack/1.48.0 and also did terraform init -upgrade , upgrading the openstack provider version to 1.53.0.
I tried creating openstack compute instances in a Terraform module using for_each and the same variable definitions and metadata definition
which resulted in "FLOATING" being added, confirming that if each.value.floating_ip == false was evaluating to the opposite of what it should be!
I also tried removing the "extra_groups" = "gpu_node" line and confirmed that this causes the bug to go away again, and the no_floating group comes back.
Environment:
Cloud provider or hardware configuration:
Openstack
Kubespray version (commit) (git rev-parse --short HEAD):
7b936bc80
The text was updated successfully, but these errors were encountered:
I have
This worked fine until I recently added the
"extra_groups" = "gpu_node"
line (feature from https://github.com/kubernetes-sigs/kubespray/pull/9211/files). This should just add "gpu_node" to kubespray_groups of one node. However when I terraform apply, it tries to remove the "no_floating" group from all nodes, even though floating_ip is still false!I've spent hours trying to reproduce this potential Terraform bug in a simpler/independent environment than Kubespray but have not been able to :(
I tried Terraform versions 1.3.9, 1.4.7 and 1.6.6.
I tried .terraform/providers/registry.terraform.io/terraform-provider-openstack/openstack/1.48.0 and also did
terraform init -upgrade
, upgrading the openstack provider version to 1.53.0.I tried creating openstack compute instances in a Terraform module using for_each and the same variable definitions and metadata definition
but still could not reproduce it. There must be some extra complications in the Kubespray Terraform environment triggering this issue.
I did however try modifying the code to
which resulted in "FLOATING" being added, confirming that
if each.value.floating_ip == false
was evaluating to the opposite of what it should be!I also tried removing the
"extra_groups" = "gpu_node"
line and confirmed that this causes the bug to go away again, and the no_floating group comes back.Environment:
Openstack
Kubespray version (commit) (
git rev-parse --short HEAD
):7b936bc80
The text was updated successfully, but these errors were encountered: