vishesh92 commented on PR #283:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/283#issuecomment-4259270417

   @bhouse-nexthop I found a bug.
   1. apply the terraform 
   ```
   resource "cloudstack_private_gateway" "bar" {
     gateway = "10.1.1.254"
     ip_address = "192.168.0.2"
     netmask = "255.255.255.0"
     vlan = "2"
     vpc_id = cloudstack_vpc.bar.id
     acl_id = cloudstack_network_acl.bar.id
     bypass_vlan_overlap_check = true
     depends_on = ["cloudstack_vpc.bar","cloudstack_network_acl.bar"]
   }
   ```
   2. Change value of `bypass_vlan_overlap_check = true` to `false` and apply 
again.
   ```
     Enter a value: yes
   
   cloudstack_private_gateway.bar: Modifying... 
[id=01811bb0-ed14-441b-a65e-3a0ce9e218fc]
   ╷
   │ Error: Request cancelled
   │ 
   │ The plugin6.(*GRPCProvider).ApplyResourceChange request was cancelled.
   ╵
   
   Stack trace from the terraform-provider-cloudstack plugin:
   
   panic: interface conversion: interface {} is nil, not string
   
   goroutine 82 [running]:
   
github.com/terraform-providers/terraform-provider-cloudstack/cloudstack.resourceCloudStackNetworkRead(0xc0005aea80,
 {0x14599a0?, 0xc0004faa08})
           
/home/vishesh/lab/apache/cloudstack-terraform-provider/cloudstack/resource_cloudstack_network.go:289
 +0xb25
   
github.com/terraform-providers/terraform-provider-cloudstack/cloudstack.resourceCloudStackPrivateGatewayUpdate(0xc0005aea80,
 {0x14599a0, 0xc0004faa08})
           
/home/vishesh/lab/apache/cloudstack-terraform-provider/cloudstack/resource_cloudstack_private_gateway.go:183
 +0x25f
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x178e0d8?,
 {0x178e0d8?, 0xc0003e9a40?}, 0xd?, {0x14599a0?, 0xc0004faa08?})
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:800
 +0x15f
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0003117a0,
 {0x178e0d8, 0xc0003e9a40}, 0xc0004b2410, 0xc0005ae900, {0x14599a0, 
0xc0004faa08})
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:919
 +0x81a
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000013740,
 {0x178e0d8?, 0xc0003e98c0?}, 0xc000146460)
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1078
 +0xd5c
   
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ApplyResourceChange({{0x1799050?,
 0xc000013740?}}, {0x178e0d8, 0xc0003e98c0}, 0x0?)
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/[email protected]/tf5to6server/tf5to6server.go:38
 +0x54
   
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ApplyResourceChange(0xc0002858f0,
 {0x178e0d8?, 0xc0003e95f0?}, 0xc000146410)
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/[email protected]/tf6muxserver/mux_server_ApplyResourceChange.go:36
 +0x193
   
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc00027f7c0,
 {0x178e0d8?, 0xc0003e8c00?}, 0xc00023c0e0)
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:865
 +0x3bc
   
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0x14fc080,
 0xc00027f7c0}, {0x178e0d8, 0xc0003e8c00}, 0xc0005ae000, 0x0)
           
/home/vishesh/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:545
 +0x1a6
   google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001c0e00, {0x178e0d8, 
0xc0003e8b70}, {0x1795040, 0xc0004f2000}, 0xc0005aa000, 0xc0003e8870, 
0x2199858, 0x0)
           
/home/vishesh/go/pkg/mod/google.golang.org/[email protected]/server.go:1394 +0xe2b
   google.golang.org/grpc.(*Server).handleStream(0xc0001c0e00, {0x1795040, 
0xc0004f2000}, 0xc0005aa000)
           
/home/vishesh/go/pkg/mod/google.golang.org/[email protected]/server.go:1805 +0xe8b
   google.golang.org/grpc.(*Server).serveStreams.func2.1()
           
/home/vishesh/go/pkg/mod/google.golang.org/[email protected]/server.go:1029 +0x7f
   created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 
37
           
/home/vishesh/go/pkg/mod/google.golang.org/[email protected]/server.go:1040 +0x125
   
   Error: The terraform-provider-cloudstack plugin crashed!
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to