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]: Unsupported Dedicated Storage Profile Class #721

Closed
Yobar73 opened this issue Feb 5, 2024 · 6 comments · Fixed by #724
Closed

[Bug]: Unsupported Dedicated Storage Profile Class #721

Yobar73 opened this issue Feb 5, 2024 · 6 comments · Fixed by #724
Assignees
Labels
bug Something isn't working

Comments

@Yobar73
Copy link

Yobar73 commented Feb 5, 2024

Terraform Core Version

1.5.3

Cloud Avenue Provider Version

0.18.0

Affected Resource(s)

resource.cloudavenue_vdc

This issue is the continuity of following ticket #615

Expected Behavior

We want to be able to import the dedicated storage profile class onto our existing infrastructure and use it into our infrastructure as code

Actual Behavior

Our existing VDC has been updated adding the dedicate storage profile. When we try to import the VDC updated by Orange, we have an issue "Error: Storage profile class attribute is not valid"

│ storage profile class not found: silver_xxxxxxxxxx (Allowed values:
│ [silver silver_r1 silver_r2 gold gold_r1 gold_r2 gold_hm platinum3k
│ platinum3k_r1 platinum3k_r2 platinum3k_hm platinum7k platinum7k_r1
│ platinum7k_r2 platinum7k_hm])

Relevant Error/Panic Output Snippet

Our existing VDC has been updated adding the dedicate storage profile. When we try to import the VDC updated by Orange, we have an issue "Error: Storage profile class attribute is not valid"

Terraform Configuration Files

terraform {
required_providers {
cloudavenue = {
source = "orange-cloudavenue/cloudavenue"
version = "0.18.0"
}
vcd = {
source = "vmware/vcd"
}
}
}

provider "cloudavenue" {
}
provider "vcd" {
}

resource "cloudavenue_vdc" "my_vdc" {
name = "my_vdc"
...
service_class = "STD"

storage_profiles = [
{
class = "platinum7k_xxxxxxxxxx"
default = false
limit = 10237
},
]
}

Steps to Reproduce

Ask to Orange to add a dedicated storage profile onto your VDC and try to import it

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@Yobar73 Yobar73 added the bug Something isn't working label Feb 5, 2024
@Yobar73
Copy link
Author

Yobar73 commented Feb 5, 2024

In the provider documentation,, the definition of storage_profiles class is:
"The storage class of the storage profile. ... or custom storage profile class delivered by Cloud Avenue."

How can I specify the custom storage profile class delivered by Cloud Avenue?

@Yobar73
Copy link
Author

Yobar73 commented Feb 5, 2024

I have the same issue with the provider 0.18.1
│ storage profile class not found: platinum7k_xxxxxxxxxx (Allowed values:
│ [silver silver_r1 silver_r2 gold gold_r1 gold_r2 gold_hm platinum3k
│ platinum3k_r1 platinum3k_r2 platinum3k_hm platinum7k platinum7k_r1
│ platinum7k_r2 platinum7k_hm])

@azrod
Copy link
Member

azrod commented Feb 5, 2024

Hi @Yobar73

Sorry for the inconvenience.

Please provide entire error message.

Regards

@Yobar73
Copy link
Author

Yobar73 commented Feb 5, 2024

See the entire error message:
`
Planning failed. Terraform encountered an error while generating this plan.


│ Error: Storage profile class attribute is not valid

│ with cloudavenue_vdc.my_vdc,
│ on vdcs.tf line 42, in resource "cloudavenue_vdc" "my_vdc":
│ 42: storage_profiles = [
│ {
│ class = "platinum7k_xxxxxxxxxx"
│ default = false
│ limit =1000
│ },
│ {
│ class = "silver_xxxxxxxxxx"
│ default = false
│ limit = 1024
│ },
│ {
│ class = "silver"
│ default = true
│ limit = 1024
│ },
│ {
│ class = "platinum7k"
│ default = false
│ limit = 1024
│ }
│ ]

│ storage profile class not found: platinum7k_xxxxxxxxxx (Allowed values:
│ [silver silver_r1 silver_r2 gold gold_r1 gold_r2 gold_hm platinum3k
│ platinum3k_r1 platinum3k_r2 platinum3k_hm platinum7k platinum7k_r1
│ platinum7k_r2 platinum7k_hm])
╵`
Do not hesitate to ask me for more details

Regards

@azrod
Copy link
Member

azrod commented Feb 6, 2024

Hello.

Please try a fixed version v0.18.2

Regards

@Yobar73
Copy link
Author

Yobar73 commented Feb 7, 2024

I tried the version 0.18.2 and I confirm that this version actually fixes the problem. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants