Project

General

Profile

Tâche #19562

Scénario #19274: La création des tables MySQL de Bareos ne devrait pas remonter d'erreur

Appliquer les changements requis au fichier sql de création des bases de données

Added by Benjamin Bohard over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/21/2017
Due date:
% Done:

100%

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

Description

Le fichier est modifié avant utilisation dans la script bareosregen.sh.

Avant correction, les erreurs suivantes apparaissent sur EOLE 2.6.0 et 2.6.1 :

run-parts: executing /usr/share/eole/posttemplate/00-bareos instance

## Régénération du catalogue Bareos##
Start Systemd service mysql                                                                               [  OK  ]
## Réinitialisation des mots de passe Mysql ##
Creating mysql database
mysql: [Warning] Using a password on the command line interface can be insecure.
Creating of bareos database succeeded.
Making mysql tables
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1071 (42000) at line 386: Specified key was too long; max key length is 255 bytes
ERROR 1071 (42000) at line 394: Specified key was too long; max key length is 255 bytes
Creation of Bareos MySQL tables succeeded.


Related issues

Related to eole-bareos - Tâche #17078: Les tables SQL ne sont pas toutes créées Fermé 09/13/2016

Associated revisions

Revision 3b278102 (diff)
Added by Joël Cuissinat over 6 years ago

Correction du code de création des bdd MySQL de Bareos

Ref: #19562

Revision 5beccd29 (diff)
Added by Joël Cuissinat over 6 years ago

Ajout des clés étrangères MySQL pour Bareos

  • bareossql/updates/mysql.keys.sql : fichier de déclaration des clés étrangères
  • eole-bareos.mk : installation du fichier
  • scripts/bareosregen.sh : application des clés

Ref: #19842
Ref: #19562

History

#1 Updated by Benjamin Bohard over 6 years ago

  • Estimated time set to 2.00 h
  • Remaining (hours) set to 2.0

#2 Updated by Scrum Master over 6 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Scrum Master over 6 years ago

  • Assigned To set to Joël Cuissinat

#4 Updated by Joël Cuissinat over 6 years ago

  • Related to Tâche #17078: Les tables SQL ne sont pas toutes créées added

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

Dans /usr/share/eole/sbin/bareosregen.sh, il y a déjà un sed sur le fichier.
Benjamin m'informe au passage que la fin (REFERENCES Client) du dernier remplacement effectué ne sert à rien (voir l'autre demande du scénario : #19564) :

"s/ClientId INT UNSIGNED DEFAULT NULL/ClientId INTEGER DEFAULT 0 REFERENCES Client/g" 

#6 Updated by Joël Cuissinat over 6 years ago

  • Description updated (diff)

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

  • Description updated (diff)

#8 Updated by Joël Cuissinat over 6 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#9 Updated by Joël Cuissinat over 6 years ago

  • Status changed from En cours to Résolu

#10 Updated by Scrum Master over 6 years ago

Vu dans Jenkins :

12:57:25             run-parts: executing /usr/share/eole/posttemplate/00-bareos instance
12:57:28             ## Régénération du catalogue Bareos##
12:57:28             Start Systemd service mysql                                             [  OK  ]
12:57:31             ## Réinitialisation des mots de passe Mysql ##
12:57:31             Creating mysql database
12:57:31             mysql: [Warning] Using a password on the command line interface can be insecure.
12:57:31             Creating of bareos database succeeded.
12:57:31             Making mysql tables
12:57:31             mysql: [Warning] Using a password on the command line interface can be insecure.
12:57:31             Creation of Bareos MySQL tables succeeded.

#11 Updated by Scrum Master over 6 years ago

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

Also available in: Atom PDF