Project

General

Profile

Tâche #14547

Scénario #14546: Corriger le comportement de certains services en cas d'arrêt de creoled

Corriger le comportement du service z_stats si Creoled est arrêté

Added by Bruno Boiget over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/05/2016
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

Le service z_stats n'a pas un comportement satisfaisant si Creoled est inaccessible :

  • le service ne se lance pas
  • pas de message affiché pour indiquer la source du problème
  • le script d'init renvoie 0 (et [OK])

Pour z_stats, l'erreur se produit à première vue lors du chargement des agents / actions :

root@amon:/usr/share/zephir/monitor# grep -r get_creole *
actions/eole/rvp.actions:        modele_era =  conf_eole.get_creole('type_amon')
actions/eole/rvp.actions:        crls =  conf_eole.get_creole('url_crl')
actions/eole/dans1.actions:    if CreoleClient().get_creole('use_e2guardian') == 'oui':
actions/eole/dans2.actions:    if CreoleClient().get_creole('use_e2guardian') == 'oui':
configs/web.agent:if dico.get_creole('adresse_ip_gw') != '':
configs/rvp.agent:install_rvp = CreoleClient().get_creole('install_rvp')
configs/rvp.agent:module = CreoleClient().get_creole('eole_module')
configs/sauvegarde.agent:if dico.get_creole('activer_bacula_dir') == 'oui':
configs/dansguardian.agent:if dico.get_creole('activer_filtrage_proxy', 'non') == 'oui':
configs/sso.agent:if dico.get_creole('activer_sso') == 'local':
configs/sso.agent:              dico.get_creole('eolesso_port','8443'),
configs/bacula.agent:machine = client.get_creole('nom_machine')
configs/bacula.agent:if client.get_creole('activer_bacula_dir') == 'oui':
configs/bacula.agent:if client.get_creole('activer_bacula_sd') == 'oui':
configs/services.agent:DICO = CreoleClient().get_creole()
configs/freshclam.agent:if dico.get_creole('activer_clam') == 'oui':
configs/bastion.agent:if dico.get_creole('activer_firewall') == 'oui':

Related issues

Related to Distribution EOLE - Proposition Scénario #16704: BUG: l’agent Zéphir dansguardian fait des appels cachés à creoled Classée sans suite 07/05/2016

Associated revisions

Revision 6e65639e (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547 @1h)

