Project

General

Profile

Tâche #26043

Scénario #23811: EOLE 2.7.0 : Gérer l'upgrade vers 2.7

Mettre en place les conversions des variables Bareos pour la migration 2.6.2 vers 2.7

Added by Benjamin Bohard over 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/08/2018
Due date:
% Done:

100%

Remaining (hours):
0.0

Related issues

Related to Distribution EOLE - Scénario #25866: Les sauvegardes Bareos doivent être fonctionnelles Terminé (Sprint) 10/08/2018 12/07/2018
Related to Distribution EOLE - Tâche #29134: Log d'erreur évitable à la migration d'une configuration Creole sans Bareos Fermé 10/15/2019

Associated revisions

Revision 99c343b5 (diff)
Added by Benjamin Bohard about 2 years ago

Migrate bareos variable used in amon etb1 configuration.

Ref #26043

History

#1 Updated by Benjamin Bohard over 2 years ago

  • Status changed from Nouveau to En cours

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

  • Status changed from En cours to Nouveau
  • Parent task changed from #25866 to #23811

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

  • Related to Scénario #25866: Les sauvegardes Bareos doivent être fonctionnelles added

#4 Updated by Benjamin Bohard about 2 years ago

diff --cc creole/upgrade24.py
index 98c5bbb8,98c5bbb8..3cce5d5d
--- a/creole/upgrade24.py
+++ b/creole/upgrade24.py
@@@ -760,6 -760,6 +760,24 @@@ class Upgrade_2_7_0(Upgrade)
              if altnames != new_altnames:
                  self.set_value('ssl_subjectaltname', new_altnames)

++        # Migration des variables Bareos
++        ## Migration du directeur
++        bareos_sd_local = self.get_value('bareos_sd_local')
++        self.set_value('bareos_dir_use_local_sd', bareos_sd_local)
++        if bareos_sd_local == 'non':
++            self.move('bareos_sd_adresse', 'bareos_dir_remote_sd_address')
++            self.move('bareos_sd_password', 'bareos_dir_remote_sd_password')
++            self.set_value('bareos_dir_remote_sd_name', '-'.join([self.get_value('nom_machine'), 'sd']))
++        ## Migration du stockage
++        remote_dir_names = self.get('bareos_sd_remote_dir_name')
++        if remote_dir_names:
++            self.set_value('bareos_sd_set_remote_dirs', 'oui')
++            self.move('bareos_sd_remote_ip', 'bareos_sd_remote_dir_ip')
++            self.move('bareos_sd_remote_password', 'bareos_sd_remote_dir_password')
++        else:
++            self.set_value('bareos_sd_set_remote_dirs', 'non')
++        ## Migration du client - rien

#5 Updated by Scrum Master about 2 years ago

  • Status changed from Nouveau to En cours

#6 Updated by Benjamin Bohard about 2 years ago

  • Status changed from En cours to Résolu

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

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

#8 Updated by Joël Cuissinat over 1 year ago

  • Related to Tâche #29134: Log d'erreur évitable à la migration d'une configuration Creole sans Bareos added

Also available in: Atom PDF