-
Notifications
You must be signed in to change notification settings - Fork 306
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
Bump alpine-lima iso from v0.2.1 → v0.2.2 #1014
Conversation
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.
Upgrades from the main branch don't work on macos (monterrey 12.0.1 / intel)
Please provide more information! How does it fail? What is the error message? I did.... don't know what happened there. Stay tuned |
In k3s.log, stuck at
This is what I see repeatedly in
To reproduce:
This happened in 3/3 runs. I did a similar run with release builds and got the same results. |
@ericpromislow The upgrade failed because our mechanism for persisting @mook-as Please review the new upgrade logic! I've tested it, and it seems to work fine so far, but this part should have multiple reviewers. Is there anything else we want to preserve from the previous |
cdb6f82
to
137e7a1
Compare
* Bumps Alpine from 3.13.5 → 3.14.3 * Installs qemu-aarch64 from tonistiigi/binfmt instead of Alpine repo to include additional patches. * Installs qemu-x86_64 in the aarch64 iso Signed-off-by: Jan Dubois <[email protected]>
The date based copy mechanism was unreliable, and other data (like apk status) was incorrect after an update. Signed-off-by: Jan Dubois <[email protected]>
137e7a1
to
eaa9f5a
Compare
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.
Looks fine to me, though I thought we moved to copying all of /etc
because we wanted to support people adding extra files?
Yes, but we can't really. The only viable alternative would be to copy all files from the new ISO into Lmk if you think that is preferable! |
On further reflection this isn't really a good option either because it would not remove files that maybe need to be removed, e.g. a service that has been renamed will still be included under the old name, config files, and run levels. So I think the proper way to add/modify files persistently under Note that lima-vm/lima#436 should help in the future to keep user-supplied provisioning scripts separate from the ones managed by Rancher Desktop, and therefore more likely to survive app updates, or config changes. |
I'm totally happy to declare that nothing in |
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.
I ran the following commands on the latest commit and it failed the k3s API failed to start up.
Workflow:
git co main
# clear the cache
npm run dev # and shutdown
git co alpine-3-13
\rm -fr resources && git co resources && npm run postinstall
npm run dev
Contents of k3s.log:
tail: can't open '/var/log/k3s.log': Permission denied
Running limactl shell 0
to look at the log file:
/var/log/k3s.log
is owned by root, perms 600, so a non-root process can't see it.
There are 60 Error lines in the log file. Let me know if there's anything specific I should report.
@mook-as Is this due to your recent changes on Windows as well? Any suggestion how to modify the Lima codepath to match what Windows is doing? |
I also see the issue about |
Ok, so let's wait for that fix, and then I'll rebase this PR on top of that fix, so that we can still test the upgrade scenario before merging. Is there a bug for the permission issue? And/or is somebody already working on it? |
Eh, pretty sure it's my fault so I'll work on it now :D |
This shouldn't have been clsoed by #1023. |
Bumps Alpine from 3.13.5 → 3.14.3
Installs qemu-aarch64 from tonistiigi/binfmt instead of Alpine repo
to include additional patches.
Installs qemu-x86_64 in the aarch64 iso