Project

General

Profile

Tâche #32580

Scénario #32151: Le calcul du "estimate_output" pour Bareos est susceptible de prendre plusieurs minutes

génération fichier estimation depuis bareos

Added by Matthieu Lamalle over 2 years ago. Updated about 2 years ago.

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

100%

Remaining (hours):
0.0

Associated revisions

Revision 12c41a87 (diff)
Added by Matthieu Lamalle over 2 years ago

ajout d'un cron pour calculer la taille estimé de la sauvegarde ref #32151

History

#1 Updated by Matthieu Lamalle over 2 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Matthieu Lamalle over 2 years ago

  • Status changed from En cours to Résolu

#3 Updated by Emmanuel GARETTE over 2 years ago

  • Assigned To set to Matthieu Lamalle
  • % Done changed from 0 to 100

#4 Updated by Emmanuel GARETTE over 2 years ago

  • Status changed from Résolu to En cours

#5 Updated by Emmanuel GARETTE over 2 years ago

Le fichier n'est pas créé chez moi.

Si je lance à la main :

root@amonecole:~# /usr/share/eole/sbin/bareosfreespaceleft.py
/usr/share/eole/sbin/bareosfreespaceleft.py: ligne 3: import : commande introuvable
from: can't read /var/mail/pyeole.process
from: can't read /var/mail/pickle
/usr/share/eole/sbin/bareosfreespaceleft.py: ligne 7: BCONSOLE_CONF : commande introuvable
/usr/share/eole/sbin/bareosfreespaceleft.py: ligne 8: BAREOS_RAPPORT_FSL : commande introuvable
/usr/share/eole/sbin/bareosfreespaceleft.py: ligne 10: erreur de syntaxe près du symbole inattendu « ( »
/usr/share/eole/sbin/bareosfreespaceleft.py: ligne 10: `def sizeof_fmt(num, suffix='B'):'

Si je lance avec python, ca m'écrase le fichier /etc/bareos/bconsole.conf au lieu de me créer le fichier /var/lib/eole/reports/resultat-bareos-freespace .

#6 Updated by Emmanuel GARETTE over 2 years ago

  • % Done changed from 100 to 50

#7 Updated by Matthieu Lamalle over 2 years ago

  • Status changed from En cours to Résolu

#8 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 50 to 100
  • Remaining (hours) set to 0.0
eole-bareos$ git branch -r --contains 12c41a87
  origin/2.7.2/master
  origin/2.8.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.2/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/master

root@scribe:~# cat /etc/cron.d/eole-bareos 
00 01,13 * * *   root    /usr/share/eole/sbin/bareosfreespaceleft.py &>/dev/null

root@scribe:~# file /usr/share/eole/sbin/bareosfreespaceleft.py 
/usr/share/eole/sbin/bareosfreespaceleft.py: Python script, ASCII text executable

Also available in: Atom PDF