Project

General

Profile

Tâche #19819

Scénario #21077: Traitement express MEN (34-36)

Calcul de la gateway en mode DHCP non fonctionnel sur 2.5.2

Added by Emmanuel GARETTE over 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/22/2017
Due date:
% Done:

100%

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

Description

Le calcul de l'adresse IP de la gateway n'est pas fonctionnel :

root@amonecole:~# CreoleGet eth0_method
dhcp
root@amonecole:~# ip route list scope global
default via 192.168.20.254 dev eth0 
root@amonecole:~# CreoleGet adresse_ip_gw

root@amonecole:~# diagnose
[..]
.               Accès distant => Désactivé
[..]

Related issues

Related to Distribution EOLE - Tâche #19334: En mode DHCP, l'accès distant n'est pas testé dans diagnose Fermé 02/23/2017

Associated revisions

Revision d0a69c76 (diff)
Added by Emmanuel GARETTE about 6 years ago

correction de la fonction de récupération de la route par défaut (ref #19819)

Revision 77088a98 (diff)
Added by Emmanuel GARETTE about 6 years ago

le diagnose doit utiliser exclusivement la variable adresse_ip_gw (ref #19819)

Revision d51c5440 (diff)
Added by Joël Cuissinat about 6 years ago

correction de la fonction de récupération de la route par défaut (suppr 'eth0')

(ref #19819)

Revision 8e3a7d8f (diff)
Added by Joël Cuissinat about 6 years ago

Utilisation de la variable "nom_zone" si calcul de la gateway impossible

Ref: #19819

Revision ae898901 (diff)
Added by Joël Cuissinat about 6 years ago

test_gw : hack for eSBL & eCDL

Ref: #19819

History

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

Je l'avais constaté en 2.6.1 lors d'une campagne de test mais seul le test diagnose a été corrigé sur cette version : #19334

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

  • Related to Tâche #19334: En mode DHCP, l'accès distant n'est pas testé dans diagnose added

#3 Updated by Emmanuel GARETTE about 6 years ago

  • Tracker changed from Demande to Tâche
  • Estimated time set to 3.00 h
  • Parent task set to #21077
  • Remaining (hours) set to 3.0

#4 Updated by Emmanuel GARETTE about 6 years ago

  • Status changed from Nouveau to En cours
  • % Done changed from 0 to 100

#5 Updated by Emmanuel GARETTE about 6 years ago

  • Remaining (hours) changed from 3.0 to 0.25

#6 Updated by Scrum Master about 6 years ago

  • Status changed from En cours to Résolu

#7 Updated by Scrum Master about 6 years ago

  • Assigned To set to Emmanuel GARETTE

#8 Updated by Joël Cuissinat about 6 years ago

  • Status changed from Résolu to En cours

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

Les tests unitaires signalent un dysfonctionnement sur tous les modules !

root@amon:~# py.test /usr/share/creole/tests/test_eosfunc.py 
=============================================================================================== test session starts ================================================================================================
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: /usr/share/creole/tests, inifile: 
collected 6 items 

../usr/share/creole/tests/test_eosfunc.py .....F

===================================================================================================== FAILURES =====================================================================================================
_____________________________________________________________________________________________________ test_gw ______________________________________________________________________________________________________

    def test_gw():
        client = CreoleClient()
        assert eosfunc.auto_defaultroute()[0][0] == client.get('creole.interface_0.adresse_ip_gw')
>       assert eosfunc.auto_defaultroute()[0][1] == 'eth0'
E       assert 'ens4' == 'eth0'
E         - ens4
E         + eth0

/usr/share/creole/tests/test_eosfunc.py:81: AssertionError

#10 Updated by Scrum Master about 6 years ago

  • Status changed from En cours to Résolu

#11 Updated by Daniel Dehennin about 6 years ago

  • Remaining (hours) changed from 0.25 to 0.0

#12 Updated by Daniel Dehennin about 6 years ago

  • Status changed from Résolu to Fermé
root@amon:~# ip route list scope global
default via 192.168.0.1 dev ens4 
root@amon:~# CreoleGet adresse_ip_gw
192.168.0.1
root@amon:~# py.test /usr/share/creole/tests/test_eosfunc.py 
====================================== test session starts =======================================
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: /usr/share/creole/tests, inifile: 
collected 6 items 

../usr/share/creole/tests/test_eosfunc.py ......

==================================== 6 passed in 0.20 seconds ====================================

Also available in: Atom PDF