-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Don't run the extraction tar container for podman #8057
Conversation
The preloaded images will be extracted anyway, using ssh. But if creating them on the volume before the container is booted, means that /var will not be fully copied over to it. And without /var/lib/dpkg and others, kicbase will not boot. So skip the parallel extraction for podman, do it afterwards. Probably shouldn't mount all of /var, but just a sub-set...
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afbjorklund The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
@@ Coverage Diff @@
## master #8057 +/- ##
=======================================
Coverage 35.45% 35.45%
=======================================
Files 146 146
Lines 9284 9284
=======================================
Hits 3292 3292
Misses 5592 5592
Partials 400 400 |
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.
Makes sense, I believe for podman the volume is just a folder on your system. If the host system had lz4 installed we could do it with lz4 in parallel. But probably that would be too much depending on user tools.
/ok-to-test |
kvm2 Driver |
You could always go back to gzip, or even to plain .tar if that was the only problem. Or perhaps bundle lz4 with minikube, like we did for lzma when it was new and xz hadn't taken over yet. |
It's a folder on Docker too, the main difference is in timing when it copies the files over. But otherwise it is quite similar, there are only small differences in paths and timestamps:
So we have 5M of various junk under
But we only actually use a couple of those, like #8056 (comment) The rest just gets duplicated (from the image), for no particular reason. |
My solution going forward would be to maybe keep the /var volume (for compatibiity when upgrading), but to only mount a subset of the existing folders. Like we are doing with the ISO, to make them same. But will open a new issue for that. I don't think the storage-provisioner works in KIC either, since we are missing those mounts. Another issue (storage-provisoner) |
The preloaded images will be extracted anyway, using ssh.
But if creating them on the volume before the container is
booted, means that /var will not be fully copied over to it.
And without /var/lib/dpkg and others, kicbase will not boot.
So skip the parallel extraction for podman, do it afterwards.
Probably shouldn't mount all of /var, but just a sub-set...
Closes #8056