-
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
v1.17.0 - vsphere_virtual_machine : Invalid operation for device '0' #1016
Comments
Hi, I'm getting this error and been trying to find a workaround until the issue is fixed. tl;dr; More info Reproducing error
Workaround
Summary Versions tested |
I've got exactly the same issue from packer created VM. Seems to be ok with VM created manually. Nic |
We just hit this one on 1.17.3, it looks identical to #965. Terraform version was 0.12.24 |
Having this issue with:
I'm wondering if this is might be a Packer or Terraform related issue? |
It could even be both. |
Same here, I have two Vsphere environments and the error only happens in one of them: Does NOT work
|
I'm having the same problem with packer packed VM templates instantiate through the vSphere UI without problem |
Definetively the issue is in the provider as pointed by @derrar05aiss I can create the VM forcing the provider to 1.15 |
Yes same issue here : error reconfiguring virtual machine: error reconfiguring virtual machine: Invalid operation for device '0'. forcing the provider version to 1.15 helps thanks! |
I found the root cause of this issue by investigating differences between 1.15.0 and 1.16.0 releases. Investigation logsFirst, i activated
The related error message is following.
So, the first clue seems to be the Then, I decided to compile every commits between 1.15.0 and 1.16.0 and redo the same test with the compiled plugin by using The second clue is the SolutionIn order to get the name of the Storage Policy at VM and disk levels, follow these instructions:
See below the updates required to fix the issue.
|
Hi, I have the same issue. Environment
It crashes when disk size is calculated basing on the template data:
I got However, if I precise the
When I create the VM manually I do not need to expand the disk size, the VM is created without error. Any idea? Thanks a lot. |
@gitnetofr : the root issue appears to result from the I've opened #1397 with a fix. |
I believe this issue was fixed by #1397, included in the 2.0.0 release. |
@iBrandyJackson and @appilon can you review if this one can be closed per the fix in the PR mentioned above? Ryan |
Will close, if the issue persists after upgrading to v2.0.0 of the provider please feel free to comment for re-evaluation |
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. |
Hello,
I'm currently unable to deploy VMs using the terraform-provider-vsphere 1.17.0 and I'm getting :
vsphere_virtual_machine.svvm: Creating...
vsphere_virtual_machine.svvm: Still creating... [10s elapsed]
Error: error reconfiguring virtual machine: error reconfiguring virtual machine: Invalid operation for device '0'.
with the version 1.15, the VM is created with the same configuration
Terraform Version
Terraform v0.12.24
vSphere Provider Version
provider.vsphere = 1.17.0
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Debug Output
https://gist.github.com/derrar05aiss/f29196d83eb90dc21380b11eca8c39d5
Expected Behavior
VM creation
Actual Behavior
Error while reconfiguring the VM
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should
be linked here?
The text was updated successfully, but these errors were encountered: