-
Notifications
You must be signed in to change notification settings - Fork 70
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
Failed to upload 151MB or 3GB iso file #197
Comments
Seeing this issue with 1.1.3 (Specifying) or 1.1.5 The only place in code I can find the 501 for data too large is in the pve http server: https://git.proxmox.com/?p=pve-http-server.git;a=blob;f=PVE/APIServer/AnyEvent.pm;h=c1dade89da47813ca61601d629fe5e565d197221;hb=refs/heads/master#l1327 if ($len > $limit_max_post) { The variable for max post is set as such: $limit_max_post = 64*1024; My guess is the error has to be in either the proxmox plugin or the client but so far I can't debug where. |
With @nick-holmquist's contribution on PR #238, this might fix this issue. I triggered a release for v1.1.6, which should be available within the hour if things go according to plan. Could you confirm if you're still hitting the issue with that version @rgl? Thanks |
I've tried with v1.1.7, and it still has the same problem :-( PS I've created a packer template that reproduces the problem at https://github.com/rgl/packer-plugin-proxmox-issue-197. |
I also had this issue in v1.1.6 and v1.1.7 until I worked out that you need to provide a iso_storage_pool value in the additional_iso_files block. Packer errors if iso_storage_pool isn't defined for the main ISO attached to a VM, but doesn't error for additional_iso_files blocks. Running the packer build with the -debug flag showed the POST URI during ISO upload as /nodes/proxmox_node/storage//upload, the underlying API module is performing a substitution for the storage pool between storage and upload (https://github.com/Telmate/proxmox-api-go/blob/master/proxmox/client.go#L1369C2-L1369C86). |
@mpywell oh nice! thank you for catching that! it's working here too :-) by any change, will you be able to create a PR to make additional_iso_files validate iso_storage_pool? or even default its value to the parent iso_storage_pool? |
With #252 merged, I'm pre-emptively marking this issue as needs-verification; I'll release the plugin next week, and we can close this after a few weeks/months, unless we see more reports. |
Specified iso_storage_pool in the additional_iso_files block which resolved this issue for me. Thank you @mpywell and @lbajolet-hashicorp for your investigation and work. |
Overview of the Issue
The plugin cannot upload an iso file with a 151MB or 3GB when using a
additional_iso_files
block.Please note that using
iso_url
works fine. This problem seems to apply only to theadditional_iso_files
block.Reproduction Steps
Plugin and Packer version
Plugin v1.1.3
Packer v1.9.1
Simplified Packer Buildfile
Operating system and Environment details
Ubuntu 22-04 amd64 host.
Log Fragments and crash.log files
Abbreviated:
The text was updated successfully, but these errors were encountered: