Project

General

Profile

Tâche #29295

Scénario #29123: ScribeAD : erreurs lors de la restauration des quotas

Corriger le système de marquage de fichier pour éviter le lancement du job de restauration deux fois de suite

Added by Benjamin Bohard 10 months ago. Updated 10 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/14/2019
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

La restauration du conteneur addc nécessite en tâche "pre" de récupérer un dossier et un fichier. On lance deux commandes bareos_* de la bibliothèque pyeole/bareos.py, déclenchant ainsi deux fois le job de restauration.

Associated revisions

Revision cf5e58e3 (diff)
Added by Benjamin Bohard 10 months ago

Allow marking several files in one operation

Ref #29295

Revision 476ee1fa (diff)
Added by Benjamin Bohard 10 months ago

Allow marking several files in one operation.

Ref #29295

Revision a1342ac1 (diff)
Added by Benjamin Bohard 10 months ago

Fixes wrong function name.

Ref #29295

History

#1 Updated by Benjamin Bohard 10 months ago

  • Status changed from Nouveau to En cours

#2 Updated by Benjamin Bohard 10 months ago

  • Status changed from En cours to Résolu

#3 Updated by Joël Cuissinat 10 months ago

  • % Done changed from 0 to 100

Effectivement sur les anciennes exécutions on voit que le job addc est exécuté deux fois :

$ grep -E 'Job:    |JobId:' AVANT.log
              JobId:                  4
              Job:                    Restore_addc.2019-11-20_10.07.59_06
              JobId:                  5
              Job:                    Restore_addc.2019-11-20_10.08.00_08
              JobId:                  6
              Job:                    Restore_jabber.2019-11-20_10.08.00_10
              JobId:                  7
              Job:                    Restore_ldap.2019-11-20_10.08.00_12
              JobId:                  8
              Job:                    Restore_mysql.2019-11-20_10.08.00_14
              JobId:                  9
              Job:                    Restore_quota.2019-11-20_10.08.00_16
              JobId:                  10
              Job:                    Restore_all_files.2019-11-20_10.08.01_18
$ grep -E 'Job:    |JobId:' APRES.log 
              JobId:                  4
              Job:                    Restore_jabber.2019-11-26_10.01.23_05
              JobId:                  5
              Job:                    Restore_ldap.2019-11-26_10.01.23_07
              JobId:                  6
              Job:                    Restore_addc.2019-11-26_10.01.23_09
              JobId:                  7
              Job:                    Restore_mysql.2019-11-26_10.01.24_11
              JobId:                  8
              Job:                    Restore_quota.2019-11-26_10.01.24_13
              JobId:                  9
              Job:                    Restore_all_files.2019-11-26_10.01.24_15

#4 Updated by Joël Cuissinat 10 months ago

jojo@jojo-MS-B09611:~/git/eole-ad-dc (master=)$ git branch -r --contains cf5e58e3  
  origin/2.7.1/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.1/master
  origin/dist/eole/2.7.2/master
  origin/master
jojo@jojo-MS-B09611:~/git/python-pyeole (master=)$ git branch -r --contains a1342ac1 
  origin/2.7.1/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.1/master
  origin/dist/eole/2.7.2/master
  origin/master

#5 Updated by Joël Cuissinat 10 months ago

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

Also available in: Atom PDF