Bug 747101

Summary: ceph logrotate rule invokes Debian binary
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: cephAssignee: David Nalley <david>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: david, emailscottcollier, fedora, jbacik, josef, orion, steve
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-0.37-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-10 17:38:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.