Project

General

Profile

Tâche #33733

Scénario #33763: Amélioration de la génération du conteneur addc

EOLE 2.9 : amélioration création addc (degraded)

Added by Emmanuel GARETTE about 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/24/2022
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Le service systemd-sysusers.service ne démarre pas dans le conteneur addc

janv. 27 09:03:56 addc systemd[243]: systemd-sysusers.service: Failed to set up credentials: Protocol error
janv. 27 09:03:56 addc systemd[243]: systemd-sysusers.service: Failed at step CREDENTIALS spawning systemd-sysusers: Protocol error

dans eolead, il faut mieux gérer les messsages d'erreur et le is-system-running (gérer le cas 'degraded')

Si le conteneur est en mode dégradé, il faut afficher un message explicite à l'utilisateur mais continuer l'installation du conteneur.

Les status possibles : https://www.freedesktop.org/software/systemd/man/systemctl.html#is-system-running

- "initializing" + "starting" => on attend
- "running" on continue
- "degraded" on fait un warning avec un message explicite et on continue
- autre : on arrête en faisant un message explicite.

Associated revisions

Revision 3d258b20 (diff)
Added by Emmanuel GARETTE about 2 years ago

HACK TEMPORAIRE (ref #33733)

Revision 06ff09fe (diff)
Added by Emmanuel GARETTE about 2 years ago

mise à jour rules (ref #33733)

Revision d7bebe69 (diff)
Added by Laurent Gourvenec about 2 years ago

Eolead: séparation des tests de démarrage systemd et sshd dans le conteneur

Plus de cas d'erreurs gérés
Gestion du mode dégradé
Messages d'erreurs plus explicites

Ref #33733 et #33734

Revision 218a8f15 (diff)
Added by Laurent Gourvenec about 2 years ago

Revert "HACK TEMPORAIRE (ref #33733)"

This reverts commit 3d258b208a54c06eab19b8b812169f182febeb00.

History

#1 Updated by Emmanuel GARETTE about 2 years ago

Pour contourner le problème, dans le fichier /usr/share/eole/sbin/eolead faire la modification suivante :

#    IS_RUNNING="$(lxc-attach -n addc -- /bin/systemctl is-system-running || /bin/true)" 
    IS_RUNNING='running'

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

  • Subject changed from Le service systemd-sysusers.service ne démarre pas dans le conteneur addc to EOLE 2.9 : Le service systemd-sysusers.service ne démarre pas dans le conteneur addc
  • Parent task deleted (#33643)

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

  • Tracker changed from Tâche to Scénario
  • Target version deleted (Prestation Cadoles MEN 2022 03-05)
  • Start date deleted (01/17/2022)
  • Release set to EOLE 2.9.0

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

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

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

  • Story points set to 1.0

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

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

#7 Updated by Gilles Grandgérard about 2 years ago

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

#8 Updated by Gilles Grandgérard about 2 years ago

  • Subject changed from EOLE 2.9 : Le service systemd-sysusers.service ne démarre pas dans le conteneur addc to EOLE 2.9 : amélioration création addc (degraded)
  • Description updated (diff)

#9 Updated by Gilles Grandgérard about 2 years ago

  • Tracker changed from Scénario to Tâche

#10 Updated by Gilles Grandgérard about 2 years ago

  • Parent task set to #33763

#11 Updated by Emmanuel GARETTE about 2 years ago

  • Description updated (diff)

#12 Updated by Emmanuel GARETTE about 2 years ago

  • Description updated (diff)

#13 Updated by Laurent Gourvenec about 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Laurent Gourvenec
  • Start date set to 02/24/2022

#14 Updated by Laurent Gourvenec about 2 years ago

  • % Done changed from 0 to 80

#15 Updated by Laurent Gourvenec about 2 years ago

  • Status changed from En cours to À valider

#16 Updated by Emmanuel GARETTE about 2 years ago

  • % Done changed from 80 to 100

#17 Updated by Emmanuel GARETTE about 2 years ago

  • Status changed from À valider to Résolu

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

scribe-ad$ git branch -r --contains d7bebe69  
  origin/2.7.2/master
  origin/2.8.0/master
  origin/2.8.1/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.2/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/dist/eole/2.9.0/master
  origin/f/ameliorations_gen
  origin/master

On voit bien le warning en... 2.9 !

   [ ... ]
Démarrage du conteneur addc
Le conteneur addc a démarré
Failed to connect to bus: Aucun fichier ou dossier de ce type
Conteneur addc en cours de démarrage : 
Conteneur addc démarré en mode dégradé !
Les services suivants sont en état "failed" :
● systemd-sysusers.service loaded failed failed Create System Users

Finalisation du conteneur addc
   [ ... ]

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

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

OK

Also available in: Atom PDF