Project

General

Profile

Anomalie #8063

Impossible de templatiser /etc/network/interfaces avec une interface DHCP arrêtée

Added by Daniel Dehennin over 6 years ago. Updated about 6 years ago.

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

100%

Estimated time:
1.00 h
Distribution:
EOLE 2.4

Description

Sur un serveur en DHCP, si l’interface eth0 est en DHCP est est stoppée, alors la templatisation de /etc/network/interfaces échoue :

2014-04-24 17:16:35,728: root - Creole error 3: invalid value for option adresse_broadcast_eth0: invalid broadcast address
Traceback (most recent call last):
  File "/usr/bin/CreoleCat", line 94, in main
    engine = CreoleTemplateEngine()
  File "/usr/lib/python2.7/dist-packages/creole/template.py", line 240, in __init__
    self.load_eole_variables()
  File "/usr/lib/python2.7/dist-packages/creole/template.py", line 248, in load_eole_variables
    values = self.client.get_creole()
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 406, in get_creole
    ret = self.strip_full_path(self.get('/creole', *args, **kwargs))
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 365, in get
    raise err
CreoleClientError: Creole error 3: invalid value for option adresse_broadcast_eth0: invalid broadcast address

Associated revisions

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

valeur par défaut du broadcast et de la route pas correct (fixes #8063)

History

#1 Updated by Emmanuel GARETTE about 6 years ago

  • Due date set to 06/20/2014
  • Assigned To set to Emmanuel GARETTE
  • Target version set to Eole 2.4.0.1

#2 Updated by Emmanuel GARETTE about 6 years ago

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

#3 Updated by Emmanuel GARETTE about 6 years ago

  • Estimated time set to 1.00 h

Attention pour tester il ne faut avoir jamais eu de configuration sur la machine. Il faut donc démarrer le serveur dans une zone sans serveur DHCP.

L'erreur arrive dans l'interface gen_config quand on met "dhcp" à eth0_method.

#4 Updated by Daniel Dehennin about 6 years ago

  • Status changed from Résolu to Fermé

Sur un serveur amon sur un réseau sans serveur DHCP :

root@amon:~# CreoleGet eth0_method
dhcp
root@amon:~# CreoleGet adresse_ip_eth0
169.254.0.1
root@amon:~# CreoleCat -t interfaces
Instanciation du fichier '/etc/network/interfaces' depuis '/var/lib/creole/interfaces'
Copy template: '/usr/share/eole/creole/distrib/interfaces' -> '/var/lib/creole'
Cheetah processing: '/var/lib/creole/interfaces' -> '/etc/network/interfaces'
Changing properties: chown root:root /etc/network/interfaces
Changing properties: chmod 0644 /etc/network/interfaces

Also available in: Atom PDF