Tâche #15944
Scénario #16073: Étudier les blocages liés aux scripts systemd
'Attente MYSQL de 10 minutes' lors du shutdown d'un module 2.6.0
Description
voir le snapshot
Related issues
Associated revisions
Correction du fichier d'init de bastion
ref: #15944 @20min
Ajout d'une condition de lancement sur /etc/eole/config.eol
Afin d'éviter les problèmes avec le lancement du service mysql avant
l'instance on ajoute une condition sur le service mysql.
On indique a systemd de ne pas lancer le service si le fichier de
configuration /etc/eole/config.eol n'existe pas.
ref #15944 @1h
Ajout d'un condition de lancement sur /etc/eole/config.eol
Si le fichier /etc/eole/config.eol n'existe pas on dit a systemd
de ne pas lancer le service.
ref #15944 @10m
History
#1 Updated by Gilles Grandgérard over 7 years ago
- File arret_mysql_horus_260.png View added
#2 Updated by Scrum Master over 7 years ago
- Status changed from Nouveau to En cours
#3 Updated by Laurent Flori over 7 years ago
- Assigned To set to Laurent Flori
- Remaining (hours) changed from 4.0 to 0.0
- Remaining (hours) changed from 0.0 to 0.5
#4 Updated by Laurent Flori over 7 years ago
Il est possible de changer le timeout
sed -i 's/^TimeoutSec=600/TimeoutSec=60/' /lib/systemd/system/mysql.service
#5 Updated by Joël Cuissinat over 7 years ago
- Status changed from En cours to Nouveau
- Assigned To deleted (
Laurent Flori) - Parent task changed from #15853 to #16073
- Remaining (hours) changed from 0.5 to 4.0
#6 Updated by Philippe Caseiro over 7 years ago
- Assigned To set to Philippe Caseiro
#7 Updated by Philippe Caseiro over 7 years ago
Je n'arrive pas a reproduire avec nos dernières images.
#8 Updated by Scrum Master over 7 years ago
- Status changed from Nouveau to En cours
#9 Updated by Philippe Caseiro over 7 years ago
- % Done changed from 0 to 60
J'ai enfin réussi a reproduire, uniquement sur des modules "Non instanciés".
Pour moi ce n'est pas un problème "Eole" d'ailleurs nous n'y pouvons rien car aucune configuration n'a été appliquée encore.
Nous pouvons éventuellement surcharger le .service mysql avec un timeout plus court et une dépendance sur le config.eol ou le instance.log.
#10 Updated by Philippe Caseiro over 7 years ago
- Remaining (hours) changed from 4.0 to 0.1
#11 Updated by Scrum Master over 7 years ago
- Status changed from En cours to Résolu
#12 Updated by Lionel Morin over 7 years ago
- Remaining (hours) changed from 0.1 to 4.0
#13 Updated by Lionel Morin over 7 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 4.0 to 0.0
#14 Updated by Joël Cuissinat over 7 years ago
- Status changed from Fermé to En cours
- Remaining (hours) changed from 0.0 to 1.0
OK pour la modification sauf qu'en mode conteneur le fichier /etc/systemd/system/mysql.service.d/eole.conf
sera sur le maître !
root@horus:~# service mysql status ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/mysql.service.d └─eole.conf Active: inactive (dead) Condition: start condition failed at jeu. 2016-05-19 16:36:41 CEST; 2s ago ConditionPathExists=/etc/eole/config.eol was not met
hum ma remarque est à creuser, car y'aura jamais de fichier /etc/eole/config.eol dans le conteneur :o
#15 Updated by Scrum Master over 7 years ago
- Status changed from En cours to Fermé
- Remaining (hours) changed from 1.0 to 0.0