Bug 665122
Summary: | No handlers could be found for logger "rhsm.certificate" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.1 | CC: | bkearney, dgoodwin |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-19 13:38:26 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: | 568421, 639436 |
Description
John Sefler
2010-12-22 19:45:18 UTC
Similar output seen on the DEV2 environment: ssh root.redhat.com subscription-manager register --username=XEOPS --password=redhat --autosubscribe Stdout: 1f661235-4a7f-415e-85bf-a5af3ea4c5c9 XEOPS Stderr: No handlers could be found for logger "rhsm.certificate" 'NoneType' object has no attribute 'getHash' ExitCode: 255 And this message re-appears in automation test results in other places too: ssh root.redhat.com subscription-manager list --consumed Stdout: +-------------------------------------------+ Consumed Product Subscriptions +-------------------------------------------+ ProductName: Red Hat Enterprise Linux, Basic (up to 2 sockets) 3 year ContractNumber: 1442745 AccountNumber: 773563 SerialNumber: 171292997673204139 Active: True Begins: 2008-11-20 Expires: 2011-11-19 Stderr: No handlers could be found for logger "rhsm.certificate" ExitCode: 0 ssh root.redhat.com ls -1 -v /etc/pki/entitlement/*.pem | grep -v key.pem Stdout: /etc/pki/entitlement/171292997673204139.pem Stderr: ExitCode: 0 dgoodwin has installed a default null handler for the lib, but we need to hook this up in the apps. this should involve replacing the logutil's getLogger with an initLogger that will set up the log file and the default handler, then having the modules use regular pythong logging to get their loggers. Fixed in python-rhsm python-rhsm-0.94.12-1, commit 8361c7e7fe4bccb84319c98e887d40a26b1ab62d. The issue of properly configuring loggers in subscription manager remains open. loggers are set up now. all logging from subscription-manager(-gui), and the yum plugins should still be going to /var/log/rhsm/rhsm.log Testing BETA version... [root@jsefler-onprem01 ~]# rpm -q subscription-manager subscription-manager-0.93.19-1.git.0.ed24ca5.el6.x86_64 [root@jsefler-onprem01 ~]# subscription-manager register --username=testuser1 --password=password 26acf812-dae8-4758-bc39-77463370e85d jsefler-onprem01.usersys.redhat.com [root@jsefler-onprem01 ~]# subscription-manager list --available | grep smart-100 -A3 -B1 ProductName: Smart Management Add On ProductId: smart-100 PoolId: ff8080812e6d3c9c012e6d3e10ae0212 Quantity: 500 Expires: 2012-02-27 -- ProductName: Smart Management Add On ProductId: smart-100 PoolId: ff8080812e6d3c9c012e6d3e10bd0214 Quantity: 1000 Expires: 2012-02-27 [root@jsefler-onprem01 ~]# subscription-manager subscribe --pool=ff8080812e6d3c9c012e6d3e10bd0214 [root@jsefler-onprem01 ~]# subscription-manager unsubscribe --all [root@jsefler-onprem01 ~]# ^^ AS EXPECTED, WE DID NOT ENCOUNTER: No handlers could be found for logger "rhsm.certificate" forgot to include this in comment #8 [root@jsefler-onprem01 ~]# rpm -q python-rhsm python-rhsm-0.94.16-1.git.0.1e21f52.el6.noarch Testing RHEL6 version... [root@jsefler-onprem03 ~]# rpm -q subscription-manager subscription-manager-0.95.3-1.git.0.5a24e74.el6.x86_64 [root@jsefler-onprem03 ~]# rpm -q python-rhsm python-rhsm-0.95.3-1.git.0.4d0ef8e.el6.noarch [root@jsefler-onprem03 ~]# subscription-manager register --username=testuser1 --password=password 01bea82f-75a5-4990-aee3-028c9f534918 jsefler-onprem03.usersys.redhat.com [root@jsefler-onprem03 ~]# subscription-manager list --available | grep smart-100 -A3 -B1 [root@jsefler-onprem03 ~]# subscription-manager list --available | grep management -A3 -B1 ProductName: Management Add-On ProductId: management-100 PoolId: 8a90f8b42e6dd150012e6dd1d90b0143 Quantity: 10000 Expires: 2012-02-27 -- ProductName: Management Add-On ProductId: management-100 PoolId: 8a90f8b42e6dd150012e6dd1d8df0142 Quantity: 20000 Expires: 2012-02-27 [root@jsefler-onprem03 ~]# subscription-manager subscribe --pool=8a90f8b42e6dd150012e6dd1d90b0143 [root@jsefler-onprem03 ~]# subscription-manager unsubscribe --all ^^ AS EXPECTED, WE DID NOT ENCOUNTER: No handlers could be found for logger "rhsm.certificate" moving to VERIFIED based on comment #8 comment #9 comment #10 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0611.html |