Bug 770029 - DeprecationWarning log should not display to screen
Summary: DeprecationWarning log should not display to screen
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: William Poteat
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 715031
TreeView+ depends on / blocked
 
Reported: 2011-12-23 05:40 UTC by Suyuan Li
Modified: 2011-12-23 09:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-23 08:32:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

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:


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