Open fshuva opened 1 year ago
looking into it
Hi team @ujjwal-ibm
Customer updated:
Looks like the Schematics server is unable to pull the image sometimes and is timing out since when I run terraform the first time it error'd out at image pull with an error ""The IAM token that was specified in the request has expired or is invalid. The request is not authorized to access the Cloud Object Storage resource." and later tries (multiple attempts) were all successful.
Failure: complete after 0s [id=kwte] 2023/01/05 23:56:36 Terraform apply | ibm_is_image.vnf_custom_image: Creating... 2023/01/05 23:56:36 Terraform apply | ibm_is_volume.logDisk: Creating... 2023/01/05 23:56:46 Terraform apply | ibm_is_volume.logDisk: Still creating... [10s elapsed] 2023/01/05 23:56:51 Terraform apply | ibm_is_volume.logDisk: Creation complete after 15s [id=r014-a4b06223-c281-48c9-86c6-fe9b8f45d950] 2023/01/05 23:56:51 Terraform apply | 2023/01/05 23:56:51 Terraform apply | Error: [DEBUG] Image creation err The IAM token that was specified in the request has expired or is invalid. The request is not authorized to access the Cloud Object Storage resource. 2023/01/05 23:56:51 Terraform apply | { 2023/01/05 23:56:51 Terraform apply | "StatusCode": 403, 2023/01/05 23:56:51 Terraform apply | "Headers": { 2023/01/05 23:56:51 Terraform apply | "Cache-Control": [ 2023/01/05 23:56:51 Terraform apply | "max-age=0, no-cache, no-store, must-revalidate"
Success: 2023/01/06 00:31:40 Terraform apply | ibm_is_image.vnf_custom_image: Creating... 2023/01/06 00:31:50 Terraform apply | ibm_is_image.vnf_custom_image: Still creating... [10s elapsed] 2023/01/06 00:32:00 Terraform apply | ibm_is_image.vnf_custom_image: Still creating... [20s elapsed] 2023/01/06 00:32:10 Terraform apply | ibm_is_image.vnf_custom_image: Still creating... [30s elapsed] 2023/01/06 00:32:15 Terraform apply | ibm_is_image.vnf_custom_image: Creation complete after 36s [id=r014-1a3e028e-2462-473d-a76f-d23c6df9b104] 2023/01/06 00:32:15 Terraform apply | ibm_is_instance.fgt1: Creating... 2023/01/06 00:32:25 Terraform apply | ibm_is_instance.fgt1: Still creating... [10s elapsed] 2023/01/06 00:32:35 Terraform apply | ibm_is_instance.fgt1: Still creating... [20s elapsed] 2023/01/06 00:32:40 Terraform apply | ibm_is_instance.fgt1: Creation complete after 25s [id=0757_ef779f6c-c91f-42d3-8e73-89624c924f0a]
Team, Do we have any update on this please ?
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform : v1.1.9 IBM Provider: v1.49.0
Affected Resource(s)
Terraform Configuration Files
terraform.zip
Debug Output
https://gist.github.com/fshuva/f3aa1f8c9ff6d93fa98331ec28c6e1cd
Expected Behavior
An image should have been created. Below is a debug log from a successful deployment:
Actual Behavior
Deployment failed with error "The IAM token that was specified in the request has expired or is invalid. The request is not authorized to access the Cloud Object Storage resource."
This issue is intermittent. Sometimes the deployment will be successful with no errors.
Steps to Reproduce
terraform apply