Open afretwell opened 1 year ago
Hi there @afretwell thanks for reaching out. Your template is setup correctly. The issue you are running into here is that the QEMU builder is not generating HCP Packer images, as they require some additional metadata.
That said, only a handful of Packer builders work with HCP Packer. I'm going to use this issue as a feature request to add HCP Packer image publishing support to the QEMU builder.
This issue has been synced to JIRA for planning.
JIRA ID: HPR-843
Hi there @afretwell thanks for reaching out. Your template is setup correctly. The issue you are running into here is that the QEMU builder is not generating HCP Packer images, as they require some additional metadata.
That said, only a handful of Packer builders work with HCP Packer. I'm going to use this issue as a feature request to add HCP Packer image publishing support to the QEMU builder.
Amazing to hear, thank you, I'm sure it's not the top of priorities, but is there an average turnaround time for enhancements like this one?
Any update on this feature for qemu builder?
Would really love to hear any updates on this. Really would love this support!
Overview of the Issue
When I add the
hcp_packer_registry
block to my builds block I see that my build instantly fails when reaching thehcp_packer_registry
block. When I do not add thehcp_packer_registry
block I am able to successfully create my Ubuntu image with no issues, I just cant push it to HCP Registry. I have logged into HCP cloud and was able to see that my build is being queued to hcp registry, but always results in failed status because of the issue Im being faced with. All of my parameters from myhcp_packer_registry
block are making being sent to hcp successfully but my image is not for some reason. Ive even tried removing all parameters with the exception ofbucket_name
but still results in this block failing 100% of the time on multiple systems. Assistance would be greatly appreciated.Reproduction Steps
HCP_CLIENT_ID
andHCP_CLIENT_SECRET
env varshcp_packer_registry
block to your build block in your hcl2 filePACKER_LOG=1 packer build ubuntu.pkr.hcl
Packer errors out after post-processors end and returns the error:
Packer version
Packer v1.8.4
Simplified Packer Template
Operating system and Environment details
whpx
acceleratorhvf
acceleratorLog Fragments and crash.log files
PACKER_LOG=1 Error Logs