Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: VDC : ONE-ROOM with ECO and hypermetrocluster storage classes (gold_hm) returns plugin crashed #992

Closed
jbphilippe-orange opened this issue Feb 20, 2025 · 0 comments · Fixed by #1007
Assignees
Labels
bug Bug community Community related

Comments

@jbphilippe-orange
Copy link

jbphilippe-orange commented Feb 20, 2025

Terraform Core Version

v1.10.5

Cloud Avenue Provider Version

0.29.0

Affected Resource(s)

cloudavenue_vdc resource

Expected Behavior

The provider should return an error saying something like that ?
message": "Storage class gold_hm is forbidden with ONE-ROOM disponibility class. Only supported standard/silver storage classes are available.

Actual Behavior

Stack trace from the terraform-provider-cloudavenue_v0.29.0 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x11a0332]

goroutine 93 [running]:
github.com/orange-cloudavenue/cloudavenue-sdk-go/v1/infrapi/rules.Validate.func7()
        github.com/orange-cloudavenue/cloudavenue-sdk-go@v0.22.0/v1/infrapi/rules/vdc_rules.go:845 +0x212
golang.org/x/sync/errgroup.(*Group).Go.func1()
        golang.org/x/sync@v0.11.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 85
        golang.org/x/sync@v0.11.0/errgroup/errgroup.go:75 +0x96

Error: The terraform-provider-cloudavenue_v0.29.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.

2025-02-20T12:44:24.646+0100 [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/orange-cloudavenue/cloudavenue/0.29.0/linux_amd64/terraform-provider-cloudavenue_v0.29.0 id=105220

Relevant Error/Panic Output Snippet

Terraform Configuration Files

  {
    name                  = "vdc-oneroom-ob"
    disponibility_class   = "ONE-ROOM"
    billing_model         = "PAYG"
    cpu_allocated         = 22000
    cpu_speed_in_mhz      = 2200
    description           = "Test ONE-ROOM - OB"
    memory_allocated      = 30
    service_class         = "ECO"
    storage_billing_model = "PAYG"
    storage_profiles = [
      {
        class   = "gold_hm"
        default = true
        limit   = 1000
      },
    ]
  }
]

Steps to Reproduce

terraform init
terraform plan
terraform apply --auto-approve

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@jbphilippe-orange jbphilippe-orange changed the title [Bug]: Creating Vdc : ONE-ROOM + ECO + gold_hm returns **plugin crashed** [Bug]: Creating Vdc : ONE-ROOM + ECO + gold_hm returns plugin crashed Feb 20, 2025
@jbphilippe-orange jbphilippe-orange changed the title [Bug]: Creating Vdc : ONE-ROOM + ECO + gold_hm returns plugin crashed [Bug]: VDC : ONE-ROOM with ECO and hypermetrocluster storage classes (gold_hm) returns plugin crashed Feb 20, 2025
@azrod azrod added the community Community related label Feb 26, 2025
@azrod azrod self-assigned this Mar 7, 2025
@azrod azrod linked a pull request Mar 7, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug community Community related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants