Project

General

Profile

Tâche #14708

Distribution EOLE - Scénario #14666: Traitement express (04-06)

Corriger les valeurs retournées par l'agent Zéphir Bareos

Added by Fabrice Barconnière over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/08/2013
Due date:
% Done:

100%

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

Description

Exemple avec Bareos non configuré

EAD_Diode_Unknown.png View (76.1 KB) Fabrice Barconnière, 01/20/2016 03:54 PM


Related issues

Duplicated by zephir-client - Anomalie #8382: la diode "Unknown" n'existe pas Fermé
Copied to zephir-client - Proposition Scénario #14920: Amélioration cosmétique à apporter sur l'agent Zéphir Bareos À formaliser 01/08/2013

Associated revisions

Revision 6b134289 (diff)
Added by Bruno Boiget over 7 years ago

Ajout d'une diode grise pour utilisation avec status_to_img

ref #14708 @30m

History

#2 Updated by Emmanuel GARETTE over 7 years ago

  • Parent task changed from #14473 to #14532

#3 Updated by Scrum Master over 7 years ago

  • Parent task changed from #14532 to #14473

#4 Updated by Bruno Boiget over 7 years ago

J'ai regardé rapidement le code, le problème se situe au niveau de l'agent (pas spécifique à l'EAD)

Le choix de la diode se fait via la 'fonction de rendu' status_to_img :

        self.table = TableData([
            ('status', 'Statut', {'align':'center'}, status_to_img),
            ('type', 'Type de sauvegarde', {'align':'center'}, None),
            ('comment', 'Dernière sauvegarde', {'align':'center'}, None)])
        self.tabledisk = TableData([
            ('status', 'Statut', {'align':'center'}, status_to_img),
            ('type', 'Type', {'align':'center'}, None),
            ('comment', 'Mesure', {'align':'center'}, None)])

Dans le retour de la mesure, l'état de l'agent est stocké dans l'entrée qui correspond à la diode dans le tableau. En fait la fonction status_to_img s'attend à avoir 'On' ou 'Off' dans les données. L'état (Unknown, Error, ...) est à stocker dans self.status, mais pas au niveau du tableau

        resdisk = [{'status': status_pc,
            'type': 'espace utilisé sur le support',
            'comment': dpcent}]
...
        resdisk.append({'status': status_pci,
            'type': 'inodes utilisés sur le support',
            'comment': dpcent})

--> Choisir le bon cas (on/off' suivant l'état)

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

  • Project changed from Distribution EOLE to zephir-client
  • Subject changed from Agent Zéphir : le status Unknown ne renvoie pas de diode dans l'EAD. to Corriger les valeurs retournées par l'agent Zéphir Bareos
  • Estimated time changed from 1.00 h to 2.00 h
  • Parent task changed from #14473 to #14666
  • Remaining (hours) changed from 1.0 to 2.0

@Antislash: c'est gentil de faire l'étude mais tu aurais pu enchaîner sur la correction !

#6 Updated by Scrum Master over 7 years ago

  • Status changed from Nouveau to En cours

#7 Updated by Scrum Master over 7 years ago

  • Assigned To set to Bruno Boiget

#8 Updated by Bruno Boiget over 7 years ago

j'ai juste regardé vite fait un jeudi soir et ajouté des infos au cas où quelqu'un prendrait la tâche

#9 Updated by Scrum Master over 7 years ago

  • Status changed from En cours to Résolu

#10 Updated by Joël Cuissinat over 7 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.0

J'ai bien les diodes grises avec zephir-client 2.5.2-17

J'ouvre tout de même un petit signalement pour la mocheté des deux tableaux collés !

Also available in: Atom PDF