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

panic: unknown resource type google_compute_region_instance_group (dup #683) #1050

Closed
georgewilliamherbert opened this issue Sep 14, 2021 · 8 comments
Labels

Comments

@georgewilliamherbert
Copy link

This duplicates / reopens #683 which is closed and I can't reopen, but issue is still present on 0.8.15 at least.

Reopening as this is still happening with 0.8.15. Running from my Mac against GCP projects now seeing:

2021/09/14 12:56:49 Refreshing state... google_compute_region_instance_group.tfer--europe-002D-west4-002D-puppetmaster

panic: unknown resource type google_compute_region_instance_group
goroutine 32644 [running]:
github.com/hashicorp/terraform/plugin.(*GRPCProvider).getResourceSchema(0xc00087e1c0, 0xa9a0383, 0x24, 0x0, 0x0)
github.com/hashicorp/[email protected]/plugin/grpc_provider.go:92 +0x12a
github.com/hashicorp/terraform/plugin.(*GRPCProvider).ReadResource(0xc00087e1c0, 0xa9a0383, 0x24, 0xb6e2318, 0xc00192b9f0, 0x985cbe0, 0xc0036383c0, 0x104e88b0, 0x0, 0x0, ...)
github.com/hashicorp/[email protected]/plugin/grpc_provider.go:321 +0xa5
github.com/GoogleCloudPlatform/terraformer/terraformutils/providerwrapper.(*ProviderWrapper).Refresh(0xc0001d7110, 0xc00020e320, 0xc00020e0a0, 0x2, 0xc00662c770, 0x63)
github.com/GoogleCloudPlatform/terraformer/terraformutils/providerwrapper/provider.go:171 +0x305
github.com/GoogleCloudPlatform/terraformer/terraformutils.(*Resource).Refresh(0xc0051b7950, 0xc0001d7110)
github.com/GoogleCloudPlatform/terraformer/terraformutils/resource.go:130 +0x4f
github.com/GoogleCloudPlatform/terraformer/terraformutils.RefreshResourceWorker(0xc0026e2720, 0xc005145f90, 0xc0001d7110)
github.com/GoogleCloudPlatform/terraformer/terraformutils/utils.go:153 +0xcd
created by github.com/GoogleCloudPlatform/terraformer/terraformutils.RefreshResources
github.com/GoogleCloudPlatform/terraformer/terraformutils/utils.go:80 +0x145

$ terraform version
Terraform v1.0.4
on darwin_amd64

Your version of Terraform is out of date! The latest version
is 1.0.6. You can update by downloading from https://www.terraform.io/downloads.html

$ terraformer version
Terraformer v0.8.15

@ronenh
Copy link

ronenh commented Sep 16, 2021

I'm running into the same problem:

$ terraformer import google --projects=<my-project> --resources=regionInstanceGroups -z=us-east1
2021/09/16 10:23:31 google importing project <my-project> region us-east1
2021/09/16 10:23:33 google importing... regionInstanceGroups
2021/09/16 10:23:33 google done importing regionInstanceGroups
2021/09/16 10:23:33 Number of resources for service regionInstanceGroups: 1
2021/09/16 10:23:33 Refreshing state... google_compute_region_instance_group.tfer--speaker-002D-splitter
panic: unknown resource type google_compute_region_instance_group

goroutine 162 [running]:
github.com/hashicorp/terraform/plugin.(*GRPCProvider).getResourceSchema(0xc000a844d0, 0xacafdcf, 0x24, 0x0, 0x0)
	github.com/hashicorp/[email protected]/plugin/grpc_provider.go:92 +0x12a
github.com/hashicorp/terraform/plugin.(*GRPCProvider).ReadResource(0xc000a844d0, 0xacafdcf, 0x24, 0xba3c338, 0xc0021d8500, 0x9b10a60, 0xc00247f8c0, 0x109660f8, 0x0, 0x0, ...)
	github.com/hashicorp/[email protected]/plugin/grpc_provider.go:321 +0xa5
github.com/GoogleCloudPlatform/terraformer/terraformutils/providerwrapper.(*ProviderWrapper).Refresh(0xc000a85f80, 0xc0011ce780, 0xc0011ce730, 0x2, 0xc001fd2420, 0x55)
	github.com/GoogleCloudPlatform/terraformer/terraformutils/providerwrapper/provider.go:171 +0x305
github.com/GoogleCloudPlatform/terraformer/terraformutils.(*Resource).Refresh(0xc001fe4120, 0xc000a85f80)
	github.com/GoogleCloudPlatform/terraformer/terraformutils/resource.go:130 +0x4f
github.com/GoogleCloudPlatform/terraformer/terraformutils.RefreshResourceWorker(0xc001ff0000, 0xc0011ee8b0, 0xc000a85f80)
	github.com/GoogleCloudPlatform/terraformer/terraformutils/utils.go:153 +0xcd
created by github.com/GoogleCloudPlatform/terraformer/terraformutils.RefreshResources
	github.com/GoogleCloudPlatform/terraformer/terraformutils/utils.go:80 +0x145

$ terraformer --version
version v0.8.16

$ terraform version
Terraform v1.0.6
on darwin_amd64

@tsm2k
Copy link

tsm2k commented Sep 22, 2021

any solutions yet?

@georgewilliamherbert
Copy link
Author

We're working around it by excluding the resource type, adding the "--excludes=regionInstanceGroups" argument to the command line every invocation. That's not a fix, but a workaround. If you need regionInstanceGroups then the underlying issue needs resolution.

@wesdunn
Copy link

wesdunn commented Oct 26, 2021

Also having the same issue. I poked around in this repo and in the google provider repo, but I couldn't really make heads or tails of where the issue might be.

Given the logging output from terraformer, it seems like listing the resource and getting data from google all works as expected.

2021/10/25 18:38:30 google importing project redacted region us-central1
2021/10/25 18:38:32 google-beta importing... regionInstanceGroups
2021/10/25 18:38:32 google-beta done importing regionInstanceGroups
2021/10/25 18:38:32 Number of resources for service regionInstanceGroups: 1
2021/10/25 18:38:32 Refreshing state... google_compute_region_instance_group.tfer--redacted
panic: unknown resource type google_compute_region_instance_group

Given that last log line, it looks like something may be failing when writing/refreshing the tfstate?

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 25, 2021
@github-actions
Copy link

github-actions bot commented Jan 1, 2022

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Jan 1, 2022
@shankerganesh
Copy link

shankerganesh commented Nov 16, 2022

We're working around it by excluding the resource type, adding the "--excludes=regionInstanceGroups" argument to the command line every invocation. That's not a fix, but a workaround. If you need regionInstanceGroups then the underlying issue needs resolution.

Do we have any solution for this? @georgewilliamherbert I am stuck with this issue can someone help with a solution? @wesdunn @ronenh @tsm2k

@akamalov
Copy link

akamalov commented Apr 3, 2024

Greetings. This is becoming a hindrance. We're using region instance groups and cannot skip it because it is part of the deployment. #1859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants