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

Expose the error message when Cloud Logs instance provisioning fails #5729

Open
ocofaigh opened this issue Oct 15, 2024 · 0 comments
Open

Expose the error message when Cloud Logs instance provisioning fails #5729

ocofaigh opened this issue Oct 15, 2024 · 0 comments
Labels
service/Cloud Logs Issues related to Cloud Logs service/Resource Management Issues related to Resource Manager or Resource controller Issues

Comments

@ocofaigh
Copy link
Contributor

ocofaigh commented Oct 15, 2024

When Cloud Logs instance provisioning fails, it returns a generic message like this:

 2024/10/14 14:57:23 Terraform apply | ---
 2024/10/14 14:57:23 Terraform apply | id: terraform-446cc00a
 2024/10/14 14:57:23 Terraform apply | summary: '[ERROR] Error waiting for create resource instance
 2024/10/14 14:57:23 Terraform apply | (crn:v1:bluemix:public:logs:us-south:a/abac0df06b644a9cabc6e44f55b3880e:de2cb63b-6d18-4794-a5d4-4f1c10d40c0d::)
 2024/10/14 14:57:23 Terraform apply |   to be succeeded: [ERROR] The resource instance ''crn:v1:bluemix:public:logs:us-south:a/abac0df06b644a9cabc6e44f55b3880e:de2cb63b-6d18-4794-a5d4-4f1c10d40c0d::''
 2024/10/14 14:57:23 Terraform apply |   creation failed: <nil>'
 2024/10/14 14:57:23 Terraform apply | severity: error
 2024/10/14 14:57:23 Terraform apply | resource: ibm_resource_instance
 2024/10/14 14:57:23 Terraform apply | operation: create
 2024/10/14 14:57:23 Terraform apply | component:
 2024/10/14 14:57:23 Terraform apply |   name: github.com/IBM-Cloud/terraform-provider-ibm
 2024/10/14 14:57:23 Terraform apply |   version: 1.69.2
 2024/10/14 14:57:23 Terraform apply | ---

However, we do have the error message in RC's last_operation.description field but the TF provider resource_instance resource doesn't read it. Can the error be exposed in the provider output?

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

tf 1.9.2
provider 1.69.2

Affected Resource(s)

  • ibm_resource_instance

Terraform Configuration Files

https://github.com/terraform-ibm-modules/terraform-ibm-observability-instances/blob/main/modules/cloud_logs/main.tf

Debug Output

Panic Output

Expected Behavior

Expose the error in the log output

Actual Behavior

Generic error message returned with no information on why provisioning fails

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the service/Resource Management Issues related to Resource Manager or Resource controller Issues label Oct 15, 2024
@kavya498 kavya498 added the service/Cloud Logs Issues related to Cloud Logs label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Cloud Logs Issues related to Cloud Logs service/Resource Management Issues related to Resource Manager or Resource controller Issues
Projects
None yet
Development

No branches or pull requests

2 participants