CiscoDevNet / terraform-provider-tetration

Terraform Provider for managing Cisco Secure Workload (Tetration) resources.
MIT License
0 stars 4 forks source link

Error creating workspaces - Error: Plugin did not respond #6

Open frazhamid opened 2 years ago

frazhamid commented 2 years ago

Hi all,

I am getting errors when creating new application workspaces. Hoping someone in the community could advise/assist.

github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc000182f00, 0xc00026ee10, 0xc0005fba00, 0x10701a0, 0xc0003f2bd0, 0xf31601, 0xc0003a3788, 0xc00030c870)
    github.com/hashicorp/terraform@v0.12.25/helper/schema/resource.go:305 +0x365
github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc000183000, 0xc00052f8a8, 0xc00026ee10, 0xc0005fba00, 0xc0002f2628, 0xc00000f450, 0xf33620)
    github.com/hashicorp/terraform@v0.12.25/helper/schema/provider.go:289 +0x99
github.com/hashicorp/terraform/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00000e4f0, 0x1372ca0, 0xc0002ab1d0, 0xc00021bc80, 0xc00000e4f0, 0xc0002ab1d0, 0xc0002bba20)
    github.com/hashicorp/terraform@v0.12.25/helper/plugin/grpc_provider.go:885 +0x8c4
github.com/hashicorp/terraform/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x10496c0, 0xc00000e4f0, 0x1372ca0, 0xc0002ab1d0, 0xc00026eb40, 0x0, 0x1372ca0, 0xc0002ab1d0, 0xc000239b80, 0x54e)
    github.com/hashicorp/terraform@v0.12.25/internal/tfplugin5/tfplugin5.pb.go:3189 +0x217
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000b4a80, 0x137dda0, 0xc0000b5800, 0xc000280f00, 0xc00007f1d0, 0x1aabe20, 0x0, 0x0, 0x0)
    google.golang.org/grpc@v1.21.1/server.go:998 +0x46a
google.golang.org/grpc.(*Server).handleStream(0xc0000b4a80, 0x137dda0, 0xc0000b5800, 0xc000280f00, 0x0)
    google.golang.org/grpc@v1.21.1/server.go:1278 +0xd3d
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000042280, 0xc0000b4a80, 0x137dda0, 0xc0000b5800, 0xc000280f00)
    google.golang.org/grpc@v1.21.1/server.go:717 +0xa1
created by google.golang.org/grpc.(*Server).serveStreams.func1
    google.golang.org/grpc@v1.21.1/server.go:715 +0xa1

Error: The terraform-provider-tetration_v0.1.0 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.

Example Terraform code below:

resource "tetration_application" "global_policy" {
  app_scope_id         = tetration_scope.root.id
  name                 = "Global Security Policy"
  description          = "global security policy used to manage and enforce information security policy requirements."
  alternate_query_mode = true
  strict_validation    = true
  primary              = false
  default_policy {
    consumer_scope_name = tetration_scope.org.id
    provider_scope_name  = tetration_scope.org.id
    action               = "Deny"
    layer_4_network_policy {
      port_range = [21]
      protocol   = 6
    }
  }
  catch_all_action = "ALLOW"
}
kadadhic commented 9 months ago

Thanks for bringing this to our notice. We have fixed it in this PR https://github.com/CiscoDevNet/terraform-provider-tetration/pull/10.