-
Notifications
You must be signed in to change notification settings - Fork 44
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
salt: Do not restart salt-minion
process in background
#3059
salt: Do not restart salt-minion
process in background
#3059
Conversation
Time to time when restarting the salt-minion process, restart take a bit of time (more than 10s) so we have 2 salt command trying to start the salt-minion process at the same time and sometime it happens that at the end the salt-minion is not running at all `An instance is already running`. Because the `salt-call --local service.restart salt-minion` first try to restart the salt-minion process and then `service.running` seems to happen when salt-minion process is actually not yet restarted. To fix do not call the `service.restart` command in background so that we wait for this to finish before running the `service.running` state. NOTE: That this `bg: True` is not needed here since anyway in this SLS we wait for the salt-minion process to restart
Hello teddyandrieux,My role is to assist you with the merge of this Status report is not available. |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
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: |
4e9d64e
to
0c3ae0f
Compare
History mismatchMerge commit #4e9d64e8e14f85ac6055a1d5c1a28e347c847a4b 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. |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
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.8/bugfix/salt-upgrade-may-fail-to-restart-minion-process. 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'
Context:
It happen time to time, especially during upgrade when reconfiguring the salt-minion process on a node, the salt-minion do not restart properly so we end the upgrade with a salt-minion process stopped
With in log
An instance already running
Summary:
Time to time when restarting the salt-minion process, restart take a bit
of time (more than 10s) so we have 2 salt command trying to start the
salt-minion process at the same time and sometime it happens that at the
end the salt-minion is not running at all
An instance is already running
.Because the
salt-call --local service.restart salt-minion
first try torestart the salt-minion process and then
service.running
seems tohappen when salt-minion process is actually not yet restarted.
To fix do not call the
service.restart
command in background so thatwe wait for this to finish before running the
service.running
state.NOTE: That this
bg: True
is not needed here since anyway in this SLSwe wait for the salt-minion process to restart