FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

[flexibleengine_cce_node_pool_v3] random AZ does not behave as expected #632

Closed gerardbonneto closed 2 years ago

gerardbonneto commented 3 years ago

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v1.0.8. on linux_amd64

Affected Resource(s)

Please list the resources as a list, for example:

Expected Behavior

I have created a node pool within a multi-AZ cluster. The nodepool has been specified with a the availability_zone param set to "random".

What should have happened? The nodes should be randomly and evenly distributed among the cluster AZs, as specified in the documentation.

Actual Behavior

All the nodes are located in the same AZ.

Steps to Reproduce

module.cluster.module.cce_cluster.flexibleengine_cce_cluster_v3.cluster_k8s will be created

gllb commented 3 years ago

Hello,

I think this issue is related to the FlexibleEngine API Backend not the terraform provider. As terraform is just sending the request to the API.

antonin-a commented 3 years ago

@qukuijin1989 can you please check this issue and confirm if it is related to the already identified "nodepool" (certificat) issue on Flexible Engine backend side ?

EmmanuelB28 commented 3 years ago

Hello @qukuijin1989 our prospect Gerard Bonneto wait a answer since 2 weeks now.....

qukuijin1989 commented 3 years ago

hi @EmmanuelB28 the problem is that random nodepool doesn't setup the node in distribute AZ right?

gerardbonneto commented 3 years ago

Hello, Yes, this is the issue. When I add a node to a "random_AZ" cluster from the Flexibleengine portal, it works as expected: the node is created in a ramdom AZ. Whereas, with terraform, all the node are located in the same AZ (AZ1).

EmmanuelB28 commented 3 years ago

@qukuijin1989 It is important that our client Gérard can have a precise and fast answer on his request because today his project is blocked thank's a lot for your help

qukuijin1989 commented 3 years ago

hi @EmmanuelB28 for the nodepool (with random_az), when user create several nodes in one time, all your node (which create in the same time) wil be placed in the same az (random one of the 3 az) for example: user create 5 node at the same time the 5 node will all be placed in AZ1, next time create 5 nodes at the same time, it may be placed all in AZ2

gerardbonneto commented 3 years ago

@qukuijin1989, this is exactly my concerns. So what are your recommendations for building an HA CCE cluster with terraform only ?

qukuijin1989 commented 3 years ago

HA cluster, for master you can have a 3 node in different AZ, so it's HA for node pool when you create node can have a set manual to point the AZ, also i will check with R&D if they can delivery a feature to do it automatic

gllb commented 3 years ago

Hello @gerardbonneto,

As a workaround you can also use the CCE terraform module to create a multi-az cluster and attach node_pool_list (or node_list) with different az for each element of the list. Example in the readme.

ShiChangkuo commented 2 years ago

I'm going to close this issue because there are no updates for 20 days. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.