Skip to content

Instantly share code, notes, and snippets.

@jlaundry
Created September 26, 2021 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlaundry/fc6477d0bbe14aafcc29865ac664e530 to your computer and use it in GitHub Desktop.
Save jlaundry/fc6477d0bbe14aafcc29865ac664e530 to your computer and use it in GitHub Desktop.
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azuread_directory_role.example will be created
+ resource "azuread_directory_role" "example" {
+ description = (known after apply)
+ display_name = "Does Not Exist"
+ id = (known after apply)
+ object_id = (known after apply)
+ template_id = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azuread_directory_role.example: Creating...
│ Error: Request cancelled
│ with azuread_directory_role.example,
│ on main.tf line 13, in resource "azuread_directory_role" "example":
│ 13: resource "azuread_directory_role" "example" {
│ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
Stack trace from the terraform-provider-azuread_v2.4.0_x5 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe84547]
goroutine 69 [running]:
github.com/hashicorp/terraform-provider-azuread/internal/services/directoryroles.directoryRoleResourceCreate(0x12e21b8, 0xc000496240, 0xc000492280, 0xf90580, 0xc00016c780, 0xc000281fa0, 0xacb62a, 0xc00063d7e0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/internal/services/directoryroles/directory_role_resource.go:105 +0x1e7
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0006c7340, 0x12e2148, 0xc000293280, 0xc000492280, 0xf90580, 0xc00016c780, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go:330 +0x17f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0006c7340, 0x12e2148, 0xc000293280, 0xc00048ca10, 0xc00063d7e0, 0xf90580, 0xc00016c780, 0x0, 0x0, 0x0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go:456 +0x67b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0001b4228, 0x12e2148, 0xc000293280, 0xc000488960, 0xc000293280, 0x1098060, 0xc00048f100)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:955 +0x8ef
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc0004351c0, 0x12e21f0, 0xc000293280, 0xc00048c7e0, 0xc0004351c0, 0xc00048f1d0, 0xc000410ba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server/server.go:332 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x1098060, 0xc0004351c0, 0x12e21f0, 0xc00048f1d0, 0xc0002b1bc0, 0x0, 0x12e21f0, 0xc00048f1d0, 0xc0002e6480, 0x16a)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00027c540, 0x12ec138, 0xc000193080, 0xc0004919e0, 0xc0006d53e0, 0x18bcb40, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/google.golang.org/grpc/server.go:1217 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc00027c540, 0x12ec138, 0xc000193080, 0xc0004919e0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/google.golang.org/grpc/server.go:1540 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0000324c0, 0xc00027c540, 0x12ec138, 0xc000193080, 0xc0004919e0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/google.golang.org/grpc/server.go:878 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-azuread/vendor/google.golang.org/grpc/server.go:876 +0x1fd
Error: The terraform-provider-azuread_v2.4.0_x5 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment