Project

General

Profile

Tâche #19850

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

Faire fonctionner le script schedule 'purgecache' en mode conteneur

Added by Lionel Morin over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/27/2017
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
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

Associated revisions

Revision 16ce4ffa (diff)
Added by Joël Cuissinat over 6 years ago

Script schedule 'purgecache' : adaptation pour mode conteneur

Ref: #19850

History

#1 Updated by Lionel Morin over 6 years ago

  • Description updated (diff)
  • Estimated time set to 2.00 h
  • Remaining (hours) set to 2.0

#2 Updated by Lionel Morin over 6 years ago

  • Description updated (diff)

#3 Updated by Joël Cuissinat over 6 years ago

  • Subject changed from Faire marcher le script schedule 'purgecache' en mode conteneur to Faire fonctionner le script schedule 'purgecache' en mode conteneur

#4 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Nouveau to En cours

#5 Updated by Joël Cuissinat over 6 years ago

  • Assigned To set to Joël Cuissinat

#6 Updated by Joël Cuissinat over 6 years ago

  • Project changed from Distribution EOLE to eole-proxy
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 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 Updated by Scrum Master over 6 years ago

  • Project changed from eole-proxy to Distribution EOLE
  • Status changed from En cours to Résolu

#8 Updated by Fabrice Barconnière over 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 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 Updated by Laurent Flori over 6 years ago

  • Status changed from Fermé to Résolu

#10 Updated by Laurent Flori over 6 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF