Bug 1752059
| Summary: | [rhel78] System gets mail report when cron.daily is run and the list continue to grow | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Rehana <redakkan> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.8 | CC: | cdonnell, csnyder |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.24.19-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-31 19:40:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rehana
2019-09-13 15:07:47 UTC
The output that is being mailed is from `ps` output for the new eval in the script: 24796 ? Sl 0:00 /usr/bin/python /usr/libexec/rhsmd 24901 ? SN 0:00 /bin/sh /etc/cron.daily/rhsmd Working on fixing it now by changing how its checked. Verifying on : -------------- # subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.9.17-1 subscription management rules: 5.37 subscription-manager: 1.24.23-1.el7 [root@kvm-01-guest18 ~]# rpm -qa subscription-manager --changelog | grep 1752059 - 1752059: corrected cron receving stdout mail for rhsmd run (crag) Wait for the cron.daily to run and check the system # tail -f /var/log/cron Oct 30 03:34:01 kvm-01-guest18 run-parts(/etc/cron.daily)[9473]: starting rhsmd Oct 30 03:39:01 kvm-01-guest18 run-parts(/etc/cron.daily)[9516]: finished rhsmd Oct 30 03:39:01 kvm-01-guest18 anacron[9469]: Job `cron.daily' terminated Oct 30 03:39:01 kvm-01-guest18 anacron[9469]: Normal exit (1 job run) [root@kvm-01-guest18 ~]# cat /etc/cron.daily/rhsmd #!/bin/sh # nightly run of rhsmd to log entitlement expiration/validity errors to syslog # this is a cron job because it doesn't need to 'phone home'. should that # change, look into calling the dbus interface from rhsmcertd instead. config=$(grep -E "^processTimeout" /etc/rhsm/rhsm.conf | grep -Po "[0-9]+") if [ -n $config ]; then rhsmd_timeout=$config else rhsmd_timeout=300 fi /usr/libexec/rhsmd -s & sleep $rhsmd_timeout; ps_check=$(pgrep -f '/usr/libexec/rhsmd') if [ -n "$ps_check" ]; then pkill -f '/usr/libexec/rhsmd' >/dev/null 2>&1 logger -t rhsmd -p user.warn "rhsmd process exceeded runtime and was killed." >/dev/null 2>&1 fi [root@kvm-01-guest18 ~]# cat /var/spool/mail/root cat: /var/spool/mail/root: No such file or directory [root@kvm-01-guest18 ~]# There was no mails on the system, based on the above observations moving the bug to verified Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1028 |