Skip to content
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

Tags node pool list won't work #1123

Open
danielcaldararu opened this issue May 28, 2024 · 2 comments
Open

Tags node pool list won't work #1123

danielcaldararu opened this issue May 28, 2024 · 2 comments

Comments

@danielcaldararu
Copy link

Hello,

I'm trying to add some tag(s) at the node_pool_list that will assign tags based on what is declared in TMS to each node created, but in my case it doesn't work.
Reason for doing is, is do see the tags on my bill by using the TMS.

Based on the documentation here, it seems that is possible to do it as it is optional, but, my pipeline is failing due to this error:

│ The given value is not suitable for module.cce2_cluster.var.node_pool_list │ declared at module/cce-runtime/variables.tf:115,1-26: element 1: │ attribute "tags" is required.

I can confirm that is declared but I'm not sure what am I doing wrong.
Note that we are not using the node_list, but the node_pool_list that each argument has a count index. Looks like this

node_pool_list = [
{
node_pool_index = "node0"
node_pool_name = var.nodepool_config[0].name
node_flavor = var.nodepool_config[0].flavor
availability_zone = var.nodepool_config[0].availability_zone
initial_node_count = var.nodepool_config[0].initial_node_count
scale_enable = var.nodepool_config[0].scale_enable
min_node_count = var.nodepool_config[0].min_node_count
max_node_count = var.nodepool_config[0].max_node_count
.
.
.

  **tags                     = {
    test1 = "test2"**
  }

What am I doing wrong?
Let me know if I can provide more details about it.

Thanks

@danielcaldararu
Copy link
Author

Hello,
Is there someone that can help me with this point?
Do you need more details?

@danielcaldararu
Copy link
Author

I managed to add the tags and it seems that the pipeline shows me that it will create them, but while running the pipeline I'm getting this error:

module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Modifying... [id=55ff12cd-1843-11ef-8139-0255ac10004f]
local_file.terraform_dotenv: Creating...
local_file.terraform_dotenv: Creation complete after 0s [id=1341e350ac32c12969277df50d5d8e788ae8f7d9]

module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Still modifying... [id=55ff12cd-1843-11ef-8139-0255ac10004f, 10s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Still modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038, 10s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Still modifying... [id=55ff12cd-1843-11ef-8139-0255ac10004f, 20s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Still modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038, 20s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Still modifying... [id=55ff12cd-1843-11ef-8139-0255ac10004f, 30s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Still modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038, 30s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Still modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038, 40s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Still modifying... [id=55ff12cd-1843-11ef-8139-0255ac10004f, 40s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Still modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038, 50s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Still modifying... [id=55ff12cd-1843-11ef-8139-0255ac10004f, 50s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool1"]: Still modifying... [id=29af4ace-0ebf-11ef-9055-0255ac100038, 1m0s elapsed]
module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"]: Still modifying... [id=55ff12cd-1843-11ef-

│ Error: Error creating Flexibleengine CCE Node Pool: unexpected state '', wanted target 'COMPLETED'. last error: %!s()

│ with module.cce2_cluster.flexibleengine_cce_node_pool_v3.cce_node_pool["nodepool0"],
│ on module/cce-runtime/main.tf line 71, in resource "flexibleengine_cce_node_pool_v3" "cce_node_pool":
│ 71: resource "flexibleengine_cce_node_pool_v3" "cce_node_pool" {

What's strange is that, in CCE GUI, tags are not visibile, but on the tf state file they exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant