Project

General

Profile

Bug #11330

logrotate reload error on Ubuntu 14.04

Added by Wim Heirman over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

100%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The logrotate script tries to restart ceph using invoke-rc.d, which results it the following error:

/etc/cron.daily/logrotate:
invoke-rc.d: policy-rc.d denied execution of reload.

On Ubuntu 14.04, both `invoke-rc.d' and `service' exist but the latter should be used instead. Switching the order of detection in /etc/logrotate.d/ceph should fix this.


Related issues

Copied to Ceph - Backport #12923: logrotate reload error on Ubuntu 14.04 Resolved

Associated revisions

Revision 6063a21f (diff)
Added by Sage Weil over 7 years ago

logrotate.conf: prefer service over invoke-rc.d

On trusty 14.04, service works but invoke-rc.d does not (but is present).

Fixes: #11330
Reported-by: Wim Heirman <>
Signed-off-by: Sage Weil <>

Revision 7475a8fe (diff)
Added by Sage Weil over 7 years ago

logrotate.conf: prefer service over invoke-rc.d

On trusty 14.04, service works but invoke-rc.d does not (but is present).

Fixes: #11330
Reported-by: Wim Heirman <>
Signed-off-by: Sage Weil <>
(cherry picked from commit 6063a21f9edbbf80e44d45ff52a9f4ba1a1cb2c9)

History

#1 Updated by Sage Weil over 7 years ago

  • Priority changed from Normal to Urgent

#2 Updated by Sage Weil over 7 years ago

  • Assignee set to Kefu Chai

#4 Updated by Sage Weil over 7 years ago

  • Status changed from New to Fix Under Review

#5 Updated by Kefu Chai over 7 years ago

just for the fun of reading,

There is a provision for a "local initscript policy layer" (read: a call to /usr/sbin/policy-rc.d if this executable is present in the local system), which allows the local system administrator to control the behaviour of invoke-rc.d for every initscript id and action. It is assumed that this script is OPTIONAL and will by written and provided by packages other than the initscript system (sysvinit and file-rc packages).

quote from https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt

the policy-rc.d in this case returns 101, which means the action is denied by local admin. so we try service first as a workaround. i think it's okay to respect /usr/sbin/policy-rc.d though.

but when it comes to the maintainer script, like ceph.prerm, we should respect Debian policy 9.3.3 and stick to invoke-rc.d.

#6 Updated by Kefu Chai over 7 years ago

  • Status changed from Fix Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Nathan Cutler over 7 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to hammer
  • Regression set to No

#8 Updated by Loïc Dachary about 7 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF