Project

General

Profile

Tâche #21714

Scénario #21721: L'Upgrade-Auto de Scribe 2.5.2 vers 2.6 doit être fonctionnel

Upgrade-Auto échoue pendant post_upgrade/99-upgrade-sympa

Added by Laurent Flori almost 2 years ago. Updated almost 2 years ago.

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

100%

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

Description

Durant l'upgrade 2.5.2 vers 2.6.X, le script post_upgrade/99-upgrade-sympa échoue sur un scribe en etb1 ou en aca.
Le script attend et ne rend jamais la main.

Associated revisions

Revision 552db98d (diff)
Added by Laurent Flori almost 2 years ago

Sympa should not start after upgrade

ref: #21714

We need to replace RUNLEVEL=1 when upgrading sympa otherwise upgrade fail because sympa
try to start berfore upgrading database

History

#1 Updated by Laurent Flori almost 2 years ago

Le démon sympa ne doit pas démarrer juste après l'installation, il faut lui faire faire un "upgrade" du schéma de sa base de données.
Il y a deux problèmes.

- La substitution de variables ne fonctionne pas correctement dans le script pre_download/02-sympa
la variable db_host est vide après la commande sed dans le fichier de sauvegarde de la configuration de sympa.

   CreoleRun 'sed -i "s/db_host localhost/db_host ${IP_MYSQL_CONTAINER}/" /etc/sympa/sympa.conf' mail

devient
   CreoleRun "sed -i \"s/db_host localhost/db_host ${IP_MYSQL_CONTAINER}/\" /etc/sympa/sympa.conf" mail

- On avait mis en place un contournement avec l'option RUNLEVEL=1 mais il semble que cela ne fonctionne plus. (le démon démarre pendant la mise à jour)
Avant

DEBIAN_FRONTEND=noninteractive RUNLEVEL=1 apt-get -c /etc/apt/apt-eole.conf install sympa > /dev/null 2>&1

Après
    dpkg-divert --add --rename --local /sbin/start-stop-daemon
    ln -s /bin/true /sbin/start-stop-daemon
    chmod 755 /sbin/start-stop-daemon
    DEBIAN_FRONTEND=noninteractive apt-get -c /etc/apt/apt-eole.conf install sympa > /dev/null 2>&1
    rm /sbin/start-stop-daemon
    dpkg-divert --remove --rename /sbin/start-stop-daemon

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

  • Estimated time set to 4.00 h
  • Parent task set to #21721

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

  • Assigned To set to Laurent Flori
  • % Done changed from 0 to 40
  • Estimated time changed from 4.00 h to 6.00 h
  • Remaining (hours) set to 6.0

#4 Updated by Laurent Flori almost 2 years ago

  • Project changed from creole to Distribution EOLE
  • Status changed from Nouveau to En cours

#5 Updated by Laurent Flori almost 2 years ago

  • Remaining (hours) changed from 6.0 to 1.0

#6 Updated by Laurent Flori almost 2 years ago

  • % Done changed from 40 to 100

#7 Updated by Emmanuel GARETTE almost 2 years ago

  • Status changed from En cours to Résolu

#8 Updated by Scrum Master almost 2 years ago

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

Also available in: Atom PDF