Revision b34f3df3 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision a07dd8f4 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 3707a370 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 031fe802 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 4f7a49ce (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision bcc79667 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 872ff009 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision ee34684e (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision b65aedf8 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 65d32d87 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision ef8f65e4 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 1e415bd4 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 087a8586 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 96a85cde (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 3be9f57d (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision c6b740b8 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 3c06f17a (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision e3af1921 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision f6efc1fa (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision adf24ef7 (diff)
Added by Emmanuel GARETTE over 4 years ago

support du nom machine sur scribe (ref #14547)

Revision 37eca706 (diff)
Added by Emmanuel GARETTE over 4 years ago

support du nom machine sur scribe (ref #14547)

Revision 0801f051 (diff)
Added by Emmanuel GARETTE over 4 years ago

support du nom machine sur scribe (ref #14547)

Revision 835d557c (diff)
Added by Emmanuel GARETTE over 4 years ago

problème avec zstats.cfg sur scribe (ref #14547 @1h)

Revision b49cf339 (diff)
Added by Emmanuel GARETTE over 4 years ago

dansguardian_eth peut etre None (ref #14547)

Revision 46f9c773 (diff)
Added by Emmanuel GARETTE over 4 years ago

ajout de activer_postgresql (ref #14547)

Revision e1bae8f9 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 32cbf3b1 (diff)
Added by Emmanuel GARETTE over 4 years ago

ajout de activer_postgresql (ref #14547)

Revision 93204cdd (diff)
Added by Emmanuel GARETTE over 4 years ago

erreur d'import pour EOLE_MODULE (ref #14547)

Revision d5baf4b2 (diff)
Added by Fabrice Barconnière over 4 years ago

Support nom_machine sur Sphynx

ref #14547 @15m

Revision f3290ef5 (diff)
Added by Fabrice Barconnière over 4 years ago

Typo dans config.py

ref #14547 @15m

Revision 185abe43 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 516edb35 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 71cb046a (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 4eafb42b (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision c16dd2a9 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

Revision 59a31304 (diff)
Added by Emmanuel GARETTE over 4 years ago

pouvoir démarrer z_stats sans creoled (ref #14547)

History

#1 Updated by Bruno Boiget over 4 years ago

  • Description updated (diff)

#2 Updated by Bruno Boiget over 4 years ago

  • Subject changed from Corriger le comportement des services EAD si Creoled est arrêté to Corriger le comportement des services EAD et z_stats si Creoled est arrêté
  • Description updated (diff)

#3 Updated by Bruno Boiget over 4 years ago

  • Description updated (diff)
  • Estimated time changed from 1.00 h to 2.00 h
  • Remaining (hours) changed from 1.0 to 2.0

#4 Updated by Emmanuel GARETTE over 4 years ago

  • Subject changed from Corriger le comportement des services EAD et z_stats si Creoled est arrêté to Corriger le comportement du service z_stats si Creoled est arrêté
  • Description updated (diff)

#5 Updated by Emmanuel GARETTE over 4 years ago

  • Status changed from Nouveau to En cours

#6 Updated by Emmanuel GARETTE over 4 years ago

  • Assigned To set to Emmanuel GARETTE

#7 Updated by Emmanuel GARETTE over 4 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#8 Updated by Scrum Master over 4 years ago

  • Status changed from En cours to Résolu

#9 Updated by Fabrice Barconnière over 4 years ago

  • Status changed from Résolu to En cours
  • % Done changed from 100 to 80
  • Remaining (hours) changed from 0.25 to 1.0

Erreur à l'instance sur serveur Sphynx : Erreur: Utilisation d'une variable non existante dans le template de /var/lib/eole/config/zstats.cfg : nom_machine_eth1

#10 Updated by Fabrice Barconnière over 4 years ago

sur Zéphir, le backend ne se lance pas (l'EAD non plus) :

  File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/config.py", line 132, in <module>
    DANSGUARDIAN_ETH = cfg.get('proxy', 'dansguardian_eth').split()
AttributeError: 'NoneType' object has no attribute 'split'

#11 Updated by Fabrice Barconnière over 4 years ago

Toujours au lancement de zephir-backend :

   execfile(f_serv, globals(), {'DICO':DICO, 'AGENTS':AGENTS})
  File "/usr/share/zephir/monitor/configs/services/20_postgresql.srv", line 8, in <module>
    if DICO.get('activer_postgresql', 'non') == 'oui':
AttributeError: 'NoneType' object has no attribute 'get'

#12 Updated by Fabrice Barconnière over 4 years ago

Traceback à l'enregistrement Zéphir :

 Entrez le numéro de votre choix : 3

  -- sauvegarde en cours (veuillez patienter) -- 
Traceback (most recent call last):
  File "/usr/share/zephir/scripts/save_files.zephir", line 25, in <module>
    from monitor.agentmanager.config import EOLE_MODULE
ImportError: No module named monitor.agentmanager.config

Erreur lors de la remontée de la configuration locale sur Zephir
voir le fichier /var/log/zephir/last_action.log (actions.log si il est vide)

#13 Updated by Fabrice Barconnière over 4 years ago

  • % Done changed from 80 to 90
  • Remaining (hours) changed from 1.0 to 0.25

Pour moi, c'est OK su Thot, Seshat, Amon, Sphynx, et Scribe. Il ne démarre pas sur Horus :

    execfile(f_serv, globals(), {'DICO':DICO, 'AGENTS':AGENTS})
  File "/usr/share/zephir/monitor/configs/services/30_horus_frontend.srv", line 8, in <module>
    if DICO['horus_frontend'] == 'oui':
TypeError: 'NoneType' object has no attribute '__getitem__'

Sur Amon, l'affichage pose problème (cf #15005).

#14 Updated by Fabrice Barconnière over 4 years ago

  • % Done changed from 90 to 100

OK, z_stats se lance sur tous les modules.

#15 Updated by Fabrice Barconnière over 4 years ago

  • Status changed from En cours to Résolu

#16 Updated by Fabrice Barconnière over 4 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Also available in: Atom PDF