Tâche #21207
Scénario #21077: Traitement express MEN (34-36)
Contourner le problème de mise à jour freeradius
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é.
Related issues
Associated revisions
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
Workaround freeradius force-reload too
- tmpl/policy-rc.d: Add a wildcard to handle “force-reload”.
Ref: #21207
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
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
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
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
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
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
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
policy-rc.d must exit with 104 to execute command
- tmpl/policy-rc.d: exit for all command with 104.
Ref: #21207
History
#1 Updated by Daniel Dehennin about 6 years ago
- Status changed from Nouveau to En cours
- Assigned To set to Daniel Dehennin
#2 Updated by Daniel Dehennin about 6 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 6.0 to 0.5
Paquets disponibles :
#3 Updated by Scrum Master about 6 years ago
- Status changed from En cours to Résolu
#4 Updated by Benjamin Bohard about 6 years ago
- Remaining (hours) changed from 0.5 to 0.0
#5 Updated by Benjamin Bohard about 6 years ago
- Status changed from Résolu to Fermé
#6 Updated by Joël Cuissinat about 6 years ago
- Related to Tâche #21421: Incident Maj-Auto et paquet freeradius-ldap:amd64 added