Due to a change in 0.37.0 of vmware/govmom, the ReconfigureFail needed to be removed. The CreateTask method in the TaskManager struct was updated. The new method now checks if the provided TaskTypeId is valid before proceeding. If it's not valid, it returns a SOAP fault with an InvalidArgument error.
Testing
➜ packer-plugin-vsphere git:(chore(deps)-govmomi) ✗ go get -u github.com/vmware/govmomi
go: upgraded github.com/vmware/govmomi v0.36.2 => v0.37.1
➜ packer-plugin-vsphere git:(chore(deps)-govmomi) ✗ go mod tidy
➜ packer-plugin-vsphere git:(chore(deps)-govmomi) ✗ make generate
2024/05/01 13:44:33 Copying "docs" to ".docs/"
2024/05/01 13:44:33 Replacing @include '...' calls in .docs/
Compiling MDX docs in '.docs' to Markdown in '.web-docs'...
➜ packer-plugin-vsphere git:(chore(deps)-govmomi) ✗ make build
➜ packer-plugin-vsphere git:(chore(deps)-govmomi) ✗ make test
? github.com/hashicorp/packer-plugin-vsphere [no test files]
? github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common/testing [no test files]
? github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/examples/driver [no test files]
? github.com/hashicorp/packer-plugin-vsphere/version [no test files]
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/clone 2.152s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common 3.629s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/driver 8.437s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/iso 3.859s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor 9.113s
ok github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere 4.293s
ok github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere-template 5.244s
Summary
vmware/govmom
from 0.36.2 to 0.37.1.vmware/govmom
, theReconfigureFail
needed to be removed. The CreateTask method in the TaskManager struct was updated. The new method now checks if the provided TaskTypeId is valid before proceeding. If it's not valid, it returns a SOAP fault with an InvalidArgument error.Testing
Reference
Ref: https://github.com/vmware/govmomi/commit/9c59e9c55da4d7bd7316a626404cc956da4f6c01#diff-b69f2c4e19456b811639643ed5dfe09357a280ac81b47249a14d6e625ef46317