Bug 770029

Summary: DeprecationWarning log should not display to screen
Product: Red Hat Enterprise Linux 5 Reporter: Suyuan Li <suli>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED NOTABUG QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8CC: khong
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-23 08:32:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031    

Description Suyuan Li 2011-12-23 05:40:02 UTC
Description of problem:
DeprecationWarning log should not display to screen, maybe in log file is better.

Version-Release number of selected component (if applicable):
subscription-manager-0.98.8-1.el5
subscription-manager-gnome-0.98.8-1.el5
subscription-manager-firstboot-0.98.8-1.el5
python-rhsm-0.98.8-1.el5

How reproducible:
always

Steps to Reproduce:
1. Edit /etc/rhsm/rhsm.conf
hostname=subscription.rhn.stage.redhat.com

2. subscription-manager register --username=*** --password=***

3. subscription-manager subscribe --pool=***

4. yum repolist 
or subscription-manager repos --list

Actual results:
# yum repolist
Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
/usr/lib/python2.4/site-packages/rhsm/certificate.py:450: DeprecationWarning: validWithGracePeriod is deprecated. use valid instead.
  DeprecationWarning)
/usr/lib/python2.4/site-packages/rhsm/certificate.py:445: DeprecationWarning: validRangeWithGracePeriod is deprecated. use validRange instead.
  DeprecationWarning)
rhel-5-server-rpms                                                                        | 3.7 kB     00:00     
repo id                                repo name                                                           status
rhel-5-server-rpms                     Red Hat Enterprise Linux 5 Server (RPMs)
...

# subscription-manager repos --list
/usr/lib/python2.4/site-packages/rhsm/certificate.py:450: DeprecationWarning: validWithGracePeriod is deprecated. use valid instead.
  DeprecationWarning)
/usr/lib/python2.4/site-packages/rhsm/certificate.py:445: DeprecationWarning: validRangeWithGracePeriod is deprecated. use validRange instead.
  DeprecationWarning)
+----------------------------------------------------------+
    Entitled Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
RepoName:             	Red Hat Enterprise Linux 5 Server (Source RPMs)
RepoId:               	rhel-5-server-source-rpms
RepoUrl:              	https://cdn.rcm-qa.redhat.com/content/dist/rhel/server/5/$releasever/$basearch/source/SRPMS
Enabled:              	0                        

RepoName:             	Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs)
RepoId:               	rhel-5-server-supplementary-beta-debuginfo
RepoUrl:              	https://cdn.rcm-qa.redhat.com/content/beta/rhel/server/5/$releasever/$basearch/supplementary/debug
Enabled:              	0              
...

Expected results:
No DeprecationWarning log display

Additional info: