Projet

Général

Profil

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é

Ajouté par Bruno Boiget il y a environ 8 ans. Mis à jour il y a environ 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
05/01/2016
Echéance:
% réalisé:

100%

Temps estimé:
2.00 h
Temps passé:
Restant à faire (heures):
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':

Demandes liées

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

Révisions associées

Révision 6e65639e (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision b34f3df3 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision a07dd8f4 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 3707a370 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 031fe802 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 4f7a49ce (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision bcc79667 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 872ff009 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision ee34684e (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision b65aedf8 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 65d32d87 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision ef8f65e4 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 1e415bd4 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 087a8586 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 96a85cde (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 3be9f57d (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision c6b740b8 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 3c06f17a (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision e3af1921 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision f6efc1fa (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision adf24ef7 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

support du nom machine sur scribe (ref #14547)

Révision 37eca706 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

support du nom machine sur scribe (ref #14547)

Révision 0801f051 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

support du nom machine sur scribe (ref #14547)

Révision 835d557c (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision b49cf339 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

dansguardian_eth peut etre None (ref #14547)

Révision 46f9c773 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

ajout de activer_postgresql (ref #14547)

Révision e1bae8f9 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 32cbf3b1 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

ajout de activer_postgresql (ref #14547)

Révision 93204cdd (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

erreur d'import pour EOLE_MODULE (ref #14547)

Révision d5baf4b2 (diff)
Ajouté par Fabrice Barconnière il y a environ 8 ans

Support nom_machine sur Sphynx

ref #14547 @15m

Révision f3290ef5 (diff)
Ajouté par Fabrice Barconnière il y a environ 8 ans

Typo dans config.py

ref #14547 @15m

Révision 185abe43 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 516edb35 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 71cb046a (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 4eafb42b (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision c16dd2a9 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Révision 59a31304 (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

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

Historique

#1 Mis à jour par Bruno Boiget il y a environ 8 ans

  • Description mis à jour (diff)

#2 Mis à jour par Bruno Boiget il y a environ 8 ans

  • Sujet changé de Corriger le comportement des services EAD si Creoled est arrêté à Corriger le comportement des services EAD et z_stats si Creoled est arrêté
  • Description mis à jour (diff)

#3 Mis à jour par Bruno Boiget il y a environ 8 ans

  • Description mis à jour (diff)
  • Temps estimé changé de 1.00 h à 2.00 h
  • Restant à faire (heures) changé de 1.0 à 2.0

#4 Mis à jour par Emmanuel GARETTE il y a environ 8 ans

  • Sujet changé de Corriger le comportement des services EAD et z_stats si Creoled est arrêté à Corriger le comportement du service z_stats si Creoled est arrêté
  • Description mis à jour (diff)

#5 Mis à jour par Emmanuel GARETTE il y a environ 8 ans

  • Statut changé de Nouveau à En cours

#6 Mis à jour par Emmanuel GARETTE il y a environ 8 ans

  • Assigné à mis à Emmanuel GARETTE

#7 Mis à jour par Emmanuel GARETTE il y a environ 8 ans

  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 2.0 à 0.25

#8 Mis à jour par Scrum Master il y a environ 8 ans

  • Statut changé de En cours à Résolu

#9 Mis à jour par Fabrice Barconnière il y a environ 8 ans

  • Statut changé de Résolu à En cours
  • % réalisé changé de 100 à 80
  • Restant à faire (heures) changé de 0.25 à 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 Mis à jour par Fabrice Barconnière il y a environ 8 ans

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 Mis à jour par Fabrice Barconnière il y a environ 8 ans

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 Mis à jour par Fabrice Barconnière il y a environ 8 ans

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 Mis à jour par Fabrice Barconnière il y a environ 8 ans

  • % réalisé changé de 80 à 90
  • Restant à faire (heures) changé de 1.0 à 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 Mis à jour par Fabrice Barconnière il y a environ 8 ans

  • % réalisé changé de 90 à 100

OK, z_stats se lance sur tous les modules.

#15 Mis à jour par Fabrice Barconnière il y a environ 8 ans

  • Statut changé de En cours à Résolu

#16 Mis à jour par Fabrice Barconnière il y a environ 8 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.25 à 0.0

Formats disponibles : Atom PDF