Bug 893034
Summary: | yum traceback with python-2.6.6-29.el6_2.2 and higher + missing /dev/urandom | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Patrik Kis <pkis> | ||||
Component: | python | Assignee: | Robert Kuska <rkuska> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jan Kepler <jkejda> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 6.4 | CC: | james.antill, jberan, jkejda, lnovich, richard, rkuska, tcallawa, zpavlas | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | python-2.6.6-47.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 907383 910674 1112104 (view as bug list) | Environment: | |||||
Last Closed: | 2013-11-21 09:13:49 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 907383 | ||||||
Attachments: |
|
Description
Patrik Kis
2013-01-08 13:47:02 UTC
Probably python-only issue. Yum needs /dev/random only indirectly, via tempfile. I bet this would traceback, too: ~$ strace python -m tempfile 2>&1|grep urandom open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 4 IMO, os.urandom() should never raise exceptions, but acquire entropy by other means when /dev/urandom is not available. This Python bug may be the root cause of the problem: * http://bugs.python.org/issue15340 I encountered a similar error while installing a python-twisted in a Fedora18 chroot eg {{{ sudo yum --releasever=18 --nogpg --installroot=/srv/fedora18 --disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release openssh python-twisted ... Installing : python-twisted-conch-12.1.0-2.fc18.x86_64 146/151 Traceback (most recent call last): File "/usr/libexec/twisted-dropin-cache", line 13, in <module> from twisted.plugin import IPlugin, getCache File "/usr/lib64/python2.7/site-packages/twisted/plugin.py", line 34, in <module> from twisted.python.modules import getModule File "/usr/lib64/python2.7/site-packages/twisted/python/modules.py", line 68, in <module> from twisted.python.filepath import FilePath, UnlistableError File "/usr/lib64/python2.7/site-packages/twisted/python/filepath.py", line 11, in <module> import random File "/usr/lib64/python2.7/random.py", line 881, in <module> _inst = Random() File "/usr/lib64/python2.7/random.py", line 97, in __init__ self.seed(x) File "/usr/lib64/python2.7/random.py", line 111, in seed a = long(_hexlify(_urandom(16)), 16) OSError: [Errno 2] No such file or directory: '/dev/urandom' }}} Created attachment 764520 [details]
Proposed patch - urandom proper exception
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1582.html |