kiranchavala commented on PR #213:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/213#issuecomment-3291553435

   @Pearl1594 is it possible to add tests  and documentation for the resources 
and data source.
   
   On testing found that 
   
   on terraform destroy the plunging is crashing 
   
   
   ```
   terraform destroy
   cloudstack_autoscale_vm_profile.vm_profile: Refreshing state... 
[id=5188474d-c3b5-4696-8998-a25c005cff55]
   cloudstack_network.autoscale_network: Refreshing state... 
[id=067b9203-9678-415a-bc6c-013742d13270]
   data.cloudstack_counter.existing_cpu_counter: Reading...
   data.cloudstack_counter.existing_cpu_counter: Read complete after 1s 
[id=4b27ead4-8c8b-11f0-b0ae-1e0092000273]
   cloudstack_condition.scale_up_condition: Refreshing state... 
[id=f0bc1ec0-61db-4e59-bd8e-3980a83e0785]
   cloudstack_condition.scale_down_condition: Refreshing state... 
[id=024c4cc8-6b1b-47ff-aa65-2a9e72e05900]
   cloudstack_ipaddress.lb_public_ip: Refreshing state... 
[id=46e2a4cc-f30f-4850-a1df-0d928b214dcf]
   cloudstack_instance.initial_vm: Refreshing state... 
[id=700a2afc-fd2a-415d-89c0-9477ff12c086]
   cloudstack_autoscale_policy.scale_up_policy: Refreshing state... 
[id=bda40f7f-9df6-4478-881a-5f84e9be8f09]
   cloudstack_autoscale_policy.scale_down_policy: Refreshing state... 
[id=20869e49-5294-4777-94f6-20fc5dc20e5b]
   cloudstack_firewall.http_firewall: Refreshing state... 
[id=46e2a4cc-f30f-4850-a1df-0d928b214dcf]
   cloudstack_loadbalancer_rule.autoscale_lb: Refreshing state... 
[id=858e3b4d-521f-4f5f-a627-e5ac14afcf24]
   cloudstack_autoscale_vm_group.vm_group: Refreshing state... 
[id=fb778d99-0772-4db7-bb05-e8e847f99be7]
   ╷
   │ Error: Request cancelled
   │ 
   │ The plugin6.(*GRPCProvider).ReadResource request was cancelled.
   ╵
   
   Stack trace from the terraform-provider-cloudstack plugin:
   
   panic: interface conversion: interface {} is *cloudstack.AutoScalePolicy, 
not string
   
   goroutine 216 [running]:
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.HashString({0x1038b6e20?,
 0x1400060e270?})
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/set.go:21
 +0x58
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).hash(0x14000120300?,
 {0x1038b6e20?, 0x1400060e270?})
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/set.go:221
 +0x34
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).add(0x14000120540,
 {0x1038b6e20, 0x1400060e270}, 0x0)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/set.go:201
 +0x6c
   github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).Add(...)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/set.go:79
   
github.com/terraform-providers/terraform-provider-cloudstack/cloudstack.resourceCloudStackAutoScaleVMGroupRead(0x140006a5000,
 {0x103a44f40?, 0x14000528008})
           
/Users/kiranchavala/Desktop/kiranterraformtesting/cloudstack-terraform-provider/cloudstack/resource_cloudstack_autoscale_vm_group.go:205
 +0x5a0
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x103bb2b68?,
 {0x103bb2b68?, 0x140003ba2a0?}, 0xd?, {0x103a44f40?, 0x14000528008?})
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/resource.go:783
 +0x130
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0x140002bb340,
 {0x103bb2b68, 0x140003ba2a0}, 0x14000414a90, {0x103a44f40, 0x14000528008})
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/resource.go:1089
 +0x404
   
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0x1400000d608,
 {0x103bb2b68?, 0x140003ba180?}, 0x1400023ba40)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/grpc_provider.go:667
 +0x3e4
   
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ReadResource({{0x103bbace0?,
 0x1400000d608?}}, {0x103bb2b68?, 0x140003ba180?}, 0x1400023b6c0?)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-mux@v0.15.0/tf5to6server/tf5to6server.go:215
 +0x228
   
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ReadResource(0x14000251810,
 {0x103bb2b68?, 0x1400069fe30?}, 0x1400023b6c0)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-mux@v0.15.0/tf6muxserver/mux_server_ReadResource.go:35
 +0x184
   
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0x1400024d5e0,
 {0x103bb2b68?, 0x1400069f6b0?}, 0x140000911a0)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.22.1/tfprotov6/tf6server/server.go:776
 +0x3bc
   
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x103ada760,
 0x1400024d5e0}, {0x103bb2b68, 0x1400069f6b0}, 0x140006a4d80, 0x0)
           
/Users/kiranchavala/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.22.1/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:482
 +0x1c0
   google.golang.org/grpc.(*Server).processUnaryRPC(0x1400018d000, 
{0x103bb2b68, 0x1400069f5c0}, {0x103bb9200, 0x14000500000}, 0x140004726c0, 
0x14000373710, 0x1044dc7c8, 0x0)
           
/Users/kiranchavala/go/pkg/mod/google.golang.org/grpc@v1.62.1/server.go:1386 
+0xb58
   google.golang.org/grpc.(*Server).handleStream(0x1400018d000, {0x103bb9200, 
0x14000500000}, 0x140004726c0)
           
/Users/kiranchavala/go/pkg/mod/google.golang.org/grpc@v1.62.1/server.go:1797 
+0xb10
   google.golang.org/grpc.(*Server).serveStreams.func2.1()
           
/Users/kiranchavala/go/pkg/mod/google.golang.org/grpc@v1.62.1/server.go:1027 
+0x84
   created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 
36
           
/Users/kiranchavala/go/pkg/mod/google.golang.org/grpc@v1.62.1/server.go:1038 
+0x13c
   
   Error: The terraform-provider-cloudstack 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.
   
   ```


-- 
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: dev-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to