Tâche #36905
Scénario #36867: Mise à jour Salt en version 3007.6
Le redémarrage du service salt-minion sur les postes clients interrompt la communication
Début:
12/06/2025
Echéance:
% réalisé:
100%
Restant à faire (heures):
0.0
Description
Problème¶
Le redémarrage du service salt Minion peut prendre plus d’une minute
juin 12 16:04:07 pc-1517515 systemd[1]: Started run-r5503e7d8b5f141d5bb37746c91f4bfcc.scope - /usr/bin/systemctl restart salt-minion.service.
juin 12 16:04:07 pc-1517515 systemd[1]: Stopping salt-minion.service - The Salt Minion...
juin 12 16:04:10 pc-1517515 salt-minion[10744]: [DEBUG ] Closing _TCPPubServerPublisher instance
juin 12 16:04:10 pc-1517515 salt-minion[10744]: [DEBUG ] Closing AsyncReqChannel instance
juin 12 16:04:10 pc-1517515 salt-minion[10744]: [WARNING ] Minion received a SIGTERM. Exiting.
juin 12 16:04:10 pc-1517515 salt-minion[10744]: [INFO ] Shutting down the Salt Minion
juin 12 16:04:10 pc-1517515 salt-minion[10744]: The Salt Minion is shutdown. Minion received a SIGTERM. Exited.
juin 12 16:04:38 pc-1517515 sudo[11588]: pcadmin : TTY=pts/4 ; PWD=/home/pcadmin ; USER=root ; COMMAND=/usr/bin/journalctl -f
juin 12 16:04:38 pc-1517515 sudo[11588]: pam_unix(sudo:session): session opened for user root(uid=0) by pcadmin(uid=1000)
juin 12 16:05:01 pc-1517515 CRON[11607]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
juin 12 16:05:01 pc-1517515 CRON[11608]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
juin 12 16:05:01 pc-1517515 CRON[11607]: pam_unix(cron:session): session closed for user root
juin 12 16:05:06 pc-1517515 realmd[11517]: quitting realmd service after timeout
juin 12 16:05:06 pc-1517515 realmd[11517]: stopping service
juin 12 16:05:06 pc-1517515 systemd[1]: realmd.service: Deactivated successfully.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: State 'stop-sigterm' timed out. Killing.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Killing process 10737 (python3.10) with signal SIGKILL.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Main process exited, code=killed, status=9/KILL
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Failed with result 'timeout'.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Unit process 10744 (/opt/saltstack/) remains running after unit stopped.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Unit process 10836 (/opt/saltstack/) remains running after unit stopped.
juin 12 16:05:37 pc-1517515 systemd[1]: Stopped salt-minion.service - The Salt Minion.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Consumed 7.515s CPU time, 183.3M memory peak, 0B memory swap peak.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Found left-over process 10744 (/opt/saltstack/) in control group while starting unit. Ignoring.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: Found left-over process 10836 (/opt/saltstack/) in control group while starting unit. Ignoring.
juin 12 16:05:37 pc-1517515 systemd[1]: salt-minion.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
juin 12 16:05:37 pc-1517515 systemd[1]: Starting salt-minion.service - The Salt Minion...
juin 12 16:05:37 pc-1517515 systemd[1]: Started salt-minion.service - The Salt Minion.
juin 12 16:05:37 pc-1517515 salt-minion[10836]: [DEBUG ] stderr: Running as unit: run-r5503e7d8b5f141d5bb37746c91f4bfcc.scope; invocation ID: 4a86ed2fc14a4c7a97c7d8fe0e3fa6a6
juin 12 16:05:37 pc-1517515 salt-minion[10836]: [INFO ] {'salt-minion': True}
juin 12 16:05:37 pc-1517515 salt-minion[10836]: [INFO ] Completed state [salt-minion] at time 16:05:37.997288 (duration_in_ms=91081.768)
juin 12 16:05:37 pc-1517515 salt-minion[10836]: [DEBUG ] File /var/cache/salt/minion/accumulator/126271616925264 does not exist, no need to cleanup
juin 12 16:05:37 pc-1517515 systemd[1]: run-r5503e7d8b5f141d5bb37746c91f4bfcc.scope: Deactivated successfully.
juin 12 16:05:37 pc-1517515 salt-minion[10836]: [DEBUG ] The functions from module 'state' are being loaded by dir() on the loaded module
Proposition¶
Révisions associées
fix(salt-minion): restart of service breaks return of highstate
We need to execute a command in the background with a little delay.
Historique
#1 Mis à jour par Daniel Dehennin il y a 10 mois
- Statut changé de Nouveau à En cours
- Assigné à mis à Daniel Dehennin
#2 Mis à jour par Daniel Dehennin il y a 10 mois
- Statut changé de En cours à Résolu
- % réalisé changé de 0 à 100
Le redémarrage du service se fait avec une tâche en arrière plan et un délais de 5 secondes afin de s’assurer que le client retourne bien son état au serveur.
#3 Mis à jour par Joël Cuissinat il y a 9 mois
eole-workstation-formula$ git branch -r --contains b8d5bdda origin/HEAD -> origin/master origin/dist/eole/2.10.0/master origin/master
#4 Mis à jour par Joël Cuissinat il y a 9 mois
- Statut changé de Résolu à Fermé
- Restant à faire (heures) mis à 0.0