-
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
vsphere_file
error: A specified parameter was not correct: fileType
#1243
Comments
This is funny, I haven't checked the source code..but if I rename my local VMDK to something random, like my_vm_file.apples I can upload the file to the datastore perfecly fine This does not work: This works! Its like vcenter refuses to receive VMDK-files (it comes to this conclusion when upload is complete) but its OK to upload .log or other random file endings. Renaming the file is apparently OK after upload :) |
I get the following error:
If I renamed the file from TEST-latest.vmdk to TEST-latest.upload everything works. |
I don't know if I'm too stupid, but I can't get it to assign the file I uploaded to a VM. Does I need this too https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/virtual_disk My version I use are:
My main.tf extract
EDIT: Error message from terraform is: |
The issue seems to be below in the code where a .vmdk is copied to a temporary file and then moved to the final destination. terraform-provider-vsphere/vsphere/resource_vsphere_file.go Lines 197 to 206 in c890513
This was introduced in d7d070b#diff-2355e16e1bc6ee045465c7d31518f399d7ebe738bcf5c573f361a9c4f8b3169b by @jcpowermac for support of vmdks. @jcpowermac, would you be willing to review this issue? Ryan |
Duplicated in #1296. |
vsphere_file
error: A specified parameter was not correct: fileType
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. |
Terraform Version
Terraform v0.12.26
vSphere Provider Version
provider.vsphere v1.24.2
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
File should be uploaded to datastore.
Actual Behavior
Terraform attempted to upload the file, but got an error.
I can see the same error from inside vcenter under recent tasks as well.
Steps to Reproduce
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: