Project

General

Profile

Tâche #9212

Distribution EOLE - Scénario #9238: Demandes critiques 2.4.1

La mise à jour en fin d'instance n'est plus du tout verbeuse ! (et en plus elle a planté...)

Added by Joël Cuissinat almost 9 years ago. Updated almost 9 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/10/2014
Due date:
% Done:

100%

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

Description

Je suis tombé dessus grâce au test squash : SC-T01-005 Lancer instance sur un serveur fraichement installé et configuré

Une mise à jour est recommandée
Voulez-vous effectuer une mise à jour via le réseau maintenant ? [oui/non]
[oui] : oui
Exécution de apt-eole -z --container current --json --log-level info update pour le conteneur bdd impossible
root@amonecole:~#


Related issues

Related to AmonEcole - Tâche #9077: Appliquer les tests Squash TM Socle commun 2.4 Fermé 09/29/2014

Associated revisions

Revision 9cd785bb (diff)
Added by Joël Cuissinat almost 9 years ago

Recharger le cache apt uniquement si c'est possible

  • pyeole/pkg.py (EolePkgApt().update) : tester si le cache est initialisé

Ref: #9212 @30m

Revision 671877b0 (diff)
Added by Joël Cuissinat almost 9 years ago

Ré-affichage des étapes dans instance + maj

  • creole/reconfigure.py
    • (main) : déclaration d'un logger spécifique pour pyeole.pkg
    • (update_server) : suppression "update" superflu

Fixes: #9212 @1.5h

History

#1 Updated by Joël Cuissinat almost 9 years ago

Lancée dans le conteneur, la commande renvoie 1 mais je ne sais pas pourquoi :

root@bdd:~# apt-eole --container current --json --log-level info update 
Atteint http://eole.ac-dijon.fr precise Release.gpg
Atteint http://eole.ac-dijon.fr precise-security Release.gpg
   [ ... ]
Ign http://eole.ac-dijon.fr eole-2.4.1-updates/main Translation-fr_FR.UTF-8
Ign http://eole.ac-dijon.fr eole-2.4.1-updates/main Translation-en
Lecture des listes de paquets...
root@bdd:~# echo $?
1

Dans ce même conteneur apt-get update renvoie 0 ...

#2 Updated by Joël Cuissinat almost 9 years ago

  • % Done changed from 0 to 30

Indice en mode débug : apt-eole - 'NoneType' object has no attribute 'open'
=> le cache n'est pas utilisé dans les conteneurs

#3 Updated by Joël Cuissinat almost 9 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

#4 Updated by Joël Cuissinat almost 9 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 30 to 100

#5 Updated by Joël Cuissinat almost 9 years ago

  • Start date changed from 10/09/2014 to 10/10/2014
  • Remaining (hours) changed from 2.5 to 0.16

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

  • Parent task changed from #9167 to #9238

#7 Updated by Benjamin Bohard almost 9 years ago

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

Also available in: Atom PDF