Bug 452089

Summary: rhn_register fails, error has occurred: exceptions.ImportError
Product: Red Hat Enterprise Linux 4 Reporter: Petr Sklenar <psklenar>
Component: up2dateAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Fanny Augustin <fmoquete>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: atodorov, jhutar
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0771 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 20:06:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2008-06-19 09:16:45 UTC
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 10:53:03 UTC
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 11:05:28 UTC
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 20:06:20 UTC
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