Bug 202172

Summary: up2date fails with ImportError: No module named rpm
Product: Red Hat Enterprise Linux 4 Reporter: Mirjam van den Hout - van Vroonhoven <m.vroonhoven>
Component: up2dateAssignee: Bret McMillan <bretm>
Status: CLOSED NOTABUG QA Contact: Brandon Perkins <bperkins>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-22 15:45:07 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:
Attachments:
Description Flags
Output of failing up2date command none

Description Mirjam van den Hout - van Vroonhoven 2006-08-11 11:26:22 UTC
Description of problem:

During run of up2date, up2date got updated, and up2date run restarted
automatically. The restarted up2date (and all subsequent calls to up2date)
fails with:

  Restarting up2date
  Traceback (most recent call last):
    File "/usr/sbin/up2date-nox", line 11, in ?
      import rpm
  ImportError: No module named rpm
  [root@bioinf-dual07 ~]#

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

During the first up2date run the following packages got upgraded:
  rhnlib         from version 1.8.2-1.p23.1 to version 1.8.7-4
  up2date                     4.4.67-4                 4.4.69-25
  up2date-gnome               4.4.67-4                 4.4.69-25

Downgrading again (rpm -Uhv --oldpackage) to the versions before the upgrade
does not solve the issue.

How reproducible:
I have no idea how to reproduce. This happened during the up2date run on 1
machine, 7 others updated fine.

Steps to Reproduce:
  run up2date-nox -u
  
Actual results:
Any attempt to start up2date now fails with
  Traceback (most recent call last):
    File "/usr/sbin/up2date-nox", line 11, in ?
      import rpm
  ImportError: No module named rpm

Expected results:
up2date runs successfull

Additional info:
It might have to do with the technical problems RedHat Network / Up2date server
was experiencing today.

Comment 1 Mirjam van den Hout - van Vroonhoven 2006-08-11 11:26:23 UTC
Created attachment 134010 [details]
Output of failing up2date command

Comment 2 Mirjam van den Hout - van Vroonhoven 2006-08-22 12:06:45 UTC
This is not a bug, but /usr/local/bin is in the path before /usr/bin/python, and
/usr/local/bin contained a newer version (2.4) of python.

I'm not allowed to change the status of this bug to NOTABUG, so can somebody at
redhat please do so?

Comment 3 Red Hat Bugzilla 2007-04-12 01:04:19 UTC
User bnackash's account has been closed