Project

General

Profile

Tâche #21375

Scénario #21246: Tests et qualification (37-39)

Étude des erreurs "Maj-Auto - timed out" visibles dans Jenkins

Added by Joël Cuissinat about 4 years ago. Updated almost 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/15/2017
Due date:
% Done:

100%

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


Related issues

Related to Distribution EOLE - Tâche #21388: Le timeout du client Creole ne devait pas être dépendant du contexte Fermé 09/18/2017

Associated revisions

Revision f21cee06 (diff)
Added by Joël Cuissinat about 4 years ago

Gestion de l'exception restkit.errors.RequestTimeout

Ref: #21375

History

#1 Updated by Joël Cuissinat about 4 years ago

J'ai réussi à obtenir le traceback en lançant la commande en mode debug peut de temps après le démarrage du serveur :

root@ecdl:~# Maj-Auto  -i -S test-eole.ac-dijon.fr -V test-eole.ac-dijon.fr  -D -d
o
Mise à jour le vendredi 15 septembre 2017 11:52:45
Maj-Auto - timed out
Traceback (most recent call last):
  File "/usr/bin/Maj-Auto", line 253, in main
    module = client.get_creole('eole_module')
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 427, in get_creole
    ret = self.get('/creole', *args, variable=name, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 386, in get
    ret = self.request('/get', path, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 313, in request
    ret = self._request(self.url + command + path, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 281, in _request
    self._restkit_request = restkit.request(uri, method=method, backend='eventlet')
  File "/usr/lib/python2.7/dist-packages/restkit/__init__.py", line 100, in request
    headers=headers)
  File "/usr/lib/python2.7/dist-packages/restkit/client.py", line 413, in request
    return self.perform(request)
  File "/usr/lib/python2.7/dist-packages/restkit/client.py", line 353, in perform
    raise RequestTimeout(str(e))
RequestTimeout: timed out

Il est possible de simuler ce problème en ajoutant un "sleep" supérieur à 15 secondes dans la méthode "get" de /usr/lib/python2.7/dist-packages/creole/server.py (vers la ligne 331) + redémarrer creoled.

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

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.5

#3 Updated by Scrum Master about 4 years ago

  • Status changed from En cours to Résolu

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

  • Related to Tâche #21388: Le timeout du client Creole ne devait pas être dépendant du contexte added

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

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

Signalement surchargé par #21388

Also available in: Atom PDF