terraform-redhat / terraform-rhcs-rosa-hcp

Repository for rosa hcp modules
3 stars 12 forks source link

autoscaler for cluster xxxxxx might already exists. #12

Open bobby0724 opened 5 months ago

bobby0724 commented 5 months ago

Hello i am having this issue to create a hcp cluster with autoscale enable

module.rosa_cluster_hcp.rhcs_cluster_rosa_hcp.rosa_hcp_cluster: Modifying... [id=2as8ja8fdlblueccm19sehb6s6d0m40t] module.rosa_cluster_hcp.rhcs_cluster_rosa_hcp.rosa_hcp_cluster: Modifications complete after 1s [id=2as8ja8fdlblueccm19sehb6s6d0m40t] module.rosa_cluster_hcp.rhcs_hcp_cluster_autoscaler.cluster_autoscaler[0]: Creating... Error: Can't create autoscaler with module.rosa_cluster_hcp.rhcs_hcp_cluster_autoscaler.cluster_autoscaler[0], on .terraform/modules/rosa_cluster_hcp/modules/rosa-cluster-hcp/main.tf line 113, in resource "rhcs_hcp_cluster_autoscaler" "cluster_autoscaler": 113: resource "rhcs_hcp_cluster_autoscaler" "cluster_autoscaler" { Autoscaler for cluster '2as8ja8fdlblueccm19sehb6s6d0m40t' might already exists. Error: status is 403, identifier is '403', code is 'CLUSTERS-MGMT-403' and operation identifier is '76f0df43-0be9-434d-8f1e-3cd1f4ae4c01': Autoscaler configuration is not available

gdbranco commented 5 months ago

The resource on TF is already prepared. However, the autoscaler functionality is not yet available publicly for HCP We plan to fully open the functionality, when the time comes TF will also be able to leverage the usage

davivcgarcia commented 2 weeks ago

Is this cluster_autoscaler feature the same that we see in the OCM UI when creating ROSA HCP?

Screenshot 2024-10-04 at 17 44 11

gdbranco commented 2 weeks ago

@davivcgarcia No, this is a cluster autoscaler. That one currently in the UI is the autoscaling parameters for the initial instance pool for customer workload that you get when installing the cluster. The cluster autoscaler has many more options in comparison to min and max nodes

The configuration for instance pools is available through the machine pool resource

davivcgarcia commented 2 weeks ago

@gdbranco Do you have an example of how to setup the default worker machine pool autoscaling parameters at cluster creation? And what is the difference between the cluster autoscaler and the autoscaling parameters from the machine pools?