Repository navigation
fix(clustertool): warn about schematic mismatches before apply - #604
Merged
Merged
Conversation
Closed
🚀 HelmRelease CI ReportOverall Status
🧪 HelmReleases Tested⏭️ HelmReleases SkippedResultℹ️ No HelmReleases required testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Reported feedback
clustertool talos applyassumes that unattended installation will install the configured Talos image. However, nodes booted from raw disk/VM images or reset to maintenance may already have Talos installed.In that case, unattended installation is skipped. Applying configuration does not replace the existing Talos version, kernel arguments or system extensions, or reinstall Talos onto the configured target disk. This also affects installations accidentally running from a USB drive.
Solution
Add a check before applying configuration to maintenance nodes:
readystatus to identify an existing Talos installation.SystemDiskto display the detected installation disk.unknownand require confirmation.talosctl wipe disk --helpbefore removing an existing installation.The check covers normal apply, initial bootstrap and resumed bootstrap. Fresh ISO boots with META reported as missing proceed without this warning.
⚙️ Type of change
🧪 How Has This Been Tested?
Automated tests pass:
go test ./pkg/gencmd ./cmd.Tests cover fresh ISO nodes, running nodes, matching and differing schematics, failed or incomplete inspection, and inspecting all nodes before one confirmation.
Manual validation of the final revision:
/dev/sdaand both schematic IDs were displayed correctly for each node.nand confirmed the command stopped before applying configuration.A two-control-plane bootstrap, Ready status and final schematic IDs were verified during earlier testing of this PR. Those completion checks have not yet been repeated for the final revision.
📃 Notes:
The detected schematic describes the currently booted image.
SystemDiskidentifies the discovered installation disk; it does not prove the current boot source.The check performs read-only inspection. Wiping remains a manual operation, and disks in use may require a different reset/wipe procedure.
✔️ Checklist:
feat(clustertool):fix(clustertool):chore(clustertool):