Project

General

Profile

Tâche #21207

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

Contourner le problème de mise à jour freeradius

Added by Daniel Dehennin about 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/30/2017
Due date:
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
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é.


Related issues

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

Associated revisions

Revision 198ca8cc (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision 8c64727f (diff)
Added by Daniel Dehennin about 2 years ago

Workaround freeradius force-reload too

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

Ref: #21207

Revision 19c832d0 (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision 49b0af6a (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision bf20eb1b (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision fdaeecc0 (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision 6f6c8b2a (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision fec85925 (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision 6391c9de (diff)
Added by Daniel Dehennin about 2 years ago

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

Revision 4e25697c (diff)
Added by Daniel Dehennin about 2 years ago

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 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Daniel Dehennin

#2 Updated by Daniel Dehennin about 2 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 6.0 to 0.5

#3 Updated by Scrum Master about 2 years ago

  • Status changed from En cours to Résolu

#4 Updated by Benjamin Bohard about 2 years ago

  • Remaining (hours) changed from 0.5 to 0.0

#5 Updated by Benjamin Bohard about 2 years ago

  • Status changed from Résolu to Fermé

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

  • Related to Tâche #21421: Incident Maj-Auto et paquet freeradius-ldap:amd64 added

Also available in: Atom PDF