Skip to content

Commit

Permalink
Merge branch 'w/2.8/improvement/improve-upgrade-robustness' into tmp/…
Browse files Browse the repository at this point in the history
…octopus/q/2.8
  • Loading branch information
bert-e committed Feb 18, 2021
2 parents 9d1d867 + 83a8197 commit b330fe6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
(PR [#3083](https://github.com/scality/metalk8s/pull/3083))

## Release 2.7.2 (in development)
### Enhancements
- Improve Salt master and cluster upgrade stability in slow environments
(PR [#3125](https://github.com/scality/metalk8s/pull/3125))

### Bug fixes
- Embed `pause` image version 3.2 instead of 3.1 needed for MetalK8s to work
offline (needed by containerd version superior to 1.4.0)
Expand Down
2 changes: 2 additions & 0 deletions salt/metalk8s/salt/master/files/master-99-metalk8s.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ interface: {{ salt_ip }}
log_level: {{ 'debug' if debug else 'info' }}

timeout: 20
sock_pool_size: 15
worker_threads: 10

peer:
.*:
Expand Down
1 change: 1 addition & 0 deletions salt/tests/unit/modules/test_cri.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def test_wait_container(
"""
cmd = utils.cmd_output(retcode=retcode, stdout=stdout)
mock_cmd = MagicMock(return_value=cmd)

with patch.dict(cri.__salt__, {"cmd.run_all": mock_cmd}), patch(
"time.sleep", MagicMock()
):
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ upgrade_local_engines () {
)
for container in "${containers_to_check[@]}"; do
"${SALT_CALL}" --local --retcode-passthrough cri.wait_container \
name="$container" state=running || return 1
name="$container" state=running timeout=120 || return 1
done
}

Expand Down

0 comments on commit b330fe6

Please sign in to comment.