The subscription-manager package's rhsmd produces warning of "DeprecationWarning: Call to deprecated function: hasNow"

Solution Verified - Updated -

Issue

  • The subscription-manager package's /usr/libexec/rhsmd utilizes deprecated function warning_range.hasNow() which results in a warning message when executed. This warning message is most commonly seen from the execution of the /etc/cron.daily/rhsmd cron job which results in an e-mail to root.

  • RHEL 5 warning:

/usr/lib64/python2.4/site-packages/rhsm/certificate.py:123: DeprecationWarning: Call to deprecated function: hasNow
  category=DeprecationWarning)
  • RHEL 6 warning:
/usr/lib64/python2.6/site-packages/rhsm/certificate.py:123: DeprecationWarning: Call to deprecated function: hasNow
  category=DeprecationWarning)

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In