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
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
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