-
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.16.0 - vsphere_virtual_machine : Invalid operation for device '0' #965
Comments
Hi @dstoffel-de! I believe this is related to #966, but seems to be a different manifestation. I'm working on tracking down the potential causes of this issue. There are a few data points I could use that would help make sure I cover all the cases.
Thanks, and I'll provide updates shortly. |
Hello @bill-rich ,
The terraform's user have the Administrator role at the Global Permissions level. (access control -> global permission) Let me know if you need something else. Thanks ! |
I believe I have a fix ready for this. I'm running acceptance tests now to confirm. The problem was with how the storage policy was being looked up for VMs. The VM's template's storage policy was being checked on each read. Thanks for helping track this down! |
I'm going to close this out since I believe it is fixed in v1.16.1. Please let me know if I'm mistaken and I'll get the issue reopened. |
Hello @bill-rich Same issue with v1.16.1 (i don't think it's related to the permission but i can be wrong). Terraform v0.12.20
Let me know what i can share (according to the SOAP call, this error is returned after the ReconfigVM_Task) https://gist.github.com/dstoffel-de/7ae3c6a26c97ea58c3723c6233857b25 Thank you, |
The issue is still there with the latests version: Terraform v0.12.24
|
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! |
Hi,
Since the release 1.16.0 of the terraform-provider-vsphere, we are unable to create new virtual machine. (works with older release)
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'.
Let me know if you need more information (govmomi log?)
Terraform Version
Terraform v0.12.20
vSphere Provider Version
.
└── provider.vsphere
( provider.vsphere v1.16.0)
Affected Resource(s)
Please list the resources as a list, for example:
vsphere_virtual_machine
Terraform Configuration Files
Debug Output
https://gist.github.com/dstoffel-de/0ca6f1173974a8d969f65b40696eb0c6
Expected Behavior
What should have happened?
VM created
Actual Behavior
What actually happened?
Error during cloning
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: