terraform-provider-vcd: Requested disk iops 0 for virtual machine "vm" exceeds maximum allowed iops 3,501
Hi there, After upgrading VMware Cloud Director to version: 10.2.0. Unable to create VM: Requested disk iops 0 for virtual machine “vm” exceeds maximum allowed iops 3,501
Version
Terraform v0.14.2 provider registry.terraform.io/vmware/vcd v3.0.0 VMware Cloud Director version: 10.2.0.17008054
Terraform resource
resource "vcd_vapp_vm" "vm" {
vapp_name = var.VAPP_NAME
name = "vm"
catalog_name = var.VCD_CATALOG_NAME
template_name = var.VCD_TEMPLATE_VM
memory = var.RAM
cpus = var.CPU
storage_profile = var.STORAGE_POLICY
}
Override_template_disk parameter can be applied after VM creation. Can I somehow set the iops value when creating the vm?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 21
I have tested it now (on VCD 10.2.2.17855680) and replicated.
With your sample HCL got error:
In this API call:
Sounds like the problem is sending
<iops>0</iops>
which most probably means “unlimited” in API. Will have a glance if there is an easy fix available.Hello, It took me the whole day, but I think I found the steps to reproduce.
First of all, my hcl
I tested it on 3 clouds (2 external where we are tenant only, and our own), so hostname, catalog name, catalog item and storage_profile needed to be variable.
The third one was a VCD 10.2.1.17444397, anyway I could reproduce it on our own VCD 10.2.2.17855680, so the version should not matter anymore:
In my setup, I connected 2 policies, both with the same settings:
An allocation limit is not relevant.
It would be great if you can reproduce it now and figure out if you can workaround it inside the provider.
@Didainius, ok https://raw.githubusercontent.com/xor222xor/vcd-test/main/terraform.log https://raw.githubusercontent.com/xor222xor/vcd-test/main/api.log https://raw.githubusercontent.com/xor222xor/vcd-test/main/main.tf