Project

General

Profile

Actions

Bug #11330

closed

logrotate reload error on Ubuntu 14.04

Added by Wim Heirman about 9 years ago. Updated over 8 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 1 (0 open1 closed)

Copied to Ceph - Backport #12923: logrotate reload error on Ubuntu 14.04ResolvedNathan CutlerActions
Actions #1

Updated by Sage Weil almost 9 years ago

  • Priority changed from Normal to Urgent
Actions #2

Updated by Sage Weil almost 9 years ago

  • Assignee set to Kefu Chai
Actions #4

Updated by Sage Weil almost 9 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Kefu Chai almost 9 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.

Actions #6

Updated by Kefu Chai almost 9 years ago

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

Updated by Nathan Cutler over 8 years ago

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

Updated by Loïc Dachary over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF