Flush mine during upgrade#4934
Conversation
Hello eg-ayoub,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
|
LGTM |
|
Review by Claude Code |
| # Run on all minions so the master has a clean, up-to-date mine cache for | ||
| # the entire cluster before any upgrade state queries it. | ||
| SALT_MASTER_CALL=("${EXEC_CONTAINER_COMMAND[@]}" "$(get_salt_container)") | ||
| "${SALT_MASTER_CALL[@]}" salt '*' mine.flush |
There was a problem hiding this comment.
run_quiet disables set -e, so if mine.flush fails, execution continues to mine.update. Since the whole point is to delete the corrupt cache first, a failed flush means mine.update hits the same corrupt file — exactly the bug this function exists to fix. Check the return code of mine.flush before proceeding.
```suggestion
"${SALT_MASTER_CALL[@]}" salt '*' mine.flush || return 1
Review by Claude Code |
ce63c07 to
27ceac6
Compare
|
LGTM |
MK8S-217 The mine can be flushed and updated during a metalk8s upgrade to avoid errors where the mine gets corrupted.
MK8S-218 in deployments where dex is disabled, the mine.update functions are flooded with warnings from the dex mine function failures we can fix this by gating this mine function behind the actual state of dex. the function won't be declared if dex is disabled.
27ceac6 to
dc852db
Compare
|
/approve |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option The following options are set: approve |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list: The following options are set: approve |
|
LGTM |
MK8S-217 The mine can be flushed and updated during a metalk8s upgrade to avoid errors where the mine cache gets corrupted.
this is done by a function in upgrade.sh that runs as soon as possible after the bootstrap upgrade to flush the mine