-
Notifications
You must be signed in to change notification settings - Fork 454
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 clone VCSA 7 template with multiple scsi controllers and disks #997
Comments
In an attempt to isolate the issue, we tried the following: Attempt 1: (Success)
Attempt 2: (Success)
Attempt 3: (Success)
Attempt 3: (Failure) 👎
Attempt 4: (Failure) 👎
The issue appears to be when there is more than one (1) disk on the first controller is the failure condition. There's a test for more than one scsi controller but it only has one (1) disk on each of the three (3) controllers. If a second disk is added to the first controller that test would fail. |
@aareet i saw you added the bug label, is there anything we can to help push this forward? I would like to be able to provision the latest vcenter ova so that we can begin testing labs with terraform. |
@bill-rich @koikonom VMware officially released vSphere 7.0 for download today (April 2nd). It would be awesome if this issue could be resolved so the terraform-provider-vsphere is able to deploy it. Above you'll see the troubleshooting we did to diagnose the issue and pinpoint where the logic is broken. The issue appears to be when there is more than one (1) disk on the first controller is the failure condition. |
If it can be of any help, it looks like the devices sorting in the DiskCloneValidateOperation function from virtual_machine_disk_subresource.go is not returning the devices list in the correct order : Debug logs in my environment shows this :
You can see that the first disk of the second controller is placed in second position after sorting, while it should be last. When testing for disks size, it results in a error because it does not correspond to the size specified in the .tf file. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Overview
The VMware VCSA Appliance OVA for vCenter 7.0 now has 16 disks which means it requires setting
"scsi_controller_scan_count": 2
and specifying the"disk": "unit_number"
.The example below of two (2) scsi controllers each with two (2) disks is a simplified scenario for troubleshooting.
Terraform Version
Terraform v0.12.23
vSphere Provider Version
vSphere Provider v1.16.2
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Debug Output
https://gist.github.com/jkuntz/0838b1c0bb496d43d1f7019970774360
Expected Behavior
It should clone the vsphere_virtual_machine
Actual Behavior
Steps to Reproduce
tf-scsi-debugging
terraform apply
Important Factoids
No
References
NA
The text was updated successfully, but these errors were encountered: