Bug 452089 - rhn_register fails, error has occurred: exceptions.ImportError
rhn_register fails, error has occurred: exceptions.ImportError
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date (Show other bugs)
4.6
All Linux
high Severity high
: rc
: ---
Assigned To: Pradeep Kilambi
Fanny Augustin
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-19 05:16 EDT by Petr Sklenar
Modified: 2008-07-24 16:06 EDT (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2008-0771
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-24 16:06:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Sklenar 2008-06-19 05:16:45 EDT
Description of problem:
When I run `rhn_register`, it fails on all arch

Version-Release number of selected component (if applicable):

up2date-4.7.1-7.el4

How reproducible:
always

Steps to Reproduce:
1. rhn_register

  
Actual results:
[root@proliant05 8295]# rhn_register 
An error has occurred:
exceptions.ImportError
See /var/log/up2date for more information
[root@proliant05 8295]# tail /var/log/up2date

[Thu Jun 19 09:44:03 2008] up2date availablePackageList from network
[Thu Jun 19 11:06:35 2008] up2date   File "/usr/sbin/rhn_register", line 1312, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/rhn_register", line 738, in main
    from up2date_client import tui
   File "/usr/share/rhn/up2date_client/tui.py", line 33, in ?
    from rhnreg_constants import *

[Thu Jun 19 11:10:32 2008] up2date   File "/usr/sbin/rhn_register", line 1312, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/rhn_register", line 738, in main
    from up2date_client import tui
   File "/usr/share/rhn/up2date_client/tui.py", line 33, in ?
    from rhnreg_constants import *
[root@proliant05 8295]# uname -a
Linux proliant05.englab.brq.redhat.com 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04
EST 2007 i686 i686 i386 GNU/Linux


Expected results:

rhn_register has to run

Additional info:
its a regression
Comment 1 Jan Hutař 2008-06-19 06:53:03 EDT
For some reason, file rhnreg_constants.py is missing in the package (but is 
available in a tar.gz in a src.rpm package) - so maybe just an spec issue?

# rpm -qpl /mnt/redhat/brewroot/packages/up2date/4.7.1/7.el4/i386/
up2date-4.7.1-7.el4.i386.rpm | grep rhnreg_constants
<nothing>

When I copy rhnreg_constants.py from the src.rpm's tar.gz to the /usr/share/rhn/
rhnreg_constants.py, rhn_register starts as usuall.
Comment 2 Jan Hutař 2008-06-19 07:05:28 EDT
This was introduced as an respin from up2date-4.7.1-6.el4 to up2date-4.7.1-7.el4
Comment 10 errata-xmlrpc 2008-07-24 16:06:20 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0771.html

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