Skip to content

Commit 52e7327

Browse files
committed
Merge branch 'bugfix/salt-mine-breaks-on-update-is-flaky' into q/133.0
2 parents 4ed089c + 1f0c1c0 commit 52e7327

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Release 133.0.10 (in development)
44

5+
### Bug Fixes
6+
7+
- upgrade script now waits for all minions to reconnect to new salt master before
8+
flushing the mine
9+
(PR[#4972](https://github.com/scality/metalk8s/pull/4972))
10+
511
## Release 133.0.9
612

713
## Release 133.0.8

scripts/upgrade.sh.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ upgrade_bootstrap () {
9090
"$SALT_CALL" --local saltutil.refresh_grains
9191
"$SALT_CALL" --local --retcode-passthrough state.sls \
9292
metalk8s.salt.master.installed saltenv="$SALTENV"
93+
94+
# After the salt-master container restarts, wait for all minions to
95+
# reconnect before proceeding. Without this, the subsequent mine.flush
96+
# + mine.update may fire before minions have re-established their ZeroMQ
97+
# connection, causing "Minion did not return. [No response]" errors.
98+
SALT_MASTER_CALL=("${EXEC_CONTAINER_COMMAND[@]}" "$(get_salt_container)")
99+
retry 10 10 "${SALT_MASTER_CALL[@]}" salt '*' test.ping
93100
}
94101

95102
flush_and_refresh_mine() {

0 commit comments

Comments
 (0)