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
I am unable to create a multi-zone volume using the 'regional_ha = true' attribute. The zone is mandatory due to the approved issue #21 and it should be modified with something like this:
// If storage class is 'software', zone or regionalHA is mandatory if volume.StorageClass == "software" && ((volume.Zone == "" && volume.regionalHa == "") || (volume.Zone != "" && volume.regionalHa != "")) { log.Print("Error creating volume") return fmt.Errorf("If storage_class is software, zone or regionalHA is mandatory") }
Note that TF creates a single zone volume using both 'zone' and 'regional_ha' attributes, and a multizone volume is created successfully with the same both attributes using Rest API calls.
The text was updated successfully, but these errors were encountered:
I am unable to create a multi-zone volume using the 'regional_ha = true' attribute. The zone is mandatory due to the approved issue #21 and it should be modified with something like this:
https://github.com/NetApp/terraform-provider-netapp-gcp/blob/master/gcp/resource_netapp_gcp_volume.go#L421
// If storage class is 'software', zone or regionalHA is mandatory
if volume.StorageClass == "software" && ((volume.Zone == "" && volume.regionalHa == "") || (volume.Zone != "" && volume.regionalHa != "")) {
log.Print("Error creating volume")
return fmt.Errorf("If storage_class is software, zone or regionalHA is mandatory")
}
Note that TF creates a single zone volume using both 'zone' and 'regional_ha' attributes, and a multizone volume is created successfully with the same both attributes using Rest API calls.
The text was updated successfully, but these errors were encountered: