[Bug]: Unsupported Dedicated Storage Profile Class
Closed this issue · 6 comments
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
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?
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])
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
I tried the version 0.18.2 and I confirm that this version actually fixes the problem. Thank you