Project

General

Profile

Scénario #2473

Les logs de logiciel doivent être clairs

Added by Daniel Dehennin almost 12 years ago. Updated over 7 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
Version mineure
Start date:
10/15/2015
Due date:
02/12/2016
% Done:

100%

Estimated time:
(Total: 16.00 h)
Spent time:
(Total: 9.00 h)
Story points:
2.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Les logs de nos principaux outils (EAD, Zéphir, ...) sont remplis par des lignes indiquant les appels xml-rpc.
Ces lignes sont peu utiles et masquent les vrais logs !

2011/02/24 16:59:52 CET [HTTPChannel,29,127.0.0.1] 127.0.0.1 - - [24/Feb/2011:15:59:51 +0000] "POST /RPC2 HTTP/1.0" 200 750 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)" 
2011/02/24 16:59:52 CET [HTTPChannel,30,127.0.0.1] 127.0.0.1 - - [24/Feb/2011:15:59:51 +0000] "POST /RPC2 HTTP/1.0" 200 13314 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)" 
2011/02/24 16:59:53 CET [HTTPChannel,31,127.0.0.1] 127.0.0.1 - - [24/Feb/2011:15:59:52 +0000] "POST /RPC2 HTTP/1.0" 200 1629 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)" 
2011/02/24 16:59:53 CET [HTTPChannel,32,127.0.0.1] 127.0.0.1 - - [24/Feb/2011:15:59:53 +0000] "POST /RPC2 HTTP/1.0" 200 2245 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)" 

La solution mise en place dans #1454 modifie un fichier au lieu de mettre en place un filtre dans /etc/rsyslog.d/, par exemple, afin de faire un discard:

if $msg contains 'POST /RPC2 HTTP/1.0' then ~

Subtasks

controle-vnc - Tâche #14820: Il faut un mode debug logguer les appels xml-rpc dans controle-vncFerméGwenael Remond

ead - Tâche #14884: Il faut un mode debug logguer les appels xml-rpc dans l'eadFerméGwenael Remond

Tâche #13606: Ne plus logger les appels XMLRPC dans les logs twistedFerméGwenael Remond

Tâche #13605: Créer l'exigence dans SquashFerméLionel Morin

Associated revisions

Revision 3ae5a3f2 (diff)
Added by moyooo almost 13 years ago

see #2473: FAQ anonyme problem

Revision a55c60b6 (diff)
Added by moyooo almost 13 years ago

see #2473 FAQ anonyme problem

Revision 9df667bd (diff)
Added by moyooo almost 13 years ago

see #2473 FAQ anonyme problem

Revision 180ff83d (diff)
Added by Alexandre Delaunay about 6 years ago

don't preselect user as tech for self-service interface; fix #2473 (#2484)

Revision fe753613 (diff)
Added by Alexandre Delaunay about 6 years ago

don't preselect user as tech for self-service interface; fix #2473 (#2484)

History

#1 Updated by Joël Cuissinat almost 11 years ago

  • Target version changed from 76 to Eole 2.4-dev-3
  • Distribution changed from Toutes to EOLE 2.4

Ne sera pas fait sur 2.3

#2 Updated by Joël Cuissinat about 10 years ago

  • Target version deleted (Eole 2.4-dev-3)

#3 Updated by Emmanuel GARETTE almost 8 years ago

  • Tracker changed from Anomalie to Proposition Scénario
  • Subject changed from Configurer (ou hacker) twisted pour enlever les lignes de log inutiles to Les logs de logiciel doivent être clair

La solution mise en place dans #1454 n'est plus valable. Le fichier est maintenant dans /usr/lib/python2.7/dist-packages/twisted/web/http.py.

Les logs sont a nouveau présent :

root@amonecole:/usr/share/eole# grep -R RPC2 /var/log/
/var/log/ead/ead-server.log:2015/10/15 15:18:00  [HTTPChannel (TLSMemoryBIOProtocol),131,127.0.0.1] 127.0.0.1 - - [15/Oct/2015:13:18:00 +0000] "POST /RPC2 HTTP/1.1" 200 126 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)" 
/var/log/ead/ead-server.log:2015/10/15 15:18:04  [HTTPChannel (TLSMemoryBIOProtocol),132,127.0.0.1] 127.0.0.1 - - [15/Oct/2015:13:18:03 +0000] "POST /RPC2 HTTP/1.1" 200 126 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)" 

L'exisgence à satisfaire : "Les journaux d'activités des outils EOLE doivent être clairs.

#4 Updated by Daniel Dehennin almost 8 years ago

  • Subject changed from Les logs de logiciel doivent être clair to Les logs de logiciel doivent être clairs

#5 Updated by Scrum Master almost 8 years ago

  • Tracker changed from Proposition Scénario to Scénario
  • Category set to Version mineure
  • Start date deleted (10/15/2015)
  • Release set to EOLE 2.5.2
  • Story points set to 2.0
  • Distribution set to EOLE 2.3

#6 Updated by Luc Bourdot over 7 years ago

  • Due date set to 02/12/2016
  • Target version set to sprint 2016 04-06 - Equipe MENESR
  • Start date set to 01/25/2016

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

  • Assigned To set to force verte

#8 Updated by Daniel Dehennin over 7 years ago

À noter qu’en 2.5, le ~ est à remplacer par stop.

#9 Updated by Daniel Dehennin over 7 years ago

  • Project changed from eole-common to Distribution EOLE
  • Category changed from Version mineure to Version mineure

#10 Updated by Daniel Dehennin over 7 years ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF