Bug 614496 - yum crashes when /proc is not mounted
Summary: yum crashes when /proc is not mounted
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum   
(Show other bugs)
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Ondrej Moriš
Depends On:
Blocks: 623955
TreeView+ depends on / blocked
Reported: 2010-07-14 15:29 UTC by Issue Tracker
Modified: 2018-11-14 19:24 UTC (History)
8 users (show)

Fixed In Version: yum-3.2.27-13.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 623955 (view as bug list)
Last Closed: 2010-11-10 22:00:52 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Issue Tracker 2010-07-14 15:29:23 UTC
Escalated to Bugzilla from IssueTracker

Comment 1 Issue Tracker 2010-07-14 15:29:25 UTC
Event posted on 07-02-2010 02:08pm EDT by woodard

Description of problem:
if you try to run yum when /proc isn't mounted then it crashes. It should handle the error more gracefully and print an error message rather than crashing.

This happens when trying to update a image used for a virtual client.

bash-4.1# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in <module>
    import yum
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 42, in <module>
    import rpmsack
  File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 24, in <module>
    from rpmUtils import arch
  File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 333, in <module>
    canonArch = getCanonArch()
  File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 329, in getCanonArch
    return getCanonX86_64Arch(arch)
  File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 292, in getCanonX86_64Arch
    f = open("/proc/cpuinfo", "r")
IOError: [Errno 2] No such file or directory: '/proc/cpuinfo'

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
This event sent from IssueTracker by kbaxley  [LLNL (HPC)]
 issue 1095503

Comment 14 releng-rhel@redhat.com 2010-11-10 22:00:52 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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