Project

General

Profile

Tâche #14170

Distribution EOLE - Scénario #14084: Assistance aux utilisateurs (49-51)

Corriger le Traceback antivirus dans diagnose

Added by Gilles Grandgérard almost 6 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
12/01/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

En cas de disfonctionnement du conteneur 'réseau', le test diagnose antivirus crée un traceback.
Il faut l'intercepter et afficher une message 'Erreur' ou 'Impossible à déterminer'

Voir : [[http://jenkins2.eole.lan/job/test-importation-amonecole-2.5.1-amd64/50/console]]

 *** Conteneurs
            .                     partage => Ok
            .                         bdd => Ok
            .                      reseau => Erreur
            .                    internet => Ok

            *** Mise à jour
            .        Dernière mise à jour => OK (Serveur déjà à jour (état le 01 Dec 2015 05:30:39))
            .        Reconfigure effectué => OK
            .           Reboot nécessaire => Non

            Traceback (most recent call last):
            MONITOR: traceback action:$ERREUR time:Tue Dec  1 06:18:56 2015
            File "/usr/share/eole/diagnose/151-antivirus", line 26, in <module>
            ret = test_clamd()
            File "/usr/lib/python2.7/dist-packages/pyeole/diagnose/diagnose.py", line 255, in test_clamd
            code = system_code(['/usr/bin/clamd-eole', '-p'], container=container)
            File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 275, in system_code
            return creole_system_code(cmd, stdin, container, context, env, pty)
            File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 294, in creole_system_code
            return _service(cmd, stdin, container, context, env, pty, None, None)[0]
            File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 185, in _service
            cmd = _gen_container_cmd(cmd, container, context, env, pty)
            File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 142, in _gen_container_cmd
            container['name']))
            Exception: Conteneur mail inaccessible
            run-parts: /usr/share/eole/diagnose/151-antivirus exited with return code 1
            *** DNS local

Associated revisions

Revision 9fe84fb7 (diff)
Added by Joël Cuissinat almost 6 years ago

Remplacement traceback antivirus par erreur dans diagnose

  • pyeole/diagnose/diagnose.py : traitement de l'exception à l'exécution de `system_code`

Ref: #14170 @45m

History

#1 Updated by Gilles Grandgérard almost 6 years ago

  • Subject changed from Corriger le Traceback to Corriger le Traceback antivirus dans diagnose

#2 Updated by Joël Cuissinat almost 6 years ago

  • Assigned To set to Joël Cuissinat

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

  • Project changed from Distribution EOLE to eole-antivirus

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

  • Tracker changed from Demande to Tâche
  • Project changed from eole-antivirus to python-pyeole
  • Estimated time set to 2.00 h
  • Parent task set to #14084
  • Remaining (hours) set to 2.0

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

  • Status changed from Nouveau to En cours

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

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.5

#7 Updated by Lionel Morin almost 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Also available in: Atom PDF