-
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
Disk Number is Changing on Second Apply #400
Comments
@rbasore your VM lacks the PS: It's best not to parameterize disk Adding this as a bug so that we can enforce the max unit number depending on |
I can confirm I have this behavior as well and guessing its bug. I have had to work around this with ignore changes on disks altogether. I realized it as I was trying to implement the disk label and it was borked on the disk numbers being different. On single disk scenarios I have no issue so guessing it's just a mapping issue. (Disk Uuids?) |
Thanks for replying. What is the format of using scsi_controller_count I am getting errors that state that this is not a valid option. I can not use 0-14 as I need them to be on a paravirtual adapter and scsi 0 is LSI logic. I can rebuild the whole template to make it paravirtual from the start but didn't want to have to do that. |
@rbasore the documentation is here: https://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#scsi_controller_count Unfortunately, for what you need to do, you will more than likely have to rebuild the template as you cannot mix SCSI controller types. The setting in |
@rbasore @rismoney The disk number issue was a result of not checking if there were enough SCSI controllers to support the #481 changes the disk sub-resource diff check behavior to run on all disks. Now disks with a @rbasore, this means that you will need to rebuild your template in order to keep additional disks on a paravirt controller since the configuration is being more strictly enforced. Sorry for the inconvenience on that, but this will help to reduce issues from unexpected configurations. |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform
issue trackers reserved for bug reports and feature requests. For general usage
questions, please see: https://www.terraform.io/community.html.
Terraform Version
Terraform v0.11.3
Run
terraform -v
to show the version. If you are not running the latestversion of Terraform, you can try upgrading, depending on if your problem is
with the provider or with Terraform core itself.
vSphere Provider Version
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Expected Behavior
~ module.primary_sql_ndm.vsphere_virtual_machine.vm
disk.#: "8" => "8"
Actual Behavior
~ module.primary_sql_ndm.vsphere_virtual_machine.vm
disk.#: "1" => "8"
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
Important Factoids
Code is cloning from a windows template that only has 1 drive. Not sure if this is the reason for the update
The text was updated successfully, but these errors were encountered: