Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 912707 - rhsmd Calling Deprecated hasNow Function
rhsmd Calling Deprecated hasNow Function
Status: CLOSED DUPLICATE of bug 913118
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: beta
: 5.10
Assigned To: Bryan Kearney
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
  Show dependency treegraph
Reported: 2013-02-19 08:24 EST by Devan Goodwin
Modified: 2013-04-30 15:27 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-04-30 15:27:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Devan Goodwin 2013-02-19 08:24:43 EST
Some functionality was deprecated in python-rhsm, at the same time we replaced it's usage in subscription-manager but one call was missed in rhsmd:

/usr/libexec/rhsmd -s
/usr/lib64/python2.4/site-packages/rhsm/certificate.py:123: DeprecationWarning: Call to deprecated function: hasNow

This should be updated to the new certificate2 module, I believe the method would be is_valid.
Comment 3 Bryan Kearney 2013-02-21 13:20:46 EST
commit 5557f0bec9b582582a51d5207712c48c00d03d9d
Author: Bryan Kearney <bkearney@redhat.com>
Date:   Wed Feb 20 14:39:33 2013 -0500

    912707: Remove a use of the deprecated hasNow() function.
Comment 4 RHEL Product and Program Management 2013-04-09 16:54:51 EDT
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.
Comment 5 Sharath Dwaral 2013-04-30 15:23:57 EDT
# rpm -qa | egrep "subscription-manager|python-rhsm"

# /usr/libexec/rhsmd -s

No longer throws any warning.

Comment 6 Sharath Dwaral 2013-04-30 15:27:02 EDT

*** This bug has been marked as a duplicate of bug 913118 ***

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