-
Notifications
You must be signed in to change notification settings - Fork 453
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
Unable to use SSD as vSAN capacity disk #1195
Comments
Since this is nested ESXi deployment I am messing around with, I was able to add a provisioner block to my ESXi virtual machines as a workaround: provisioner "remote-exec" {
connection {
type = "ssh"
user = "root"
password = random_password.esxi_root_password.result
host = "${each.key}.${var.domain}"
}
inline = [
"esxcli vsan storage tag add -d ${compact([ for disk in self.disk: disk.device_address == "scsi:0:2" ? "naa.${replace(lower(disk.uuid),"-","")}" : "" ])[0]} -t capacityFlash",
]
} |
Hi @adarobin! I have been having trouble reproducing the issue. Can you tell me what vSphere version you're using? |
@bill-rich This was with vSphere 7.0 |
Thanks! That may be what I was missing. I'll get a 7.0 environment to test with and see about getting this fixed. |
Hi @adarobin - are you still seeing this issue in latest provider and TF? Ryan |
Marking this issue as closed as there is a workable solution with the provisioner. From experience in both nested and physical all-flash vSAN deployment, this is a common requirement to tag SSDs as capacity flash. In fact, it's a requirement in Cloud Foundation before running Cloud Builder if the cache and capacity are the same size. Ryan |
@tenthirtyam I haven’t been able to test this as my home lab is a bit of a mess right now. The workaround doesn’t work with anything newer than 7.0 Update 1 as newer releases have SHA-1 disabled for SSH by default. |
I'll reopen and take a look as some options against your module. We have some methods we (VMware) use to automate this that might be an option with a provisioner, but I'd be reticent to add the Ryan |
@tenthirtyam I’m ok with this being closed, I just wanted to call out that the workaround doesn’t work for 7.0 U2+ if other folks run into it. It should work once hashicorp/terraform#30134 is fixed. |
Thanks for the update, Adam. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.13.1
vSphere Provider Version
1.23.0
Affected Resource(s)
vsphere_compute_cluster
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
terraform apply
finished without error and the vSAN disk group was created.Actual Behavior
Steps to Reproduce
If I manually set the
capacityFlash
flag on the SSD, thenterraform apply
is successful.The vCenter GUI has a drop down selection between HDD and SSD for the capacity tier and then filters out drives that don't match. SSD disks seem to get the
capacityFlash
tag added to them automatically in this process.References
Community Note
The text was updated successfully, but these errors were encountered: