Tâche #31166
Mis à jour par Joël Cuissinat il y a plus de 3 ans
https://dev-eole.ac-dijon.fr/jenkins/job/2.8.1/job/test-sauvegarde-bareos-restaure-full-2.8.1-amd64/3/parsed_console/ https://dev-eole.ac-dijon.fr/jenkins/job/2.8.1/job/test-sauvegarde-bareos-restaure-full-2.8.1-amd64/4/parsed_console/
<pre>
******* RESTAURATION DU CATALOGUE ***********
Start Systemd service mysql [ OK ]
Stop Systemd service mysql [ OK ]
## Régénération du catalogue Bareos##
Stop Systemd service bareos-director [ OK ]
Stop Systemd service bareos-storage [ OK ]
Dropping mysql database
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Drop of bareos database failed.
Creating mysql database
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Creating of bareos database failed.
Making mysql tables
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Creation of Bareos MySQL tables failed.
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Start Systemd service mysql [ OK ]
Mise à jour de la base de donnée Bareos...
Updating mysql tables
mysql: [Warning] Using a password on the command line interface can be insecure.
Finished upgrading database to version 2004
Régénération du catalogue terminée
Suppression des anciens rapports d'état
</pre>
Dans ce genre de cas, on pourrait s'attendre à ce que @/usr/share/eole/sbin/bareosrestore.py --catalog@ sorte en erreur ce qui ne semble pas être le cas (cf. script utilisé dans le test : *eole-ci-tests/tests/sauvegarde/run-bareos-restaure-complete.sh*)
<pre>
******* RESTAURATION DU CATALOGUE ***********
Start Systemd service mysql [ OK ]
Stop Systemd service mysql [ OK ]
## Régénération du catalogue Bareos##
Stop Systemd service bareos-director [ OK ]
Stop Systemd service bareos-storage [ OK ]
Dropping mysql database
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Drop of bareos database failed.
Creating mysql database
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Creating of bareos database failed.
Making mysql tables
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Creation of Bareos MySQL tables failed.
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Start Systemd service mysql [ OK ]
Mise à jour de la base de donnée Bareos...
Updating mysql tables
mysql: [Warning] Using a password on the command line interface can be insecure.
Finished upgrading database to version 2004
Régénération du catalogue terminée
Suppression des anciens rapports d'état
</pre>
Dans ce genre de cas, on pourrait s'attendre à ce que @/usr/share/eole/sbin/bareosrestore.py --catalog@ sorte en erreur ce qui ne semble pas être le cas (cf. script utilisé dans le test : *eole-ci-tests/tests/sauvegarde/run-bareos-restaure-complete.sh*)