-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Adding controller creation logic #6853
Conversation
If a scsi or ide controller does not exist at the time a new disk or cdrom needs it, we need to add that controller to the vm.
FYI, my opinion is that the flat/sparse logic is a bit of a work around, the real fix would restructuring the hierarchy of govmomi type structs. The |
@stack72 I should have mentioned this before to help prioritization: This is a fix for a bug in the addHardDisk function. Without this, adding a disk as IDE in common cases will result in an unhandled Terraform exception: "no available IDE controller". The flat/sparse logic is handling disk dereferencing in the same case. |
@dkalleg if this is a bug fix, which unit test should have caught this?? |
I would have expected |
@dkalleg ready for merge? |
If nobody has comments, then it's ready to go. |
Hi @dkalleg / @chrislovecnm As long as you guys are then this is fine with me :) Can we make sure and follow up with some tests on it? P. |
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. |
If a scsi or ide controller does not exist at the time a new disk
or cdrom needs it, we need to add that controller to the vm.
Also adding logic to handle reading either a flat or sparse
disk from vSphere.