Projet

Général

Profil

Tâche #21207

Scénario #21077: Traitement express MEN (34-36)

Contourner le problème de mise à jour freeradius

Ajouté par Daniel Dehennin il y a plus de 6 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
30/08/2017
Echéance:
% réalisé:

100%

Temps estimé:
6.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

La demande a été remontée chez Ubuntu https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/1712817

Il faut mettre en place un script policy-rc.d dans tous les conteneurs afin de ne pas autoriser le reload du service freeradius si celui-ci est désactivé.


Demandes liées

Lié à Distribution EOLE - Tâche #21421: Incident Maj-Auto et paquet freeradius-ldap:amd64 Fermé 22/09/2017

Révisions associées

Révision 198ca8cc (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

Workaround freeradius reload bug when service is disabled

We need a “policy-rc.d” script to disable the reload command for that
particular service.

  • tmpl/policy-rc.d: Script to exclude the command for freeradius. It's
    generic enougth to support other services as needed.
  • dicos/00_common.xml: Install script in all containers.

Ref: #21207

Révision 8c64727f (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

Workaround freeradius force-reload too

  • tmpl/policy-rc.d: Add a wildcard to handle “force-reload”.

Ref: #21207

Révision 19c832d0 (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

Install policy-rc.d script in preinst

This permit to fix upgrade for server already in troubles because of
freeradius.

  • debian/eole-common-pkg.preinst: Create a policy script.
  • debian/eole-common-pkg.postrm: Remove the policy script.

For 2.6.0

Ref: #21207

Révision 49b0af6a (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

Install policy-rc.d script in preinst

This permit to fix upgrade for server already in troubles because of
freeradius.

  • debian/eole-common-pkg.preinst: Create a policy script.
  • debian/eole-common-pkg.postrm: Remove the policy script.

Cherry pick for 2.6.1 from 19c832d02ff0d038c6ea29f56604729061b75965

Ref: #21207

Révision bf20eb1b (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

Install policy-rc.d script in preinst

This permit to fix upgrade for server already in troubles because of
freeradius.

  • debian/eole-common-pkg.preinst: Create a policy script.
  • debian/eole-common-pkg.postrm: Remove the policy script.

Cherry pick for 2.6.2 from 19c832d02ff0d038c6ea29f56604729061b75965

Ref: #21207

Révision fdaeecc0 (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

policy-rc.d must exit with 104 to execute command

Otherwise the invoke-rc.d exits with the return code but run nothing
as defined in invoke-rc.d source code:

queries policy database
returns: $RC = 104 - ok, run
$RC = 101 - ok, do not run
other - exit with status $RC, maybe run if $RETRY
initial status of $RC is taken into account.
  • tmpl/policy-rc.d (skip_disabled): exit with 104 if the service is
    not disabled

Ref: #21207

Révision 6f6c8b2a (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

policy-rc.d created by package must exit with 104 to execute command

Otherwise the invoke-rc.d exits with the return code but run nothing
as defined in invoke-rc.d source code:

queries policy database
returns: $RC = 104 - ok, run
$RC = 101 - ok, do not run
other - exit with status $RC, maybe run if $RETRY
initial status of $RC is taken into account.
  • debian/eole-common-pkg.preinst: Update script with content of
    tmpl/policy-rc.d.

For 2.6.0

Ref: #21207

Révision fec85925 (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

policy-rc.d created by package must exit with 104 to execute command

Otherwise the invoke-rc.d exits with the return code but run nothing
as defined in invoke-rc.d source code:

queries policy database
returns: $RC = 104 - ok, run
$RC = 101 - ok, do not run
other - exit with status $RC, maybe run if $RETRY
initial status of $RC is taken into account.
  • debian/eole-common-pkg.preinst: Update script with content of
    tmpl/policy-rc.d.

Cherry picked for 2.6.1 from 6f6c8b2a95fd2a590ffac4a1453772424b7527db

Ref: #21207

Révision 6391c9de (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

policy-rc.d created by package must exit with 104 to execute command

Otherwise the invoke-rc.d exits with the return code but run nothing
as defined in invoke-rc.d source code:

queries policy database
returns: $RC = 104 - ok, run
$RC = 101 - ok, do not run
other - exit with status $RC, maybe run if $RETRY
initial status of $RC is taken into account.
  • debian/eole-common-pkg.preinst: Update script with content of
    tmpl/policy-rc.d.

Cherry picked for 2.6.2 from 6f6c8b2a95fd2a590ffac4a1453772424b7527db

Ref: #21207

Révision 4e25697c (diff)
Ajouté par Daniel Dehennin il y a plus de 6 ans

policy-rc.d must exit with 104 to execute command

  • tmpl/policy-rc.d: exit for all command with 104.

Ref: #21207

Historique

#1 Mis à jour par Daniel Dehennin il y a plus de 6 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Daniel Dehennin

#2 Mis à jour par Daniel Dehennin il y a plus de 6 ans

  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 6.0 à 0.5

#3 Mis à jour par Scrum Master il y a plus de 6 ans

  • Statut changé de En cours à Résolu

#4 Mis à jour par Benjamin Bohard il y a plus de 6 ans

  • Restant à faire (heures) changé de 0.5 à 0.0

#5 Mis à jour par Benjamin Bohard il y a plus de 6 ans

  • Statut changé de Résolu à Fermé

#6 Mis à jour par Joël Cuissinat il y a plus de 6 ans

  • Lié à Tâche #21421: Incident Maj-Auto et paquet freeradius-ldap:amd64 ajouté

Formats disponibles : Atom PDF