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

Invalid node pool type, only support vm and ElasticBMS #548

Closed
kittitucht opened this issue Sep 18, 2020 · 12 comments
Closed

Invalid node pool type, only support vm and ElasticBMS #548

kittitucht opened this issue Sep 18, 2020 · 12 comments

Comments

@kittitucht
Copy link

kittitucht commented Sep 18, 2020

resource "huaweicloud_cce_node_pool" "node_pool" {
cluster_id = huaweicloud_cce_cluster.mycluster1.id
name = "testpool"
os = "EulerOS"
initial_node_count = 2
flavor_id = "s3.large.2"
password = "JDYkS1oydTcxQ0Q0SmpRbmVBeSRXRjVkc29PalRnYzlSRDQ2aTQ2Y0NMM0g5MkxNRW83OHMwckhkZlNMREU4UFc3eWxFMklDY3hVR0Y3LzhSQmJueFcwY3JnQTNaR05GQTBMTGdGYVlEMA=="
scall_enable = true
min_node_count = 1
max_node_count = 10
scale_down_cooldown_time = 100
priority = 1

root_volume {
size = 40
volumetype = "SAS"
}
data_volumes {
size = 100
volumetype = "SAS"
}
}

failed with error message of
Invalid node pool type, only support vm and ElasticBMS

@niuzhenguo
Copy link
Member

@Jason-Zhang9309 please have a look at this!

@niuzhenguo niuzhenguo assigned niuzhenguo and unassigned niuzhenguo Sep 19, 2020
@Jason-Zhang9309
Copy link
Collaborator

This problem has been fixed with pr #554 . A new required parameter "type" was added. Possible values are: "vm" and "ElasticBMS".
You can update your local repo, make build, and try again.

@Jason-Zhang9309
Copy link
Collaborator

@kittitucht

@kittitucht
Copy link
Author

kittitucht commented Sep 21, 2020

This problem has been fixed with pr #554 . A new required parameter "type" was added. Possible values are: "vm" and "ElasticBMS".
You can update your local repo, make build, and try again.

Error: Unsupported argument

on main.tf line 57, in resource "huaweicloud_cce_node_pool" "node_pool":
57: type = "vm"

An argument named "type" is not expected here.
Well, I'll wait for a new release then ^^

@Jason-Zhang9309
Copy link
Collaborator

@kittitucht We found out that it was an API problem. They have fixed it. So your tf script could be useful. Don't add "type", and try again.

@kittitucht
Copy link
Author

@Jason-Zhang9309 still got the error
Error: Error creating HuaweiCloud Node Pool: Bad request with: [POST https://cce.ap-southeast-2.myhuaweicloud.com/api/v3/projects/09a74fecf6800f022f9cc0091dfa99a4/clusters/3a1419a6-ff41-11ea-bf7f-0255ac1019db/nodepools], error message: {"error_code":"CCE_CM.0201","error_msg":"Request body invalid","message":"invalid node pool type, only support vm and ElasticBMS","errorCode":"E.CFE.4000201","reason":"Request body invalid"}

@niuzhenguo
Copy link
Member

@kittitucht which region are you using?

@kittitucht
Copy link
Author

kittitucht commented Sep 30, 2020

@niuzhenguo I'm using region ap-southeast-2

@niuzhenguo
Copy link
Member

@kittitucht That's an API side issue, please create a ticket on Cloud side if it still exists.

@kittitucht
Copy link
Author

@niuzhenguo I have raised it on Cloud side, but they said that the API can create a node pool
https://support.huaweicloud.com/api-cce/cce_ 02_ 0354.html
image

@niuzhenguo
Copy link
Member

@kittitucht Do you still face the same problem? If it's not fixed on the Cloud side till now, you can try our new release v1.19.1 which added a new type parameter for cce node pool.

@kittitucht
Copy link
Author

@kittitucht Do you still face the same problem? If it's not fixed on the Cloud side till now, you can try our new release v1.19.1 which added a new type parameter for cce node pool.

I have tried a new release of v1.19.1 and it fixes the problem.

Thank you very much.

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

3 participants