Tâche #23287
Scénario #23161: Traitement express MEN (11-13)
Mail quotidien de Zephir
Restant à faire (heures):
0.0
Description
Chaque jour on recoit un mail de eole-debsums sur Zéphir :
run-parts: /etc/cron.daily/eole-debsums exited with return code 1
Et je confirme :
root@zephir:~# /etc/cron.daily/eole-debsums root@zephir:~# echo $? 1
Le fichier /var/log/eole-debsums/eole.ignored est mal interprété :
root@zephir:~# /usr/share/eole/debsums/eole-debsums.sh List modified files… Filter files listed by /etc/eole/debsums-ignore.d/eole.conf… eole-debsums: /usr/share/eole/debsums/eole-debsums.sh dpkg-query: aucun chemin ne correspond à *debsums:* dpkg-query: aucun chemin ne correspond à *(from* dpkg-query: aucun chemin ne correspond à *package)*
Le contenu du fichier :
/usr/share/zephir/monitor/static/img/rouge.gif /usr/share/zephir/monitor/static/img/vert.gif debsums: missing file /usr/share/zephir/web/images/readme.txt (from zephir-web package) /usr/share/zephir/utils/conf_db
Demandes liées
Révisions associées
Historique
#1 Mis à jour par Emmanuel GARETTE il y a environ 6 ans
- Description mis à jour (diff)
#2 Mis à jour par Joël Cuissinat il y a environ 6 ans
- Statut changé de Nouveau à En cours
#3 Mis à jour par Joël Cuissinat il y a environ 6 ans
- Assigné à mis à Joël Cuissinat
#4 Mis à jour par Joël Cuissinat il y a environ 6 ans
La commande renvoie une sortie complètement différente si l'un des fichier a été supprimé :
root@zephir:~# /usr/bin/debsums -c /usr/share/eole/debsums/eole-debsums.sh /usr/share/zephir/monitor/static/img/rouge.gif /usr/share/zephir/monitor/static/img/vert.gif /usr/share/zephir/utils/conf_db debsums: missing file /usr/share/zephir/web/images/readme.txt (from zephir-web package)
Il faut préciser que l'erreur arrive uniquement si le fichier supprimé est présent dans les exceptions (EOLE ou personnalisées) !
On peut reproduire le problème sur un autre module avec (exemple) :
rm -f /usr/share/eole/creole/dicos/local/XX_dico_exemple.xml.sample echo /usr/share/eole/creole/dicos/local/XX_dico_exemple.xml.sample > /etc/eole/debsums-ignore.d/exemple.conf
#5 Mis à jour par Joël Cuissinat il y a environ 6 ans
Le problème n'est pas présent en 2.6.1, il a été introduit par les évolutions ajoutées dans #21685
root@zephir:~# cat /etc/eole/release EOLE_MODULE=zephir EOLE_VERSION=2.6 EOLE_RELEASE=2.6.1 root@zephir:~# ls /usr/share/zephir/web/images/readme.txt ls: impossible d'accéder à '/usr/share/zephir/web/images/readme.txt': Aucun fichier ou dossier de ce type root@zephir:~# /usr/share/eole/debsums/eole-debsums.sh root@zephir:~# echo $? 0
#6 Mis à jour par Joël Cuissinat il y a environ 6 ans
- Lié à Anomalie #3262: Erreur de parsing lorsque des fichiers sont manquants ajouté
#7 Mis à jour par Joël Cuissinat il y a environ 6 ans
- Lié à Tâche #21685: Gérer une seconde liste de fichiers à ignorer dans le résultat debsums ajouté
#8 Mis à jour par Joël Cuissinat il y a environ 6 ans
- % réalisé changé de 0 à 100
- Restant à faire (heures) changé de 3.0 à 0.5
Ajout du cas "exception sur un fichier supprimé" dans le test squash : http://squash-tm.eole.lan/squash/test-cases/4355/info
#9 Mis à jour par Scrum Master il y a environ 6 ans
- Statut changé de En cours à Résolu
#10 Mis à jour par Fabrice Barconnière il y a environ 6 ans
- Restant à faire (heures) changé de 0.5 à 0.0
#11 Mis à jour par Scrum Master il y a environ 6 ans
- Statut changé de Résolu à Fermé