Skip to content
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

Error: update failed #1151

Closed
EugenKon opened this issue Aug 4, 2023 · 9 comments
Closed

Error: update failed #1151

EugenKon opened this issue Aug 4, 2023 · 9 comments
Labels
kind/bug Something isn't working kind/upgrade-issue

Comments

@EugenKon
Copy link

EugenKon commented Aug 4, 2023

Description

I am trying to upgrade my CoreOS

$ uname -a
Linux www 4.1.6-coreos-r1 #2 SMP Wed Sep 2 04:16:15 UTC 2015 x86_64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz GenuineIntel GNU/Linux

 $ cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=766.3.0
VERSION_ID=766.3.0
BUILD_ID=
PRETTY_NAME="CoreOS 766.3.0"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"

Impact

$ sudo ./flatcar-update --to-version "$VER" --to-payload flatcar_production_update.gz --force-flatcar-key
Bind-mounting /usr/share/update_engine/update-payload-key.pub.pem
Forcing update...
Error: update failed

Environment and steps to reproduce

I follow instruction described here https://www.flatcar.org/docs/latest/migrating-from-coreos/update-from-container-linux/

Expected behavior

Updated CoreOS -> FlatCar

@pothos
Copy link
Member

pothos commented Aug 4, 2023

Can you share the output of journalctl -u update-engine --no-pager (the last ~100 lines should be enough)?

@EugenKon
Copy link
Author

EugenKon commented Aug 4, 2023

Sorry, I prepared it, but did not attached.

update.log

@pothos
Copy link
Member

pothos commented Aug 6, 2023

Ok, can you first update to an older Flatcar version like 2765.2.6? https://update.release.flatcar-linux.net/amd64-usr/2765.2.6/

@pothos
Copy link
Member

pothos commented Aug 6, 2023

Later versions don't provide the kernel anymore in the /usr partition for use with syslinux. I think you can try to migrate the machine by setting BOOT/coreos/vmlinuz-A instead of BOOT/syslinux/vmlinuz.A (same for B) in the boot loader and then remove the cros_legacy kernel parameter, reboot and then attempt the update to the latest version. Since I haven't tried it, it may not work.

@EugenKon
Copy link
Author

EugenKon commented Aug 8, 2023

@pothos We also noticed, that fleetctl was removed from distribution. Are there migration guides available for moving from freelctl to kubernetes?

@jepio
Copy link
Member

jepio commented Aug 8, 2023

fleetctl was removed from CoreOS in 2017, before Flatcar was created.

There is no straightforward migration. Depending on your needs you may be happy with systemd units starting docker containers (https://www.flatcar.org/docs/latest/setup/systemd/getting-started/#unit-file) or you may have to search the web for a kubernetes tutorial/guide.

@EugenKon
Copy link
Author

EugenKon commented Aug 8, 2023

@jepio Thanks

@EugenKon
Copy link
Author

EugenKon commented Aug 8, 2023

Found this documentation is useful in migrating from 'cloud-config': https://www.flatcar.org/docs/latest/provisioning/cl-config/from-cloud-config/

@pothos pothos moved this from 📝 Needs Triage to 🪵Backlog in Flatcar tactical, release planning, and roadmap Aug 21, 2023
@dongsupark
Copy link
Member

Thanks for the report.
It would be great to update the systems to newer Flatcar versions and test it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working kind/upgrade-issue
Projects
None yet
Development

No branches or pull requests

5 participants