Projet

Général

Profil

Evolution #7700

Erreur CreoleLint sur la validation de la passerelle en mode DHCP

Ajouté par Joël Cuissinat il y a environ 10 ans. Mis à jour il y a environ 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Début:
Echéance:
04/04/2014
% réalisé:

100%

Temps estimé:
1.00 h
Temps passé:
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)",)),))

Demandes liées

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

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 10 ans

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

#2 Mis à jour par Joël Cuissinat il y a environ 10 ans

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 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Statut changé de A étudier à Accepté

#4 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Echéance mis à 04/04/2014
  • Statut changé de Accepté à Résolu
  • Assigné à mis à Emmanuel GARETTE
  • % réalisé changé de 0 à 100

Résolu par les demandes liées :)

#5 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Statut changé de Résolu à À valider
  • % réalisé changé de 100 à 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 Mis à jour par Joël Cuissinat il y a environ 10 ans

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 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Statut changé de À valider à Fermé
  • % réalisé changé de 80 à 100

OK avec les paquets : creole 2.4.0-300

Formats disponibles : Atom PDF