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
enable vsphere-template post processor to work with local builders #5380
Conversation
This looks good to me. I saw in #5354 that there's some real world usage of this. I will target this for a future release and solicit comments until then. Unfortunately I'm not well versed enough in vsphere to really understand the implications of this, so will rely on the community to voice their opinions. Thanks for the work! |
This would be awesome to have, as I'm currently using the VSphere SDKs to do the next post processing step of marking a VM as a template after uploading using the VSphere template - and having everything done with Packer instead would be very nice instead of maintaining custom scripts. |
@jonmosco Could you test this again? I did few changes, in this moment I've troubles with my local environment, your feedback will help me a lot. |
Yes, for sure. Are all the commits in the repo I was testing against previously ? |
Yes, same repo. |
Ok, it did not complete successfully. Same packer template, and after building, this is the packer version being used: Packer v1.1.2-dev ==> vmware-iso: Running post-processor: vsphere-template
==> Some builds didn't complete successfully and had errors:
==> Builds finished but no artifacts were created. |
@jonmosco Thanks!! It was helpful. Could you try again? |
Looks good: ==> vmware-iso: Running post-processor: vsphere-template |
@f-roscher just to be clear about which version was compiled: using docker
using fork directly
Also I would like know your workstation or player version. |
@f-roscher Could you try again? I'll glad to help you. |
@bugbuilder @jonmosco, thanks for your help. In fact I had not been using a current build from the checked out branch when I got the error. The error message has vanished now. |
@bugbuilder I don't have any success with the target folder. The output says: But the VM-Template ends up within the top folder of the respective datacenter. |
Could you share your template, log, vSphere version and workstation version please. |
@f-roscher your feedback is welcome. |
@f-roscher Thanks. I'll take a look this week. |
@f-roscher to understand your problem, yoy said
But I saw your template and I didn't see the option Please let me know if I understand your problem. |
@f-roscher I think that you want that the |
@bugbuilder : I am no longer sure if I would classify the current behaviour as a bug. Based on my interpretation of older discussion on this pull request and related branches and issues on Github I tought, the option 'vm_folder' of postprocessor 'vsphere' would define the folder to put the template into in the end. This assumption seems to be false. I will retry with different settings including the option 'folder' on the postprocessor 'vsphere-template'. |
Hi @f-roscher I'm think the same it's not a issue or bug, in the future both post-processor needs to be merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this change!
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. |
Takes an artifact from the
vsphere
post-processor and allows to use thevsphere-template
with it.Closes #5354