2018/10/22 14:21:32 [INFO] (telemetry) Starting post-processor vsphere--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a6b1f4a9-61c3-48e8-b4db-5ad12b7a0194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a7cafd2e-c816-490a-a406-5a6560765662%40googlegroups.com.
Error: Locator does not refer to an object: vi://packer%40vsphere.local@vcenter:443/Datacenter/host/Cluster/?dns=incorrect-esxi-host-dns2018/10/23 11:56:32 [INFO] (telemetry) ending vsphere2018/10/23 11:56:32 Deleting original artifact for build 'vmware-iso'2018/10/23 11:56:32 ui error: ESC[1;31mBuild 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Error uploading virtual machine: exit status 1
ESC[0m2018/10/23 11:56:32 Builds completed. Waiting on interrupt barrier...2018/10/23 11:56:32 machine readable: error-count []string{"1"}2018/10/23 11:56:32 ui error:==> Some builds didn't complete successfully and had errors:2018/10/23 11:56:32 machine readable: vmware-iso,error []string{"1 error(s) occurred:\n\n* Post-processor failed: Error uploading virtual machine: exit status 1\n\n"}2018/10/23 11:56:32 ui error: --> vmware-iso: 1 error(s) occurred:
* Post-processor failed: Error uploading virtual machine: exit status 1
2018/10/23 11:56:32 ui:==> Builds finished but no artifacts were created.2. "keep_input_artifact: true" in a post-processor does not work if the post-processor fails.
3. packer swallows legitimate errors from ovftool requiring a manual run with a copy of the artifacts from previous post-processor or build steps grabbed during pauses using -debug switch
4. vsphere post-processor is reporting a failure with no specific error from ovftool. Manual runs with the identical command work.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/778be8ac-9ce7-4fb3-995e-85efbb84462e%40googlegroups.com.
2. "keep_input_artifact: true" in a post-processor does not work if the post-processor fails.
This is intended, if something in the build - provision - post-processor chain fails the whole build is removed.
2> /dev/null
on the end of the line (this will strip out stderr) and post the output here. What version of ovftool do you use?
4. vsphere post-processor is reporting a failure with no specific error from ovftool. Manual runs with the identical command work.
This is most likely a discrepancy in what you command packer is running and the one you run. This should hopefully be clarified by seeing the output when packer fails.
Okay, thanks for clarifying, though this makes troubleshooting the below stuff more frustrating since I have to babysit a run with -debug in order to copy the artifact out at the right time
A manual run dumping stderr to /dev/null does not show any different in output. This is on ovftool version 4.3.0, which is bundled with VMware Fusion 11.0.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/536e527e-ba53-4e59-a8fc-9300661c5004%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/19c7dd50-6874-4eeb-b427-48103242bdee%40googlegroups.com.