You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the
│ plugin6.(*GRPCProvider).ReadResource call. The plugin logs may contain more
│ details.
╵
Stack trace from the terraform-provider-cloudavenue_v0.19.1 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x130f04d]
goroutine 84 [running]:
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/common/vm.(*VM).CustomizationRead(0xc00010c688?, {0xc00010ce78?, 0xc000c4ec48?})
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/common/vm/settings_customization.go:100 +0x6d
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/common/vm.VM.SettingsRead({0xc00010c688, {0xc00010ce78, {0xc000c4ec48, 0xc00007c438}}}, {0x1d5d588, 0xc000c655c0}, {0x1691fe0, 0xc000c9ee58})
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/common/vm/settings.go:87 +0x153
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/vm.(*vmResource).read(0xc00088ec60, {0x1d5d588, 0xc000c655c0}, 0xc0005ce4b0, 0xc0005ce4b0)
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/vm/vm_resource.go:1272 +0x52c
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/vm.(*vmResource).Read(0xc00088ec60, {0x1d5d588, 0xc000c655c0}, {{{{0x1d69db0, 0xc000cab890}, {0x1500ea0, 0xc000caab70}}, {0x1d6cf78, 0xc00010be50}}, 0xc00010c480, ...}, ...)
github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/provider/vm/vm_resource.go:284 +0x432
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc000416960, {0x1d5d588, 0xc000c655c0}, 0xc000c65620, 0xc000d6b6c0)
github.com/hashicorp/[email protected]/internal/fwserver/server_readresource.go:117 +0x84e
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc000416960, {0x1d5d588?, 0xc000c654d0?}, 0xc0007eb8c0)
github.com/hashicorp/[email protected]/internal/proto6server/server_readresource.go:55 +0x38e
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc0004d95e0, {0x1d5d588?, 0xc000c64d50?}, 0xc0008b0000)
github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:784 +0x309
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x16ac660, 0xc0004d95e0}, {0x1d5d588, 0xc000c64d50}, 0xc000924f80, 0x0)
github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:482 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001a1200, {0x1d5d588, 0xc000c64cc0}, {0x1d6b100, 0xc000420780}, 0xc000b490e0, 0xc0005bb560, 0x295ea08, 0x0)
google.golang.org/[email protected]/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc0001a1200, {0x1d6b100, 0xc000420780}, 0xc000b490e0)
google.golang.org/[email protected]/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 32
google.golang.org/[email protected]/server.go:1030 +0x125
Error: The terraform-provider-cloudavenue_v0.19.1 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 itcan be fixed. The output above should help diagnose the issue.
Terraform Configuration Files
terraform {
required_providers {
cloudavenue={
source ="orange-cloudavenue/cloudavenue"
version ="0.19.1"
}
vcd={
source ="vmware/vcd"
version ="3.14.0"
}
}
required_version=">=1.0"
}
Steps to Reproduce
Create vDC + network and vApps
Use tfvars:
vms=[{
name ="Bastion"
vapp_template ="Orange-Linux-Internal-old#ROCKY_9.3"
cpus =4
cpus_cores =2
memory =2048
admin_password ="root"
init_script ="loadkeys fr"
power_on =true
networks = [
{
name ="opr-public-network"
type ="org"
ip ="192.168.0.2"
ip_allocation_mode ="MANUAL"
is_primary =true
}]
guest_properties = {
"provide"="Terraform""product"="CEPH""role"="monitoring"
}
storage_profile ="gold"
disks = []
},{
name ="Master"
replicat =3
vapp_template ="Orange-Linux-Internal-old#ROCKY_9.3"
cpus =4
cpus_cores =2
memory =8192
admin_password ="root"
init_script ="loadkeys fr"
power_on =true
networks = [
{
name ="opr-public-network"
type ="org"
ip_allocation_mode ="DHCP"
is_primary =true
},
{
name ="opr-vapp-cluster-ceph"
type ="vapp"
ip_allocation_mode ="POOL"
}]
guest_properties = {
"provide"="Terraform""product"="CEPH""role"="monitoring"
}
storage_profile ="gold"
disks = [{
name ="data"
size_in_mb =20480
}]
},{
name ="Storage"
replicat =4
vapp_template ="Orange-Linux-Internal-old#ROCKY_9.3"
cpus =8
cpus_cores =4
memory =8192
admin_password ="root"
init_script ="loadkeys fr"
power_on =true
networks = [
{
name ="opr-public-network"
type ="org"
ip_allocation_mode ="DHCP"
is_primary =true
},
{
name ="opr-vapp-cluster-ceph"
type ="vapp"
ip_allocation_mode ="POOL"
}]
guest_properties = {
"provide"="Terraform""product"="CEPH""role"="storage"
}
storage_profile ="gold"
disks = [{
name ="data"
size_in_mb =204800
}]
},
]
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered:
Terraform Core Version
1.5.7
Cloud Avenue Provider Version
0.19.1
Affected Resource(s)
resource "cloudavenue_vm"
Expected Behavior
Create and destroy bulk VM with for_each vars.
Main:
Module:
Actual Behavior
Failed to destroy VM, panic
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create vDC + network and vApps
Use tfvars:
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: