Bug 976868 - '/usr/libexec/rhsmd' dbus service script does not log at all
Summary: '/usr/libexec/rhsmd' dbus service script does not log at all
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510
TreeView+ depends on / blocked
 
Reported: 2013-06-21 17:27 UTC by Adrian Likins
Modified: 2013-10-01 13:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-01 13:48:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Adrian Likins 2013-06-21 17:27:40 UTC
Description of problem:

The '/usr/libexec/rhsmd' script which implements the 
"com.redhat.SubscriptionManager/EntitlementStatus" inteface, does
not log to the rhsm log at all. 

This service can potentially make network calls (via it's 
CERT_SORTER require), it should be setup with a log handler
for the standard rhsm.log

Comment 1 Adrian Likins 2013-07-03 18:24:43 UTC
commit 23e8636b8398abff919e52cc892e965fe03f97cb
Author: Adrian Likins <alikins>
Date:   Tue Jun 25 14:58:58 2013 -0400

    976868: improve rhsmd logging
    
    Setup a logger at module scope.
    
    If running debug, log any of the existing debug
    messages to log.debug as well.
    
    log.info any messages that would previously
    get syslog()'ed as well.
    
    Simplify syslog logging.
    
    More detailed log messages.

Comment 2 John Sefler 2013-07-16 22:39:25 UTC
Verifying Version....
[root@jsefler-5 ~]# rpm -q subscription-manager
subscription-manager-1.8.13-1.el5

[root@jsefler-5 ~]# /usr/libexec/rhsmd -s -d -i -f warning
forcing status signal from cli arg


[root@jsefler-5 ~]# tail -f /var/log/rhsm/rhsm.log
2013-07-16 18:34:29,408 [INFO]  @rhsmd:194 - rhsmd started
2013-07-16 18:34:29,409 [INFO]  @rhsmd:225 - logging subscription status to syslog
2013-07-16 18:34:29,409 [DEBUG]  @rhsmd:60 - forcing status signal from cli arg
2013-07-16 18:34:29,409 [INFO]  @rhsmd:189 - rhsmd: This system's subscriptions are about to expire. Please run subscription-manager for more information.


[root@jsefler-5 ~]# tail -f /var/log/messages
Jul 16 18:34:11 jsefler-5 rhsmd: This system's subscriptions are about to expire. Please run subscription-manager for more information.


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