Tâche #23287
Scénario #23161: Traitement express MEN (11-13)
Mail quotidien de Zephir
Remaining (hours):
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
Related issues
Associated revisions
History
#1 Updated by Emmanuel GARETTE about 3 years ago
- Description updated (diff)
#2 Updated by Joël Cuissinat about 3 years ago
- Status changed from Nouveau to En cours
#3 Updated by Joël Cuissinat about 3 years ago
- Assigned To set to Joël Cuissinat
#4 Updated by Joël Cuissinat about 3 years ago
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 Updated by Joël Cuissinat about 3 years ago
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 Updated by Joël Cuissinat about 3 years ago
- Related to Anomalie #3262: Erreur de parsing lorsque des fichiers sont manquants added
#7 Updated by Joël Cuissinat about 3 years ago
- Related to Tâche #21685: Gérer une seconde liste de fichiers à ignorer dans le résultat debsums added
#8 Updated by Joël Cuissinat about 3 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 3.0 to 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 Updated by Scrum Master about 3 years ago
- Status changed from En cours to Résolu
#10 Updated by Fabrice Barconnière about 3 years ago
- Remaining (hours) changed from 0.5 to 0.0
#11 Updated by Scrum Master about 3 years ago
- Status changed from Résolu to Fermé