Project

General

Profile

Tâche #34405

Scénario #34498: Corrections eole-hapy-deployment

un reconfigure Hapy 2.8.1 bloque le redémarrage des VM

Added by Gilles Grandgérard 7 months ago. Updated 4 months ago.

Status:
Fermé
Priority:
Normal
Start date:
06/27/2022
Due date:
07/22/2022
% Done:

100%

Remaining (hours):
0.0

Description

Pour reproduire :
  • Utiliser l'environnement https://dev-eole.ac-dijon.fr/jenkins/job/2.8.1/job/test-hapy-automatisation-aca-2.8.1-amd64/
    ( zephir + hapy + déploiement auto amon/scribe)
  • vérifier que les des vm soient démarrées (ex: amon.etb1.lan)
  • modifier l'un des fichiers du provisionning (ex. 15_maj_auto.sh )
  • Exécuter reconfigure
    • le postservice 92-add-scripts détruit et recrée le FILE 15_maj_auto.sh (donc la dépendance existante dans le context est supprimée !)
  • Arrêter la VM amon.etb1.lan
  • poweron la VM amon.etb1.lan
    • la VM démarre et revient directement en POWEROFF
    • dans le journal de la VM :
Fri Jul 1 10:33:55 2022 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/1/deployment.1
Fri Jul 1 10:33:55 2022 [Z0][VMM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/tm/shared/context /var/lib/one/vms/1/context.sh /var/lib/one//datastores/2/34b6be14fcf6e5b7120340db84d687b9:\'zcreds.sc\' /var/lib/one//datastores/2/23b3eea3bfa87a628e282217e29f185e:\'zephir-ca.crt\' /var/lib/one//datastores/2/0520d0822a7817cab0c24b6c1912e226:\'00_logging.sh\' /var/lib/one//datastores/2/9f3fe77253d5bfeb67b89c4f7ed0ed4e:\'10_mount_log_dir.sh\' /var/lib/one//datastores/2/b76aab2dc3836dd5749529fa9b5390dd:\'15_maj_auto.sh\' /var/lib/one//datastores/2/ce0598f81d08617e3d7b919e3ed8d123:\'20_enregistrement_zephir.sh\' /var/lib/one//datastores/2/3dbd52f0c3ea760a08ef9c2ae39db4d7:\'50_instance_auto.sh\' /var/lib/one//datastores/2/9eb6a7e915541ce43229dc3a6e9d2501:\'99_first-boot.sh\' hapy1:/var/lib/one//datastores/100/1/disk.1 1 100
Fri Jul 1 10:33:55 2022 [Z0][VMM][I]: context: Generating context block device at hapy1:/var/lib/one//datastores/100/1/disk.1
Fri Jul 1 10:33:55 2022 [Z0][VMM][E]: context: Command "cp -R /var/lib/one//datastores/2/23b3eea3bfa87a628e282217e29f185e /var/lib/one/datastores/.isofiles/1/''zephir-ca.crt''" failed: cp: cannot stat '/var/lib/one//datastores/2/23b3eea3bfa87a628e282217e29f185e': No such file or directory
Fri Jul 1 10:33:55 2022 [Z0][VMM][E]: Error copying /var/lib/one//datastores/2/23b3eea3bfa87a628e282217e29f185e to /var/lib/one/datastores/.isofiles/1
Fri Jul 1 10:33:55 2022 [Z0][VMM][I]: Failed to execute transfer manager driver operation: tm_context.
Fri Jul 1 10:33:55 2022 [Z0][VMM][E]: Error deploying virtual machine: Error copying /var/lib/one//datastores/2/23b3eea3bfa87a628e282217e29f185e to /var/lib/one/datastores/.isofiles/1
Fri Jul 1 10:33:55 2022 [Z0][VM][I]: New state is POWEROFF
Fri Jul 1 10:33:55 2022 [Z0][VM][I]: New LCM state is LCM_INIT

il faut :
- supprimer les FILES du contexte avant de redémarrer la VM instanciée.

Associated revisions

Revision 0d07fce8 (diff)
Added by Gilles Grandgérard 6 months ago

Plus de delete, utilisation de rename/create pour créer les FILE comme
dans l'automate de test (Contournement du bug OpenNebula CONTEXT/FILE)

REF #34405

History

#1 Updated by Gilles Grandgérard 6 months ago

  • Due date set to 07/22/2022
  • Target version set to sprint 2022 26-35 Equipe MENSR (été+)
  • Start date set to 06/27/2022

#2 Updated by Joël Cuissinat 5 months ago

  • Parent task set to #34462

#3 Updated by Joël Cuissinat 5 months ago

  • Parent task changed from #34462 to #34498

#4 Updated by Joël Cuissinat 4 months ago

  • Status changed from Nouveau to Fermé
  • Assigned To set to Gilles Grandgérard
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0
eole-hapy-deployment$ git branch -r --contains 0d07fce8
  origin/2.8.1/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.1/master
  origin/dist/eole/2.9.0/master
  origin/master

Also available in: Atom PDF