Skip to content

Can’t Discover or Scale Extended CCE NodePool Groups #7279

@weeix

Description

@weeix

Update:
It seems the document is the problem here.

From https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/cce_node_pool_scale :

  • scale_groups - (Required, List, NonUpdatable) Specifies the IDs of scale groups to scale. default indicates the default group.

However, In https://support.huaweicloud.com/intl/en-us/api-cce/ScaleNodePool.html#section3 :

Parameter: scaleGroups
Mandatory: Yes
Type: Array of strings
Definition: Name of the scaling group in a node pool to be scaled.

It accepts names, not IDs.


Problem:
You can’t scale any group beyond “default” because there’s no way to know or fetch the IDs of extended scale groups—huaweicloud_cce_node_pool data source doesn’t expose them.

Repro:

  1. Create a NodePool with extra scale groups.

  2. In Terraform:

    resource "huaweicloud_cce_node_pool_scale" "test" {
      cluster_id         = var.cluster_id
      nodepool_id        = var.nodepool_id
      scale_groups       = ["????????"]  # what goes here?
      desired_node_count = 2
    }

Expected Fix:

  • Data Source: huaweicloud_cce_node_pool must return all scale groups with id.

Without this, users can’t know what to put in scale_groups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions