Bug 156131

Summary: yum update results in python NameError (too many packages?)
Product: [Fedora] Fedora Reporter: Paul Dickson <paul>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-27 20:21:26 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 Paul Dickson 2005-04-27 19:36:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-2 Firefox/1.0.3

Description of problem:
Running "yum update" to update fc4-test2 this morning resulted in the error:

NameError: global name 'yum' is not defined

Reducing the total number of packages to less than 50 allowed a successful
install of all packages.

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

How reproducible:
Always

Steps to Reproduce:
1. yum update

To reduce the list of packages, I used commands similar to "yum update 'e*'".

Actual Results:  The test transaction succeeded, the real transactions failed before starting.

Expected Results:  Packages being installed.

Additional info:

Trimmed output from error:

(90/96): xorg-x11-doc-6.8 100% |=========================| 5.0 MB    00:10
(91/96): xorg-x11-twm-6.8 100% |=========================| 156 kB    00:00
(92/96): vim-enhanced-6.3 100% |=========================| 1.0 MB    00:02
(93/96): libselinux-1.23. 100% |=========================|  64 kB    00:00
(94/96): gnome-applets-2. 100% |=========================| 7.1 MB    00:14
(95/96): system-config-la 100% |=========================|  50 kB    00:00
(96/96): system-config-ki 100% |=========================| 951 kB    00:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Traceback (most recent call last):
  File "/usr/bin/yum", line 15, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 149, in main
    base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 651, in doTransaction
    self.runTransaction(cb=cb)
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 333, in runTransaction

NameError: global name 'yum' is not defined
[root@white 11:51:27 ~]# 


Subsets of the entire set of packages have install successfully.  I'll
continue whittling down the list until the entire list installs or a bad
package is found. (will finish before submitting this bug report)

Once there was only 49 packages remaining, yum update installed without
problems.

512MB RAM, only 28KB swapped (yes, KB).

Comment 1 Jeremy Katz 2005-04-27 20:21:26 UTC
Caused by a silly namespace problem already fixed in upstream CVS and will be in
2.3.3.  The root cause is likely that you didn't have enough space on / for all
of the updates.