Bug 747101 - ceph logrotate rule invokes Debian binary
Summary: ceph logrotate rule invokes Debian binary
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ceph
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: David Nalley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-18 20:04 UTC by Jerry James
Modified: 2011-11-10 17:38 UTC (History)
7 users (show)

Fixed In Version: ceph-0.37-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-10 17:38:47 UTC
Type: ---


Attachments (Terms of Use)

Description Jerry James 2011-10-18 20:04:51 UTC
Description of problem:
The file /etc/logrotate.d/ceph contains this:

    postrotate
        invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
    endscript

The result is that every day I get email from logrotate telling me that the execution of invoke-rc.d failed.  Since that is a Debian tool, can we please just remove that part of the line?  That is, can you patch the logrotate script so that part reads:

    postrotate
        service ceph reload >/dev/null
    endscript

That will stop the nag emails.  Thanks.

Version-Release number of selected component (if applicable):
ceph-0.31-4.fc17.x86_64

How reproducible:
Once per day

Steps to Reproduce:
1. Install ceph and logrotate
2. Wait until cron.daily runs
3. Read the nag email
  
Actual results:
Logrotate warns every day about a failed execution of invoke-rc.d.

Expected results:
No warnings.

Additional info:

Comment 1 Orion Poplawski 2011-10-24 16:17:10 UTC
You also want a missingok line in there.  I have ceph installed as a dep of qemu (for librados.so.2 and librbd.so.1) but not running and I get:

/etc/cron.daily/logrotate:

error: stat of /var/log/ceph/*.log failed: No such file or directory

Perhaps it also make sense to have a ceph-libs package for such deps?

Comment 2 Fedora Update System 2011-11-07 17:17:42 UTC
ceph-0.37-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ceph-0.37-1.fc16

Comment 3 Josef Bacik 2011-11-07 17:20:59 UTC
I just pushed an update to testing, its ceph-0.37-1.  Let me know if it works and up the karma if it does.

Comment 4 Fedora Update System 2011-11-10 17:38:47 UTC
ceph-0.37-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.