Project

General

Profile

Scénario #33641

hapy-automatisation : après instanciation et attachement Zéphir, nettoyer le context des VMs.

Added by Gilles Grandgérard over 2 years ago. Updated about 2 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
01/17/2022
Due date:
02/04/2022
% Done:

100%

Story points:
4.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Il reste des TO DO dans deploy-auto...

après instanciation et attachement Zéphir, il faut nettoyer le context des VMs avant de les redémarrer.

donc coder : clean_up_vm_template


Subtasks

Tâche #33761: etudeFerméLudwig Seys

Tâche #33771: modification deploy-autoFerméLudwig Seys

History

#1 Updated by Gilles Grandgérard over 2 years ago

  • Release changed from EOLE 2.8.1 to Carnet de produit (Cadoles)

#2 Updated by Gilles Grandgérard over 2 years ago

  • Project changed from Distribution EOLE to EOLE OpenNebula

#3 Updated by Gilles Grandgérard over 2 years ago

Je viens de voir un problème.

Après déploiement de 2 VM (amon / scribe, comme dans le test auto),
si je fais un 'reconfigure' et qu'un des fichiers de context (FILE) se trouve supprimé (maj)
Et que j'arrête une VM... impossible de la redémareer

Dans le journal :

Fri Jan 7 16:14:55 2022 [Z0][VM][I]: New LCM state is LCM_INIT
Fri Jan 7 16:15:56 2022 [Z0][VM][I]: New state is ACTIVE
Fri Jan 7 16:15:56 2022 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Fri Jan 7 16:15:56 2022 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/1/deployment.4
Fri Jan 7 16:15:56 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/205b87f0fc55b61256f93d6531c902f0:\'zcreds.sc\' /var/lib/one//datastores/2/71bfd3bc7ac949bfb4bf82e2917cb629:\'zephir-ca.crt\' /var/lib/one//datastores/2/1eb49762a824f6baaeac6f9e3ea12511:\'10_mount_log_dir.sh\' /var/lib/one//datastores/2/709b45ff4c833f1d1aace19c0a5a5a5a:\'15_maj_auto.sh\' /var/lib/one//datastores/2/e6a1638d84add7d796970b7323e94183:\'20_enregistrement_zephir.sh\' /var/lib/one//datastores/2/4bcdc1274142188ffe0f842d2ffa3dbb:\'50_instance_auto.sh\' /var/lib/one//datastores/2/0b7b40c5e61eec04fc6d664a64659d62:\'99_first-boot.sh\' hapy1:/var/lib/one//datastores/100/1/disk.1 1 100
Fri Jan 7 16:15:56 2022 [Z0][VMM][I]: context: Generating context block device at hapy1:/var/lib/one//datastores/100/1/disk.1
Fri Jan 7 16:15:56 2022 [Z0][VMM][E]: context: Command "cp -R /var/lib/one//datastores/2/205b87f0fc55b61256f93d6531c902f0 /var/lib/one/datastores/.isofiles/1/''zcreds.sc''" failed: cp: cannot stat '/var/lib/one//datastores/2/205b87f0fc55b61256f93d6531c902f0': No such file or directory
Fri Jan 7 16:15:56 2022 [Z0][VMM][E]: Error copying /var/lib/one//datastores/2/205b87f0fc55b61256f93d6531c902f0 to /var/lib/one/datastores/.isofiles/1
Fri Jan 7 16:15:56 2022 [Z0][VMM][I]: Failed to execute transfer manager driver operation: tm_context.
Fri Jan 7 16:15:56 2022 [Z0][VMM][E]: Error deploying virtual machine: Error copying /var/lib/one//datastores/2/205b87f0fc55b61256f93d6531c902f0 to /var/lib/one/datastores/.isofiles/1
Fri Jan 7 16:15:56 2022 [Z0][VM][I]: New state is POWEROFF

L'attribut ERROR apparait ...

ERROR=Fri Jan 7 16:20:02 2022 : Error deploying virtual machine: Error copying /var/lib/one//datastores/2/205b87f0fc55b61256f93d6531c902f0 to /var/lib/one/datastores/.isofiles/1

J'édite la configuration de la VM et supprimant FILES_DS et 'Scripts d’initialisation'...; la VM redémarre sans problème

PS : le pb est connu sur notre environnement One, les FILE sont renommés pour éviter cet écueil.

#4 Updated by Gilles Grandgérard over 2 years ago

  • Story points set to 4.0

#5 Updated by Gilles Grandgérard over 2 years ago

        res=$(oneimage show ${sc})
        if [[ ${?} -eq 0 ]]
        then
            oneimage delete ${sc}
        fi
        oneimage create --type CONTEXT --datastore ${DS_ID} --name ${sc} --path ${SCRIPT_DEST}${sc}

On détruit systématiquement les FILE !

#6 Updated by Gilles Grandgérard over 2 years ago

  • Due date set to 02/04/2022
  • Target version set to Prestation Cadoles MEN 2022 03-05
  • Start date set to 01/17/2022

#7 Updated by Celine Rappeneau over 2 years ago

  • Assigned To set to Ludwig Seys

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

  • Status changed from Nouveau to Terminé (Sprint)
  • Release changed from Carnet de produit (Cadoles) to EOLE 2.8.1

Also available in: Atom PDF