Bug 246756 - ImportError: No module named rhn, up2date can no start after upgrading from RHEL3.8 to RHEL4.5
ImportError: No module named rhn, up2date can no start after upgrading from R...
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date (Show other bugs)
4.5
x86_64 Linux
low Severity high
: ---
: ---
Assigned To: Pradeep Kilambi
Ken Reilly
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-04 13:00 EDT by Jari Kosonen
Modified: 2012-06-20 11:56 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-20 11:56:59 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)
Strace results from up2date (68.26 KB, text/plain)
2007-07-04 13:00 EDT, Jari Kosonen
no flags Details

  None (edit)
Description Jari Kosonen 2007-07-04 13:00:18 EDT
Description of problem:
ImportError: No module named rhn

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


How reproducible:
always

Steps to Reproduce:
1. "up2date"
2.
3.
  
Actual results:
[jari@vatcad1 eldonet]$ up2date
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 27, in ?
    from up2date_client import repoDirector
  File "/usr/share/rhn/up2date_client/repoDirector.py", line 5, in ?
    import rhnChannel
  File "/usr/share/rhn/up2date_client/rhnChannel.py", line 10, in ?
    import up2dateAuth
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 5, in ?
    import rpcServer
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 23, in ?
    from rhn import rpclib
ImportError: No module named rhn


Expected results:
up2date start run

Additional info:
Comment 1 Jari Kosonen 2007-07-04 13:00:18 EDT
Created attachment 158524 [details]
Strace results from up2date
Comment 2 Jari Kosonen 2007-07-04 13:01:15 EDT
"valgrind" -results for the up2date:

[jari@vatcad1 ~]$ valgrind --leak-check=full --show-reachable=yes -v up2date
==8164== Memcheck, a memory error detector.
==8164== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==8164== Using LibVEX rev 1732, a library for dynamic binary translation.
==8164== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==8164== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==8164== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==8164==
--8164-- Command line
--8164--    up2date
--8164-- Startup, with flags:
--8164--    --leak-check=full
--8164--    --show-reachable=yes
--8164--    -v
--8164-- Contents of /proc/version:
--8164--   Linux version 2.6.9-55.ELsmp
(brewbuilder@hs20-bc2-4.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat
3.4.6-3)) #1 SMP Fri Apr 20 16:36:54 EDT 2007
--8164-- Arch and hwcaps: AMD64, amd64-sse2
--8164-- Page sizes: currently 4096, max supported 4096
--8164-- Valgrind library directory: /usr/local/lib/valgrind
--8164-- Reading syms from /usr/bin/consolehelper (0x400000)
--8164--    object doesn't have a symbol table
--8164-- Reading syms from /lib64/ld-2.3.4.so (0x4000000)
--8164-- Reading syms from /usr/local/lib/valgrind/amd64-linux/memcheck (0x38000000)
--8164--    object doesn't have a dynamic symbol table
--8164-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
--8164-- Reading syms from /usr/local/lib/valgrind/amd64-linux/vgpreload_core.so
(0x4916000)
--8164-- Reading syms from
/usr/local/lib/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A17000)
--8164-- REDIR: 0x400FE30 (index) redirected to 0x4A1A9F0 (index)
--8164-- REDIR: 0x400FFE0 (strcmp) redirected to 0x4A1AB80 (strcmp)
--8164-- REDIR: 0x4010010 (strlen) redirected to 0x4A1AA90 (strlen)
--8164-- Reading syms from /usr/lib64/libglib-2.0.so.0.400.7 (0x4B1D000)
--8164--    object doesn't have a symbol table
--8164-- Reading syms from /lib64/libselinux.so.1 (0x4CA6000)
--8164--    object doesn't have a symbol table
--8164-- Reading syms from /lib64/libattr.so.1.1.0 (0x4DB6000)
--8164-- Reading syms from /lib64/tls/libc-2.3.4.so (0x4EB9000)
--8164-- REDIR: 0x4F29BF0 (rindex) redirected to 0x4A1A8A0 (rindex)
--8164-- REDIR: 0x4F243F0 (malloc) redirected to 0x4A18C83 (malloc)
--8164-- REDIR: 0x4F2AA60 (memset) redirected to 0x4A1AD50 (memset)
--8164-- REDIR: 0x4F2A2E0 (memchr) redirected to 0x4A1AC20 (memchr)
--8164-- REDIR: 0x4F2B1A0 (memcpy) redirected to 0x4A1B2F0 (memcpy)
--8164-- REDIR: 0x4F29090 (index) redirected to 0x4A1A990 (index)
--8164-- REDIR: 0x4F29800 (strlen) redirected to 0x4A1AA50 (strlen)
--8164-- REDIR: 0x4F22340 (free) redirected to 0x4A198FE (free)
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 27, in ?
    from up2date_client import repoDirector
  File "/usr/share/rhn/up2date_client/repoDirector.py", line 5, in ?
    import rhnChannel
  File "/usr/share/rhn/up2date_client/rhnChannel.py", line 10, in ?
    import up2dateAuth
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 5, in ?
    import rpcServer
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 23, in ?
    from rhn import rpclib
ImportError: No module named rhn
Comment 3 Jari Kosonen 2007-07-04 13:02:24 EDT
"gdb" -results for the "up2date":

[jari@vatcad1 ~]$ gdb up2date
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/up2date
(no debugging symbols found)
(no debugging symbols found)
Detaching after fork from child process 8713.
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 27, in ?
    from up2date_client import repoDirector
  File "/usr/share/rhn/up2date_client/repoDirector.py", line 5, in ?
    import rhnChannel
  File "/usr/share/rhn/up2date_client/rhnChannel.py", line 10, in ?
    import up2dateAuth
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 5, in ?
    import rpcServer
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 23, in ?
    from rhn import rpclib
ImportError: No module named rhn

Program exited normally.
(gdb) thread apply all bt
(gdb) quit
Comment 4 Jari Kosonen 2007-07-04 22:26:37 EDT
After downloading "rhn-applet" and "rhnlib" from: 
https://rhn.redhat.com/network/software/channels/packages.pxt?upper=20&filter_string=rhn&lower=1&alphabar_column=NVREA&cid=2881
and installing the rpms "up2date" started to work normally.
The upgrade from RHEL3.8 to RHEL4.5 didn't update the "rhn-applet" and "rhnlib",
which is why "up2date" didn't work properly initially after the upgrade.
Now, there is no more problem.
Comment 6 Jiri Pallich 2012-06-20 11:56:59 EDT
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.

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