-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster #6757
[proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster #6757
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
One question: was requests_toolbelt already required in the past, i.e. did the module not work when it was around in all situations; or is this a new requirement? If it is a new requirement, this is a breaking change.
(If that's the case, it's probably better to warn about it missing when the size of the file is larger than a certain limit, instead of failing.)
Also I don't see how the toolbelt is being used. Is it used implicitly by proxmoxer or some other code in the module?
@felixfontein looks like a problem with the |
Yes, it is used in proxmoxer. |
@felixfontein I added notes about file size and usage of |
@UnderGreen this PR contains the following merge commits: Please rebase your branch to remove these commits. |
c635411
to
4868065
Compare
I killed the config that the bot apparently uses in #6804, so it should no longer push unwanted commits. Unfortunately it still makes CI fail by adding a failed check... I don't have sufficient privileges to get rid of the bot myself, but I've asked on IRC, hopefully it will be gone soon... |
1d5368e
to
02512ed
Compare
I've removed the commit; please now ignore the failing pre-commit.ci check :) |
I requested the bot app install for the repos with the config having seen people running it in GHA in some subprojects which is inefficient, but didn't take into account that since it didn't run in some CIs the violations might've accumulated over time. I also forgot that by default it commits the changes to PRs. This one is solvable through a configuration change, but the bot would still report the check for as long as the config exists. The change was sudden, likely because it happened when somebody approved the GH App install which was like a day later after the request.
That shouldn't be happening. Sounds like a race condition, or maybe the PR wasn't rebased after that? Looks like it's the latter — the Checks widget says: |
It also happened for a new PR (#6808) from |
@felixfontein any insights on why it is still failing for 2.6? |
I skip 2.6 Python as it was never supported by |
Backport to stable-6: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 2d6e369 on top of patchback/backports/stable-6/2d6e369d81441279df812eea495710fc7abad4ad/pr-6757 Backporting merged PR #6757 into main
🤖 @patchback |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6831 🤖 @patchback |
…uster (#6757) * [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster * Fix pep8 test * Add changelog fragment * Add notes about requests_toolbelt * Check versions and file size * Fix typo in notes * Add unit test. Move try inside of each function. * Fix sanity tests * Add proxmoxer in requirements file * Update integration tests * Add proxmoxer into constraints.txt * Address review comments * Don't run tests on 2.6 python * Disable Python 2.6 tests for other proxmox modules (cherry picked from commit 2d6e369)
@UnderGreen thanks a lot for your contribution! |
…hile uploading big ISO to Proxmox VE cluster (#6831) [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster (#6757) * [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster * Fix pep8 test * Add changelog fragment * Add notes about requests_toolbelt * Check versions and file size * Fix typo in notes * Add unit test. Move try inside of each function. * Fix sanity tests * Add proxmoxer in requirements file * Update integration tests * Add proxmoxer into constraints.txt * Address review comments * Don't run tests on 2.6 python * Disable Python 2.6 tests for other proxmox modules (cherry picked from commit 2d6e369) Co-authored-by: Sergei Antipov <greendayonfire@gmail.com>
SUMMARY
Fixes #5579.
As per documentation from proxmoxer
requests_toolbelt
is required to upload large files.Can't find the exact size of that large file definition, but from my personal testing on Darwin x86_64 it is around 260/261MB. Not sure where it is coming from, so can't explain it.
ISSUE TYPE
COMPONENT NAME
proxmox_template
ADDITIONAL INFORMATION
Integration test output with updated module: