Project

General

Profile

Tâche #7182

Distribution EOLE - Scénario #9446: Divers 2.4

Corriger la gestion du proxy dans eole-register

Added by Joël Cuissinat about 7 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/12/2014
Due date:
11/21/2014
% Done:

100%

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

Description

root@scribe:/usr/share/register# /usr/share/register/register.py 
Connexion au serveur matériel via le proxy 192.168.232.3:3128...
Traceback (most recent call last):
  File "/usr/share/register/register.py", line 47, in initialize
    ping = server.ping()
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
    response = h.getresponse(buffering=True)
AttributeError: HTTP instance has no attribute 'getresponse'
Erreur : test sans le proxy...
 -> Ping du serveur réussi
----Aucun changement matériel détecté
----Mise à jour des informations de connexion...

Related issues

Related to eole-register - Evolution #7103: Paquet eole-register non packagé sur 2.4 Fermé 01/24/2014
Related to python-pyeole - Evolution #5482: Remplacement de pyeole.httprequest Classée sans suite
Related to eole-register - Bac à idée #9600: eole-register : timeout fréquent Classée sans suite 11/13/2014

Associated revisions

Revision 685e9433 (diff)
Added by Emmanuel GARETTE over 6 years ago

utilisatin de HTTPConnection au lieu de HTTP (fixes #7182 @1h)

History

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

  • Target version changed from Eole 2.4-RC2 to Eole 2.4-RC3

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

  • Target version deleted (Eole 2.4-RC3)

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

  • Parent task set to #9446

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

  • Estimated time changed from 1.00 h to 1.50 h
  • Remaining (hours) set to 1.5

#5 Updated by Daniel Dehennin over 6 years ago

  • Subject changed from Le code qui gère le proxy ne fonctionne plus sur 2.4 to Corriger la gestion du proxy dans eole-register
  • Description updated (diff)

#6 Updated by Emmanuel GARETTE over 6 years ago

  • Status changed from Nouveau to En cours
  • Start date set to 11/12/2014

#7 Updated by Emmanuel GARETTE over 6 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#8 Updated by Emmanuel GARETTE over 6 years ago

  • Due date set to 11/21/2014
  • Assigned To changed from Bruno Boiget to Emmanuel GARETTE
  • Remaining (hours) changed from 1.5 to 0.0

Le trafic passe bien par le proxy :

12:25:03.902915 IP 192.168.0.101.52553 > 192.168.232.3.3128: Flags [S], seq 3419062751, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
12:25:03.904098 IP 192.168.232.3.3128 > 192.168.0.101.52553: Flags [S.], seq 1829188364, ack 3419062752, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 5], length 0

Et l'enregistrement fonctionne bien :

root@amonecole:/usr/share/register# /usr/share/register/register.py
Connexion au serveur matériel via le proxy 192.168.232.3:3128...
 -> Ping du serveur réussi
----Aucun changement matériel détecté
----Mise à jour des informations de connexion...
root@amonecole:/usr/share/register# 

Sauf quand ca fini en timeout :

Traceback (most recent call last):
  File "/usr/share/register/register.py", line 170, in <module>
    initialize()
  File "/usr/share/register/register.py", line 40, in initialize
    proxy = eoleproxy.get_proxy()
  File "/usr/share/register/eoleproxy.py", line 23, in get_proxy
    if client.get_creole('activer_proxy_client') == 'oui':
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 452, in get_creole
    ret = self.get('/creole', *args, variable=name, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 411, in get
    ret = self.request('/get', path, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 337, in request
    ret = self._request(self.url + command + path, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 321, in _request
    raise TimeoutCreoleClientError(msg.format(err))
creole.client.TimeoutCreoleClientError

#9 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Résolu to Fermé

Correction OK, nouvelle demande pour le timeout => #9600

http://eole.ac-dijon.fr/materiel/ vous permet de consulter une base des matériels compatibles
Pour enrichir cette base, acceptez-vous l'envoi de la description matérielle de ce serveur ? [oui/non]
[oui] : 
Connexion au serveur matériel via le proxy proxy.eole.lan:3128...
 -> Ping du serveur réussi
----Nouvelle installation détectée
----Opération terminée avec succès

Also available in: Atom PDF