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

Creating ibm_pi_key fails everytime with context deadline exceeded #2527

Closed
yussufsh opened this issue Apr 22, 2021 · 2 comments
Closed

Creating ibm_pi_key fails everytime with context deadline exceeded #2527

yussufsh opened this issue Apr 22, 2021 · 2 comments
Labels
service/Power Systems Issues related to Power Systems

Comments

@yussufsh
Copy link
Collaborator

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

terraform version

Terraform v0.13.5

  • provider registry.terraform.io/ibm-cloud/ibm v1.21.1

Affected Resource(s)

  • ibm_pi_key

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

terraform {
  required_providers {
    ibm = {
      source = "ibm-cloud/ibm"
      version = "1.21.1"
    }
  }
  required_version = "~> 0.13.0"
}
provider "ibm" {
    ibmcloud_api_key = var.ibmcloud_api_key
    region           = var.ibmcloud_region
    zone             = var.ibmcloud_zone
}
resource "ibm_pi_key" "key" {
    pi_cloud_instance_id = var.service_instance_id
    pi_key_name          = "yus-keypair"
    pi_ssh_key           = var.public_key
}

Debug Output

trace_v1.23.2.log
trace_v1.21.1.log
trace_v1.21.0.log

Panic Output

Expected Behavior

The key creation should work with the latest version of IBM Cloud provider

Actual Behavior

Latest version of the provider throws below error every time.

# terraform apply --auto-approve
ibm_pi_key.key: Creating...

Error: Failed to create the key Failed to Create PI Key yus-keypair :Post "https://tor.power-iaas.cloud.ibm.com/pcloud/v1/tenants/65b64c1f1c29460e8c2e4bbfbd893c2c/sshkeys": context deadline exceeded

  on main.tf line 20, in resource "ibm_pi_key" "key":
  20: resource "ibm_pi_key" "key" {

The code works fine with v1.21.0 version. Issue started occurring from v1.21.1.

Steps to Reproduce

  1. terraform apply

Important Factoids

The code works fine with v1.21.0 version. Issue started occurring from v1.21.1.

References

  • #0000
@kavya498 kavya498 added the service/Power Systems Issues related to Power Systems label Apr 22, 2021
@kavya498
Copy link
Collaborator

kavya498 commented May 6, 2021

@yussufsh ,
Work around has been provided in latest release..
Can you please confirm if you still see this issue?

@yussufsh
Copy link
Collaborator Author

This issue has been resolved with the latest release.. thanks @kavya498 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Power Systems Issues related to Power Systems
Projects
None yet
Development

No branches or pull requests

2 participants