-
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
Fix VMDK upload failure on ESXi host using vspshere_file
resource.
#1409
Conversation
@bill-rich @koikonom @aareet @sumitAgrawal007 Can you guys please look into this PR and provide your comments? Thanks in advance. |
@bill-rich @koikonom @aareet @sumitAgrawal007 Can anyone please review this PR? Its been pending for too long and we are blocked because of it and not able to pick the latest vsphere provider version for ESXi. |
@bill-rich @koikonom Can you please help getting this PR reviewed and merged? We need to move to the latest version of vsphere provider and this issue is blocking that. |
@sumitmaggo Can you update the description with "Closes #1296' to link the pull request to your issue using the keyword? Ryan |
Thanks @tenthirtyam, updated the description to link it with the issue. |
vspshere_file
resource.
@sumitmaggo - I found the issue and will submit a fix to your branch soon. |
A destroy would complete as a false positive when deleting a .`vmdk` and would leave the file since the `DeleteDatastoreFile_Task `could not delete a VMDK. This change updates the methods used in the `deleteFile` function. - If the source file is a `.vmdk`, the Delete method uses the correct `DeleteVirtualDisk_Task`. - If the source file is not a `.vmdk`, the Delete method uses the correct `DeleteDatastoreFile_Task`. Signed-off-by: Ryan Johnson <[email protected]>
@appilon - I've updated @sumitmaggo's pull request to address a failure seen after a successful upload. A destroy would complete as a false positive when deleting a . This change updates the methods used in the
terraform-provider-vsphere/vsphere/resource_vsphere_file.go Lines 394 to 439 in 86a38bb
The same method is used in the terraform-provider-vsphere/vsphere/resource_vsphere_virtual_disk.go Lines 347 to 354 in c33786d
I've successfully tested these changes on vSphere v7.0.3(c) and v6.7.2, testing the following: ✅ Create Ryan |
Thanks @appilon and @tenthirtyam for the review and merge of this PR. |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Fixes issues where
vsphere_file
resource fails to upload VMDK file to ESXi host datastore.VMDK disk upload has been tested with Terraform 0.13 version on ESXi.
Release Note
vsphere_file
resource: Fix upload of VMDK to datastore on ESXi host. [GH-1409]References
Closes #1296
Closes #1243