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

terraform-provider-ibm_v1.32.1 plugin crashed (during import) #3643

Closed
zafersever opened this issue Mar 4, 2022 · 0 comments · Fixed by #3645
Closed

terraform-provider-ibm_v1.32.1 plugin crashed (during import) #3643

zafersever opened this issue Mar 4, 2022 · 0 comments · Fixed by #3645
Labels
bug crash Panics on provider service/Resource Management Issues related to Resource Manager or Resource controller Issues

Comments

@zafersever
Copy link

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 -v
Terraform v1.1.6
on darwin_amd64

  • provider registry.terraform.io/hashicorp/ibm v1.32.1
  • provider registry.terraform.io/hashicorp/template v2.2.0

Affected Resource(s)

  • ibm_resource_instance

Terraform Configuration Files

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

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

ibm_resource_instance.batch_db2: Importing from ID "crn:v1:bluemix:public:dashdb-for-transactions:eu-de:a/::"...
ibm_resource_instance.batch_db2: Import prepared!
Prepared ibm_resource_instance for import
ibm_resource_instance.batch_db2: Refreshing state... [id=crn:v1:bluemix:public:dashdb-for-transactions:eu-de:a/::]

│ Error: Plugin did not respond

│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.

Stack trace from the terraform-provider-ibm_v1.32.1 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2d3b1f3]

goroutine 161 [running]:
github.com/IBM-Cloud/terraform-provider-ibm/ibm.resourceIBMResourceInstanceRead(0xc00032e900, 0x3575da0, 0xc00108e000, 0x48d7b80, 0xc000108000)
github.com/IBM-Cloud/terraform-provider-ibm/ibm/resource_ibm_resource_instance.go:567 +0x1153
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000897340, 0x3a98228, 0xc0000ae380, 0xc00032e900, 0x3575da0, 0xc00108e000, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:335 +0x1ee
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000897340, 0x3a98228, 0xc0000ae380, 0xc001358310, 0x3575da0, 0xc00108e000, 0xc0005904b8, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:624 +0x1cb
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc00048cc00, 0x3a98228, 0xc0000ae380, 0xc0000ae440, 0xc0000ae380, 0x100b705, 0x33f7000)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/grpc_provider.go:575 +0x43b
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ReadResource(0xc000da6a40, 0x3a982d0, 0xc0000ae380, 0xc0010fe3c0, 0xc000da6a40, 0xc000f981e0, 0xc001021ba0)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/server/server.go:298 +0x105
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler(0x34a2080, 0xc000da6a40, 0x3a982d0, 0xc000f981e0, 0xc0010fe360, 0x0, 0x3a982d0, 0xc000f981e0, 0xc00135d000, 0x391)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:344 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0008161c0, 0x3ab1358, 0xc0004a7200, 0xc0012ac000, 0xc000b69170, 0x4879850, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0008161c0, 0x3ab1358, 0xc0004a7200, 0xc0012ac000, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc00049c330, 0xc0008161c0, 0x3ab1358, 0xc0004a7200, 0xc0012ac000)
google.golang.org/grpc@v1.32.0/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.32.0/server.go:857 +0x1fd

Error: The terraform-provider-ibm_v1.32.1 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform import ibm_resource_instance.batch_db2 crn:v1:bluemix:public:dashdb-for-transactions:eu-de:a/::

Important Factoids

References

  • #0000
@github-actions github-actions bot added bug crash Panics on provider service/Resource Management Issues related to Resource Manager or Resource controller Issues labels Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug crash Panics on provider service/Resource Management Issues related to Resource Manager or Resource controller Issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant