Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 919702

Summary: ImportError: No module named dateutil.parser
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Adrian Likins <alikins>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.10CC: jgalipea, lmiksik
Target Milestone: beta   
Target Release: 5.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 22:58:58 UTC Type: Bug
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: 840995, 920191, 928849    

Description John Sefler 2013-03-09 17:04:30 UTC
Description of problem:
This import error is preventing subscription-manager-1.8 from running on RHEL5.

I suspect the error was introduced between these subscription-manager commits:
1eec8ec92065dc92f45e2d27fd8a49776cc76854  (is broken here)
eb5966952289871ae9569c910f02b9aa0017d76e  (was working here)

Version-Release number of selected component (if applicable):
[root@rhsm-compat-rhel59 ~]# rpm -q subscription-manager
subscription-manager-1.8.3-1.git.233.1eec8ec.el5


How reproducible:


Steps to Reproduce:
[root@rhsm-compat-rhel59 ~]# subscription-manager --help
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 58, in ?
    from subscription_manager.injectioninit import init_dep_injection
  File "/usr/share/rhsm/subscription_manager/injectioninit.py", line 17, in ?
    from subscription_manager.cert_sorter import CertSorter
  File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 21, in ?
    from subscription_manager.utils import parseDate
  File "/usr/share/rhsm/subscription_manager/utils.py", line 25, in ?
    import dateutil.parser
ImportError: No module named dateutil.parser

Comment 1 Adrian Likins 2013-03-11 19:56:29 UTC
Looks to be some use of parseDate that got missed in the mergeathon. 

https://github.com/candlepin/subscription-manager/pull/534 should fix it.

Comment 2 Adrian Likins 2013-03-13 15:16:41 UTC
commit db4d3fec1cf645fb01d44bc26970ce5219121927
Author: Adrian Likins <alikins>
Date:   Mon Mar 11 12:58:15 2013 -0400

    utils.parseDate is now isodate.parse_date
    
    remove utils.parseDate and update refs to it

Comment 4 John Sefler 2013-04-12 22:32:32 UTC
Verifying Version...
[root@jsefler-5 ~]# rpm -q subscription-manager
subscription-manager-1.8.5-1.el5

[root@jsefler-5 ~]# subscription-manager --help
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]

Primary Modules:

  attach         Attach a specified subscription to the registered system
  list           List subscription and product information for this system
  refresh        Pull the latest subscription data from the server
  register       Register this system to the Customer Portal or another subscription management service
  release        Configure which operating system release to use
  remove         Remove all or specific subscriptions from this system
  unregister     Unregister this system from the Customer Portal or another subscription management service

Other Modules:

  clean          Remove all local system and subscription data without affecting the server
  config         List, set, or remove the configuration parameters in use by this system
  environments   Display the environments available for a user
  facts          View or update the detected system information
  identity       Display the identity certificate for this system or request a new one
  import         Import certificates which were provided outside of the tool
  orgs           Display the organizations against which a user can register a system
  plugins        View and configure subscription-manager plugins
  redeem         Attempt to redeem a subscription for a preconfigured system
  repos          List the repositories which this system is entitled to use
  service-level  Manage service levels for this system
  subscribe      Deprecated, see attach
  unsubscribe    Deprecated, see remove
  version        Print version information

[root@jsefler-5 ~]# 


Moving to VERIFIED: subscription-manager-1.8 is now running on RHEL5

Comment 6 errata-xmlrpc 2013-09-30 22:58:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1332.html