Project

General

Profile

Evolution #7700

Erreur CreoleLint sur la validation de la passerelle en mode DHCP

Added by Joël Cuissinat over 9 years ago. Updated over 9 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
04/04/2014
% Done:

100%

Estimated time:
1.00 h
Spent time:
Distribution:
EOLE 2.4

Description

root@amon:~# CreoleLint -t agregation.conf 

Template Non valide (valid_parse_tmpl:ERROR:error)
 \-- /usr/share/eole/creole/distrib/agregation.conf
('/usr/share/eole/creole/distrib/agregation.conf', ':', Exception(('/usr/share/eole/creole/distrib/agregation.conf', ':', 
ValueError("valeur invalide pour l'option adresse_netmask_eth0 : IP invalide 192.168.230.254 (adresse_ip_gw) pas dans le 
r\xc3\xa9seau 169.254.0.0 (adresse_network_eth0) avec le masque 255.255.0.0 (adresse_netmask_eth0)",)),))

Related issues

Related to eole-common - Anomalie #7436: mauvaise validation passerelle Fermé 03/21/2014
Related to eole-common - Anomalie #7435: mauvaise validation adresse IP, on peut saisir 0.0.0.0 pour eth0 Fermé 03/21/2014
Related to creole - Anomalie #7839: creolelint : plantage sur la validation si mandatory Fermé 04/04/2014

History

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

Je propose de modifier le test ajouté pour #7436 en WARNING

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

Dans le même goût :

root@amon:~# CreoleLint
...
 \-- /usr/share/eole/creole/distrib/nginx.default
 \-- /usr/share/eole/creole/distrib/hosts
 \-- /usr/share/eole/creole/distrib/ip_xfrm_policy
('/usr/share/eole/creole/distrib/ip_xfrm_policy', ':', Exception(('/usr/share/eole/creole/distrib/ip_xfrm_policy', ':', 
PropertiesOptionError("tentative d'acc\xc3\xa8s \xc3\xa0 une option nomm\xc3\xa9e : adresse_ip_eth0 avec les propri\xc3
\xa9t\xc3\xa9s ['mandatory']",)),))

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

  • Status changed from A étudier to Accepté

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

  • Due date set to 04/04/2014
  • Status changed from Accepté to Résolu
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100

Résolu par les demandes liées :)

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

  • Status changed from Résolu to À valider
  • % Done changed from 100 to 80

CreoleLint -t ip_xfrm_policy est désormais fonctionel (avec des warnigs) mais CreoleLint -t agregation.conf ne passe plus (paquets creole : 2.4.0-295) :

root@amon:~# CreoleLint -t agregation.conf 

Template Non valide (valid_parse_tmpl:ERROR:error)
 \-- /usr/share/eole/creole/distrib/agregation.conf
IPOption:0: ValueWarning: avertissement sur la valeur de l'option adresse_ip_gw : IP 192.168.230.254 (adresse_ip_gw)
 pas dans le réseau 169.254.0.0 (adresse_network_eth0) avec le masque 255.255.0.0 (adresse_netmask_eth0)
NetmaskOption:0: ValueWarning: avertissement sur la valeur de l'option adresse_netmask_eth0 : IP 192.168.230.254
 (adresse_ip_gw) pas dans le réseau 169.254.0.0 (adresse_network_eth0) avec le masque 255.255.0.0 (adresse_netmask_eth0)
[...]
('/usr/share/eole/creole/distrib/agregation.conf', ':', Exception(('/usr/share/eole/creole/distrib/agregation.conf',
 ':', PropertiesOptionError("tentative d'acc\xc3\xa8s \xc3\xa0 une option nomm\xc3\xa9e : adresse_ip_eth0 avec les 
propri\xc3\xa9t\xc3\xa9s ['mandatory']",)),))

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

Dans un autre style, sur Horus, un CreoleLint intégrale se termine sur :

 \-- /usr/share/eole/creole/distrib/dhcpd.conf
('/usr/share/eole/creole/distrib/dhcpd.conf', ':', PropertiesOptionError("trying to access to an option named: adresse_ip_eth0 with properties ['mandatory']",))

Mais CreoleLint -t dhcpd.conf tout seul ne soulève pas d'erreur :o

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

  • Status changed from À valider to Fermé
  • % Done changed from 80 to 100

OK avec les paquets : creole 2.4.0-300

Also available in: Atom PDF