terraform-provider-ibm icon indicating copy to clipboard operation
terraform-provider-ibm copied to clipboard

BUG: cluster deployment failed due to Key fetching error

Open tapandhalsamanta opened this issue 3 years ago • 1 comments
trafficstars

Description: Cluster deployment failed due to Key fetching error

Image used: bootstrap: hpcc-scale-bootstrap-v2 compute: hpcc-scale5141-rhel79-v2 storage : hpcc-scale5141-rhel84-v2

Mode of deployement: Schematics UI

Error log: Error log: 2022/09/15 13:33:21 Terraform apply | 2022/09/15 13:33:21 Terraform apply | Error: [ERROR] Error fetching Keys An error occurred while performing the 'authenticate' step: Post "https://iam.cloud.ibm.com/identity/token": read tcp 172.30.22.217:60174->184.84.80.38:443: read: connection reset by peer 2022/09/15 13:33:21 Terraform apply | null 2022/09/15 13:33:21 Terraform apply | 2022/09/15 13:33:21 Terraform apply | 2022/09/15 13:33:21 Terraform apply | with data.ibm_is_ssh_key.storage_ssh_key, 2022/09/15 13:33:21 Terraform apply | on main.tf line 97, in data "ibm_is_ssh_key" "storage_ssh_key": 2022/09/15 13:33:21 Terraform apply | 97: data "ibm_is_ssh_key" "storage_ssh_key" { # This block is trying to fetch the key_pair details for compute node, which is dependent on the code present on public repo 2022/09/15 13:33:21 Terraform apply | 2022/09/15 13:33:21 [1m[31mTerraform APPLY error: Terraform APPLY errorexit status 1[39m[0m 2022/09/15 13:33:21 [1m[31mCould not execute job: Error : Terraform APPLY errorexit status 1[39m[0m

Code Template: data "ibm_is_ssh_key" "storage_ssh_key" { # This block is trying to fetch the key_pair details for compute node, which is dependent on the code present on public repo name = var.storage_cluster_key_pair }

variable "storage_cluster_key_pair" { type = string description = "Name of the SSH key configured in your IBM Cloud account that is used to establish a connection to the Storage cluster nodes. Make sure that the SSH key is present in the same resource group and region where the cluster is provisioned. The solution supports only one SSH key that can be attached to the storage nodes. If you do not have an SSH key in your IBM Cloud account, create one by using the SSH keys instructions." validation { condition = can(regex("^[a-z]+(-[a-z0-9]+)*$", var.storage_cluster_key_pair)) error_message = "Our automation code supports only one ssh key to be attached to the storage node." } }

tapandhalsamanta avatar Sep 21 '22 14:09 tapandhalsamanta

Due to a client side network error, the authentication failed on terraform

uibm avatar Sep 22 '22 09:09 uibm