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

create CCE node pool failed by the password and key_pair conflicts #3398

Open
ik8svip opened this issue Sep 9, 2023 · 4 comments
Open

create CCE node pool failed by the password and key_pair conflicts #3398

ik8svip opened this issue Sep 9, 2023 · 4 comments
Assignees

Comments

@ik8svip
Copy link

ik8svip commented Sep 9, 2023

Terraform Version

$ terraform version
Terraform v1.5.7
on linux_amd64
+ provider registry.terraform.io/hashicorp/http v3.4.0
+ provider registry.terraform.io/hashicorp/local v2.4.0
+ provider registry.terraform.io/huaweicloud/huaweicloud v1.55.0

Terraform Configuration Files

Debug Output

When I just set key_pair without the parameter password then got the error

│ Error: error creating CCE node pool: Missing input for argument [Password]
│ 
│   with module.cce.huaweicloud_cce_node_pool.general,
│   on modules/huaweicloud/cce/cce-node-general.tf line 12, in resource "huaweicloud_cce_node_pool" "general":
│   12: resource "huaweicloud_cce_node_pool" "general" {

When I just set both key_pair and password then get the error

│ Error: Invalid combination of arguments
│ 
│   with module.cce.huaweicloud_cce_node_pool.general,
│   on modules/huaweicloud/cce/cce-node-general.tf line 23, in resource "huaweicloud_cce_node_pool" "general":
│   23:   key_pair                 = local.key_pair
│ 
│ "key_pair": only one of `key_pair,password` can be specified, but `key_pair,password` were specified.

The resources cce_node has the same issue

Crash Output

Expected Behavior

Actual Behavior

Steps to Reproduce

Additional Context

References

@ik8svip
Copy link
Author

ik8svip commented Sep 9, 2023

Tried to set a password and set the the sshkey with preinstall script got the error with no useful information...

│ Error: error creating CCE node pool: Bad request with: [POST https://cce.la-north-2.myhuaweicloud.com/api/v3/projects/b13b1c6c27344cfe95829cf0b0207e6e/clusters/d07ba17e-4eb0-11ee-a81f-0255ac100100/nodepools], request_id: 217b93ae9f49cc73244fc1aefa716394, error message: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","code":400,"errorCode":"CCE.01400001","errorMessage":"Invalid request.","error_code":"CCE_CM.0004","error_msg":"Request is invalid","message":"Unexpected initial node password format","reason":"BadRequest"}

@ik8svip
Copy link
Author

ik8svip commented Sep 9, 2023

│ Error: error creating CCE node pool: Bad request with: [POST https://cce.la-north-2.myhuaweicloud.com/api/v3/projects/b13b1c6c27344cfe95829cf0b0207e6e/clusters/d07ba17e-4eb0-11ee-a81f-0255ac100100/nodepools], request_id: 8e99f03e3dc173c52fe9ca08203086ad, error message: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","code":400,"errorCode":"CCE.01400001","errorMessage":"Invalid request.","error_code":"CCE_CM.0004","error_msg":"Request is invalid","message":"ECS server group ID [7c7e649c-f524-4e77-855b-44c572b3f728] not found","reason":"BadRequest"}

@ik8svip
Copy link
Author

ik8svip commented Sep 9, 2023

│ Error: error creating CCE node pool: Action forbidden: [POST https://cce.la-north-2.myhuaweicloud.com/api/v3/projects/b13b1c6c27344cfe95829cf0b0207e6e/clusters/d07ba17e-4eb0-11ee-a81f-0255ac100100/nodepools], request_id: 904bcf822241b3d03e0f368861d10842, error message: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","code":403,"errorCode":"CCE.01403001","errorMessage":"Forbidden.","error_code":"CCE_CM.0002","error_msg":"Forbidden","message":"Not 

@ShiChangkuo
Copy link
Collaborator

@ik8svip can you share the configuration file?

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