-
Notifications
You must be signed in to change notification settings - Fork 45
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
Bugfix/fix salt upgrade downgrade #2525
Conversation
In our custom package manager salt module, add a special case to handle Salt downgrade, as `yum` do not handle downgrade dependencies properly you need to provide all dependencies explicitly. Sees: #2523
Until now, we use `module.run` to execute `test.ping` after restarting `salt-minion`. The `module.run` state has `changes` though, unconditionally. As such, when re-running any state including `salt.minion.running` (e.g., all highstates), this causes changes to be reported. Currently, when bringing a cluster to highstate, only these `module.run` 'states' cause any 'changes' to be reported, giving the impression our states are not idempotent. The `test.ping` call is inherently idempotent though... As such, changing the approach slightly and instead of using `module.run`, running `test.ping` from a `__slot__` call whose result is set as the `result` of a `test.configurable_test_state` state, wich `changes` set to `False`. As such, this state will now properly fail when `test.ping` returns `False`, but no `changes` will be reported when this state is applied. (cherry picked from commit b26d64a)
Hello teddyandrieux,My role is to assist you with the merge of this Status report is not available. |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: $ git fetch
$ git checkout -B w/2.6/bugfix/fix-salt-upgrade-downgrade origin/development/2.6
$ git merge origin/w/2.5/bugfix/fix-salt-upgrade-downgrade
$ # <intense conflict resolution>
$ git commit
$ git push -u origin w/2.6/bugfix/fix-salt-upgrade-downgrade |
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:
|
`module.wait` add some `changes` to the output when a `test.sleep` does not do any change, so use a `test.configurable_test_state` with a `slot` instead so that this state never report any changes (which is expected)
a706c41
to
433199f
Compare
History mismatchMerge commit #0c567ff26f05a03d8d904b7ed16e494e2687836e on the integration branch It is likely due to a rebase of the branch Please use the |
/reset |
Reset completeI have successfully deleted this pull request's integration branches. |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: $ git fetch
$ git checkout -B w/2.6/bugfix/fix-salt-upgrade-downgrade origin/development/2.6
$ git merge origin/w/2.5/bugfix/fix-salt-upgrade-downgrade
$ # <intense conflict resolution>
$ git commit
$ git push -u origin w/2.6/bugfix/fix-salt-upgrade-downgrade |
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install salt-minion salt state may also upgrade and downgrade salt-minion package, and this salt version change may have impact on the running salt states, so make this salt states running at the end of the state. Refs: #2524
In `deploy_node` orchestrate during `Reconfigure salt-minion` salt state we may upgrade, downgrade salt-minion package and restart salt-minion service so salt-minion may miss some of the salt-master job query, increase timeout so that minion have time to upgrade, downgrade and restart if needed Fixes: #2524
433199f
to
282e0d9
Compare
History mismatchMerge commit #ae308f70f6eb213dadc5d1d269a7238270db5f41 on the integration branch It is likely due to a rebase of the branch Please use the |
/reset |
Reset completeI have successfully deleted this pull request's integration branches. |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: $ git fetch
$ git checkout -B w/2.6/bugfix/fix-salt-upgrade-downgrade origin/development/2.6
$ git merge origin/w/2.5/bugfix/fix-salt-upgrade-downgrade
$ # <intense conflict resolution>
$ git commit
$ git push -u origin w/2.6/bugfix/fix-salt-upgrade-downgrade |
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:
|
/approve |
Build failedThe build for commit did not succeed in branch w/2.6/bugfix/fix-salt-upgrade-downgrade. The following options are set: approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue None. Goodbye teddyandrieux. |
Component:
'salt', 'lifecycle'
Context:
Various issue for upgrade and downgrade
Summary:
salt-minion
downgradesalt-minion
upgrade and downgrade during orchestrateFixes: #2524