Project

General

Profile

Anomalie #3308

[gen_conteneurs] fichiers hosts moisis avant l’instance

Added by Daniel Dehennin almost 11 years ago. Updated almost 11 years ago.

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

100%

Estimated time:
0.75 h
Spent time:
Distribution:
EOLE 2.3

Description

Sur un amonecole:

root@amonecole:~# for file in /opt/lxc/*/rootfs/etc/hosts; do echo $file && cat $file; done
/opt/lxc/bdd/rootfs/etc/hosts
192.0.2.50  bdd.monreseau.lan bdd
127.0.0.1             localhost.localdomain localhost
/opt/lxc/internet/rootfs/etc/hosts
# applications web locales

192.0.2.53  internet.monreseau.lan internet
  internet.monreseau.lan internet
127.0.0.1             localhost.localdomain localhost
/opt/lxc/partage/rootfs/etc/hosts
192.0.2.52  partage.monreseau.lan partage
  partage.monreseau.lan partage
127.0.0.1             localhost.localdomain localhost
/opt/lxc/reseau/rootfs/etc/hosts
192.0.2.51  reseau.monreseau.lan reseau
127.0.0.1             localhost.localdomain localhost

Related issues

Related to eole-proxy - Anomalie #3294: Message d'erreur à la fin du gen_conteneur sur AmonEcole 2.3.4-RC Fermé 04/13/2012

Associated revisions

Revision 3af92441 (diff)
Added by Emmanuel GARETTE almost 11 years ago

Déplacement de la génération du fichier hosts des conteneurs dans la méthode lxc_postinstance vers write_config (fixes #3308)

Revision 7cd0aa1e (diff)
Added by Thierry Bugier over 5 years ago

escape single quote in HTML option of a dropdown

fix #3308

History

#1 Updated by Joël Cuissinat almost 11 years ago

  • Status changed from Nouveau to Accepté
  • Assigned To set to Joël Cuissinat
  • Target version set to Mises à jour 2.3.5 RC
  • Estimated time set to 0.75 h

Ces fichiers ne devraient pas être générés dans gen_conteneurs mais plus tard !

#2 Updated by Emmanuel GARETTE almost 11 years ago

  • Project changed from eole-common to creole

#3 Updated by Emmanuel GARETTE almost 11 years ago

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

#4 Updated by Emmanuel GARETTE almost 11 years ago

Pour compléter, on a rien à faire si le serveur n'est pas correctement configurer AVANT l'instance. Surtout que les conteneurs ne sont même pas démarrés.

La question est de savoir si le serveur est correct APRÈS l'instance. Ce qui a toujours était le cas.

La génération du fichier hosts n'étant juste pas forcement au bonne endroit, d'où le bug #3294.

#5 Updated by Joël Cuissinat almost 11 years ago

  • Status changed from Résolu to Fermé

Etat après gen_conteneur sur Eclair-2.3 :

root@eclair:~# for file in /opt/lxc/*/rootfs/etc/hosts; do echo $file && grep -Ev "ip6|v6"  $file; done
/opt/lxc/ltspapps/rootfs/etc/hosts
127.0.0.1       localhost
127.0.1.1       eclair.eole.lan eclair

/opt/lxc/ltspserver/rootfs/etc/hosts
127.0.0.1       localhost
127.0.1.1       eclair.eole.lan eclair

Also available in: Atom PDF