-
Notifications
You must be signed in to change notification settings - Fork 74
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
Documented variables machine
& efidisk
are not recognised
#50
Comments
Confirmed the same behaviour on different Ubuntu 20.04.3 LTS with compiled from source and prebuilt plugin. |
Also Using
|
And just to make sure that it is not my machines doing that i ran everything inside of a docker container.
@KnKay Maybe you can look at it since you implemented that feature? |
@meaty-popsicle At the moment I am a bit busy. Will try to have a look next week. Did you compile whole packer? I had the same issue during development. I renamed the module for this and that worked. |
Hi all, so, I made a quick lookup in my setup. But, once I do the packer init and add all to the config like @meaty-popsicle did, it should use the downloaded plugin. I created a gist. Not sure what is happening. At the moment I have no idea if this is indeed the packer thing or anything in my code part. Too much a noob in projects of this size and the packer import plugin thing |
Hi all, to be honest, I do not get it. I made my configuration workign with the correct plugin. But I get the same error. During time of the merge things worked @ronaldslc also validated this. It was working. Not sure if something in general changed? |
@KnKay Thanks for your input. I recompiled only the plugin itself. In my case the plugin is downloaded successfully and is present on the file system during build, but throws errors. I am assuming that there is something in how packer interacts with the plugin or something with the compiled binary.Otherwise i am not sure what might be the issue too. |
@meaty-popsicle not too happy, not to know where the stuff is going wrong. As per my memory I had this, like mentioned, during development as well. What worked for this time is renaming the provider. Not sure if only the provider or the binary as well. But this is not really an option for normal use. I added some ui output. But it did not even reach this point. So not sure what happens. |
Okay. Got it more or less confirmed. I removed all plugins downloaded. making a packer validate and getting the error. Renamed the provider to get list of available one. See gist I recompiled the latest version of the packer plugin. Gave it a different naming. Digging more into the list of the gist I saw some strange thing. There is a proxmox-proxmox-*** provider. So it seems saying the provider is proxmox-proxmox-iso solves the issue. |
@KnKay Thanks for taking the time to check this issue out. Followed the same steps as you. After seeing your reply it seems that now you have to specify which builder you are attempting to use. After changing my plugin stanza to specify which builder i am using everything worked as is. In this case it is
But still, for my previous builds that do not require variables |
Sounds very good! Glad to see it was just a little thing. Hope to remember this once i am back on the project that needed this! Cheers! |
Hi releases of the proxmox builders prior to v1.1.0, which was released today, were incorrectly registered as The correct required plugins block should look like the following
You are encouraged to upgrade any locally installed version of this plugin to v1.1.0 and try again if you are still running into issues. Refer to #119 for more details on the incorrectly registered builders. |
@nywilken Thanks for detailed explanation! Will mark this issue as closed. |
Overview of the Issue
Variables
machine
&efidisk
are not recognisedDespite being documented here and here variables are not recognised by packer and crash the build if decalred.
Reproduction Steps
Build a manifest with
efidisk
ormachine
present.Plugin and Packer version
Packer v1.7.8
packer-plugin-proxmox v1.0.3
Simplified Packer Buildfile
Gist
Operating system and Environment details
Log Fragments and crash.log files
Full log:
Gist
Errors:
The text was updated successfully, but these errors were encountered: