Projet

Général

Profil

Tâche #19850

Scénario #19810: Traitement express MEN (13-15)

Faire fonctionner le script schedule 'purgecache' en mode conteneur

Ajouté par Lionel Morin il y a environ 7 ans. Mis à jour il y a environ 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
27/03/2017
Echéance:
% réalisé:

100%

Temps estimé:
2.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

Problèmes rencontrés sur amonecole en testant les schedules :

Le script de purge lance un find sur le maître au lieu du conteneur proxy (/usr/share/eole/schedule/daily/post/purgecache) --> sortie en erreur sans exécuter les autres actions.

Autre problème : la sortie d'erreur n'est pas redirigée dans le fichier /var/log/schedule.log (voir /etc/cron.d/schedule).
Par contre, on les retrouve dans /var/log/rsyslog/local/eole-schedule/eole-schedule.log.

/usr/share/eole/schedule/schedule cron
Démarrage de pre schedule daily
/usr/share/eole/schedule/daily/pre/annuaire:
Stop Systemd service slapd in bdd                                       [  OK  ]
Start Systemd service slapd in bdd                                      [  OK  ]
eole-schedule - /usr/share/eole/schedule/daily/pre/fichier:
eole-schedule - Can't fetch domain SID for name: SCRIBE
pre schedule daily accompli
Démarrage de post schedule daily
/usr/share/eole/schedule/daily/post/majblacklist:
.  Test de http://eole.orion.education.fr/maj/blacklists => Ok
Téléchargement des bases
Intégration des bases
Copie du fichier weighted
Restart Systemd service eole-guardian in internet                       [  OK  ]
eole-schedule - /usr/share/eole/schedule/daily/post/purgecache:
eole-schedule - find: «/var/spool/guardian1»: Aucun fichier ou dossier de ce type
eole-schedule - run-parts: /usr/share/eole/schedule/daily/post/purgecache exited with return code 1
/usr/share/eole/schedule/daily/post/majblacklist:
.  Test de http://eole.orion.education.fr/maj/blacklists => Ok
Téléchargement des bases
Intégration des bases
Copie du fichier weighted
Restart Systemd service eole-guardian in internet                       [  OK  ]
/usr/share/eole/schedule/daily/post/purgecache:
find: «/var/spool/guardian1»: Aucun fichier ou dossier de ce type
run-parts: /usr/share/eole/schedule/daily/post/purgecache exited with return code 1
Une erreur a été détectée
eole-schedule - Sortie de post schedule daily avec un code d'erreur

Révisions associées

Révision 16ce4ffa (diff)
Ajouté par Joël Cuissinat il y a environ 7 ans

Script schedule 'purgecache' : adaptation pour mode conteneur

Ref: #19850

Historique

#1 Mis à jour par Lionel Morin il y a environ 7 ans

  • Description mis à jour (diff)
  • Temps estimé mis à 2.00 h
  • Restant à faire (heures) mis à 2.0

#2 Mis à jour par Lionel Morin il y a environ 7 ans

  • Description mis à jour (diff)

#3 Mis à jour par Joël Cuissinat il y a environ 7 ans

  • Sujet changé de Faire marcher le script schedule 'purgecache' en mode conteneur à Faire fonctionner le script schedule 'purgecache' en mode conteneur

#4 Mis à jour par Joël Cuissinat il y a environ 7 ans

  • Statut changé de Nouveau à En cours

#5 Mis à jour par Joël Cuissinat il y a environ 7 ans

  • Assigné à mis à Joël Cuissinat

#6 Mis à jour par Joël Cuissinat il y a environ 7 ans

  • Projet changé de Distribution EOLE à eole-proxy
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 2.0 à 0.5

Concernant les logs, je n'en sais rien. Il faudrait ouvrir une nouvelle demande plus précise si le problème est avéré :o

#7 Mis à jour par Scrum Master il y a environ 7 ans

  • Projet changé de eole-proxy à Distribution EOLE
  • Statut changé de En cours à Résolu

#8 Mis à jour par Fabrice Barconnière il y a environ 7 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.5 à 0.0
root@amonecole:~# touch -t 04101000 /var/lib/lxc/internet/rootfs/var/spool/guardian1/fichier_pas_vieux 
root@amonecole:~# touch -t 04081000 /var/lib/lxc/internet/rootfs/var/spool/guardian1/fichier_vieux 
root@amonecole:~# ll /var/lib/lxc/internet/rootfs/var/spool/guardian1/
total 8
drwxr-xr-x 2 proxy proxy 4096 avril 10 15:01 ./
drwxr-xr-x 7 root  root  4096 avril  7 23:44 ../
-rw-r--r-- 1 root  root     0 avril 10 10:00 fichier_pas_vieux
-rw-r--r-- 1 root  root     0 avril  8 10:00 fichier_vieux
root@amonecole:~# /usr/share/eole/schedule/scripts/purgecache
root@amonecole:~# ll /var/lib/lxc/internet/rootfs/var/spool/guardian1/
total 8
drwxr-xr-x 2 proxy proxy 4096 avril 10 15:06 ./
drwxr-xr-x 7 root  root  4096 avril  7 23:44 ../
-rw-r--r-- 1 root  root     0 avril 10 10:00 fichier_pas_vieux

#9 Mis à jour par Laurent Flori il y a environ 7 ans

  • Statut changé de Fermé à Résolu

#10 Mis à jour par Laurent Flori il y a environ 7 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF