Bug 723899
| Summary: | /etc/NOCpulse.ini created but /etc/cron.d/notification assumes it does not exist | |||
|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> | |
| Component: | Server | Assignee: | Miroslav Suchý <msuchy> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 1.5 | CC: | msuchy | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | NPalert-1.126.24-1 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 723906 (view as bug list) | Environment: | ||
| Last Closed: | 2011-12-22 16:48:23 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 723481, 723906 | |||
This is regression cause by bug 710002. So we have one part code (that described in 710002) which need /etc/NOCpulse.ini and another (that cron.d/notification) which assume that if /etc/NOCpulse.ini exist, that monitoring is configured. :( Lets run that cron task only if /etc/NOCpulse.ini contains something else then comments - which is only content of not configured monitoring. Spacewalk.git commit 717028bd6873e18a99ff79a1344ec5cd48a6958f Spacewalk 1.6 has been released. |
Description of problem: On Spacewalk 1.5 on Fedora 15 with monitoring not enabled, the following email lands in root's mailbox every 15 minutes: Subject: Cron <nocpulse@hostname> if [ -e /etc/NOCpulse.ini ] ; then /usr/bin/monitor-queue ALERTS 50 100 2>&1 > /dev/null; fi eth0: error fetching interface information: Device not found Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/bin/monitor-queue line 45. Note that you might need SELinux in permissive to see that email in root's mailbox. Version-Release number of selected component (if applicable): # rpm -qf /etc/NOCpulse.ini /etc/cron.d/notification nocpulse-common-2.1.24-1.fc15.noarch NPalert-1.126.23-1.fc15.noarch How reproducible: Deterministic. Steps to Reproduce: 1. Install Spacewalk 1.5 on Fedora 15, set SELinux to permissive. 2. After 16 minutes, check root's mailbox. Actual results: Email as shown above. Expected results: Nothing is delieved. Additional info: Besides that email, you will likely also see AVC denials type=AVC msg=audit(1311253202.419:314): avc: denied { getattr } for pid=29677 comm="sendmail" path="/var/lib/nocpulse/.forward" dev=dm-1 ino=2755245 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:spacewalk_monitoring_var_lib_t:s0 tclass=file type=AVC msg=audit(1311253202.420:315): avc: denied { read } for pid=29677 comm="sendmail" name=".forward" dev=dm-1 ino=2755245 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:spacewalk_monitoring_var_lib_t:s0 tclass=file type=AVC msg=audit(1311253202.420:315): avc: denied { open } for pid=29677 comm="sendmail" name=".forward" dev=dm-1 ino=2755245 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:spacewalk_monitoring_var_lib_t:s0 tclass=file -- as the email is being delivered to nocpulse@the-spacewalk-server, the .forward is consulted and it fails. This AVC denial should also be fixed, or email never delivered to nocpulse@.