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
A potential bug in NewElementalPartitionsFromList
which caused upgrade error code 33
#1827
Comments
@w13915984028 can you give us access to a system where the error happens ? |
Hi @w13915984028, I'm having trouble reproducing this, could you share the logs including |
@kkaempf @frelon thanks. The cluster node1, is upgrading from Harvester v112 (from old elemental-cli) to v120 (elemental-toolkit), and it sutcks now. Maybe the old version generated the mal-formed yaml. (I did not check old code yet) If you need any information, please move to harvester/harvester#4526 (comment) :) |
Ok I finally went through the upgrade path of previous staring from v0.0.14. I found there are mostly three relevant commits, in chronological order:
Unless I missed some detail my understanding is that a secure upgrade path would be So in short the issue comes from the fact that the harvester deployment was including an incomplete @Vicente-Cheng suggested and improvement which is reasonable to my eyes which is filling missing state.yaml values with defaults. Currenlty default values are only used if no state.yaml is provided at all, we can expand this to missing values. From a Harvester POV the solution I think is to upgrade from system having a complete |
I check with the early version like harvester v1.1.1, there is not any Harvester v1.1.2 and later version use the newer elemental-cli, so the format of |
I'd like to know the exact toolkit versions for which the upgrade caused the creation of the |
Let me reproduce it again; will update later. |
TL;DR, The upgrade elemental toolkit version (form command
Related commit: rancher/elemental-cli@b918db3 Detail described as below (you could see the harvester v1.1.1 partition list as below:
The elemental-cli version (for command
The elemental-cli version (for command
After upgrade
|
NewElementalPartitionsFromList
which cuased upgrade error code 33NewElementalPartitionsFromList
which caused upgrade error code 33
@Vicente-Cheng thanks for all the details. Yes this explains the issue, v0.1.1 was missing rancher/elemental-cli#388 which was included as part of v0.1.3. We need to better align elemental and harvester releases. |
@davidcassany, I think we harvester would have better alignment from v1.2.0 by relying on the OBS elemental RPM! |
elemental-toolkit version:
Latest
CPU architecture, OS, and Version:
Describe the bug
Error code 33 was encountered in Harvester upgrade.
Please refer harvester/harvester#4526 (comment)
To Reproduce
Harvesrter Upgrade.
Not sure why, the
/host/run/initramfs/cos-state/state.yaml
is missing theFSLabel
, and it further caused error code 33Expected behavior
Logs
Additional context
The text was updated successfully, but these errors were encountered: