Project

General

Profile

Evolution #3184

Le service bastion devrait gérer creole_serv

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

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

100%

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

Description

  • bastion restart sans creole_serv (cas actuel au reconfigure) : 6 parse_dico (20-22 secondes)
  • bastion restart avec creole_serv (objet de cette demande) : 2 parse_dico (13-14 secondes)
Si ça se trouve, on pourrait tomber à zéro, je vois deux pistes de recherche :
  1. il y a des appels directs sans utiliser le client (comme dans #3182)
  2. bastion s'est lui-même coupé l'accès au port creole_serv (4333) !

Related issues

Related to zephir-client - Anomalie #3130: 5286 parsedico dans une journée ca fait ... beaucoup Fermé 12/01/2011
Related to ead - Evolution #3182: Appel direct à parse_dico au démarrage de l'EAD Pas un bug 03/28/2012
Related to eole-common - Evolution #3258: Redémarrage de bastion en cas de déconnexion/reconnexion en pppoe Fermé 04/10/2012
Related to eole-common - Anomalie #3326: bastion est lancé 2 fois Fermé 04/17/2012

Associated revisions

Revision 670a338a (diff)
Added by Joël Cuissinat over 11 years ago

Gestion de creole_serv par bastion
  • bastion/bastion : arrêt/(re)démarrage de creole_serv
  • dicos/00_common.xml : suppression du <service> creole_serv
    Fixes #3184 @45m

Revision 46c8cb8c (diff)
Added by Joël Cuissinat over 11 years ago

  • debian/eole-common.preinst : désactivation de creole_serv géré par bastion
    Ref #3184 @10m

Revision 860d2d51
Added by Joël Cuissinat over 11 years ago

Merge branch 'master' into dist/ubuntu/lucid/master (ref #3184)

Revision 8a7d2ed5 (diff)
Added by Johan Cwiklinski almost 6 years ago

Use replace rather than insert to prevent duplicate issues; fixes #3184

Revision bf19a27a (diff)
Added by Johan Cwiklinski almost 6 years ago

Use replace rather than insert to prevent duplicate issues; refs #3184

History

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

Après enquête, ce sont les appels à CreoleCat qui engendrent les "parse_dico" :

root@amonecole:/usr/share/era# grep creolecat * -r
bastion.sh:    /usr/share/creole/creolecat.py -o ${REGLES_CSV} -i /etc/eole/config.eol ${EOLE_DIR}/regles.tmpl
bastion.sh:/usr/share/creole/creolecat.py  -o /sbin/lance.firewall -i /etc/eole/config.eol ${EOLE_DIR}/firewall.tmpl
bastion.sh:/usr/share/creole/creolecat.py  -o $tmp_xml -i /etc/eole/config.eol /usr/share/era/modeles/"$type_amon".xml

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

  • Status changed from En attente d'informations to Accepté
  • Assigned To set to Joël Cuissinat
  1. supprimer la ligne <service>creole_serv</service> du dictionnaire 00_common.xml
  2. modifier le script d'init bastion comme suit :
diff --git a/bastion/bastion b/bastion/bastion
index 8eff952..0a1a9de 100755
--- a/bastion/bastion
+++ b/bastion/bastion
@@ -49,6 +49,7 @@ KILLP2P='/etc/init.d/killp2p'
 INITAGR='/etc/init.d/agregation'
 CONFAGR='/etc/agregation.conf'
 LOCKAGR='/var/lock/agregation'
+CREOLE_SERV='/etc/init.d/creole_serv'

 [ "$TERM" = "dumb" ] && export TERM="eole" 

@@ -76,6 +77,7 @@ test_iptables(){
 }

 start() {
+    $CREOLE_SERV start
     [ ! -d $LOCKRVPDIR ] && mkdir -p $LOCKRVPDIR
     MSG="Starting firewall: bastion" 
     logit $MSG
@@ -152,6 +154,7 @@ stopother() {
             $INITRVP stop
         fi
     fi
+    $CREOLE_SERV stop
     logit2 "Stopping firewall: bastion" 
     log_end_msg 0
 }

#3 Updated by Lionel Caylat over 11 years ago

D'après les tests menés aujourd'hui sur un amonecole en pppoe, il faudrait modifier le patch pour que creole_serv redémarre au lieu de simplement le démarrer.
Comme ça :

@diff --git a/bastion/bastion b/bastion/bastion
index 8eff952..0a1a9de 100755
--- a/bastion/bastion
+++ b/bastion/bastion
@@ -49,6 +49,7 @@ KILLP2P='/etc/init.d/killp2p'
 INITAGR='/etc/init.d/agregation'
 CONFAGR='/etc/agregation.conf'
 LOCKAGR='/var/lock/agregation'
+CREOLE_SERV='/etc/init.d/creole_serv'

 [ "$TERM" = "dumb" ] && export TERM="eole" 

@@ -76,6 +77,7 @@ test_iptables(){
 }

 start() {
+    $CREOLE_SERV restart
     [ ! -d $LOCKRVPDIR ] && mkdir -p $LOCKRVPDIR
     MSG="Starting firewall: bastion" 
     logit $MSG
@@ -152,6 +154,7 @@ stopother() {
             $INITRVP stop
         fi
     fi
+    $CREOLE_SERV stop
     logit2 "Stopping firewall: bastion" 
     log_end_msg 0
 }@

Mais ce patch ne correspond plus au fichier bastion tel qu'il est en candidate à l'heure actuelle.

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

Merci d'arrêter de pourrir ma demande !
Pour le PPPOE => #3258 :)

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

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

#6 Updated by Bruno Boiget over 11 years ago

  • Status changed from Résolu to Fermé

ok en 2.3.5 RC, bastion redémarre bien creole_serv

Also available in: Atom PDF