Bug 562864
Summary: | "Error: OverflowError caught!" when running rhn-satellite-exporter | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Thomas Cameron <tcameron> | ||||
Component: | Satellite Synchronization | Assignee: | Milan Zázrivec <mzazrivec> | ||||
Status: | CLOSED ERRATA | QA Contact: | Petr Sklenar <psklenar> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 530 | CC: | cperry, jpazdziora, psklenar | ||||
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: | 2010-03-22 12:05:03 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 531600 | ||||||
Attachments: |
|
Description
Thomas Cameron
2010-02-08 15:39:42 UTC
Created attachment 396036 [details]
patch for Satellite 5.3.0
This is a valid bug, we try to read whole DVD iso at once, which is
not something python can handle. Full traceback:
Exception Handler Information
Traceback (most recent call last):
File "/usr/share/rhn/satellite_tools/disk_dumper/iss.py", line 1121, in main
md5_val = computeMD5sum(os.path.join(iso_output, file))
File "/usr/share/rhn/satellite_tools/disk_dumper/iss.py", line 1181, in computeMD5sum
filedata = fileobj.read()
OverflowError: requested number of bytes is more than a Python string can hold
I'm attaching a patch for Satellite 5.3.0. In current Spacewalk (ver. 0.8)
this problem was already resolved in commit
e61a6e9fc71609f504efb37b0487393a622aee43
which replaced computeMD5sum with getFileChecksum, written in a more
sane way.
satellite.git: 1b27d51317303e9a1be80bca0ffe4b0a775c0d5b spacewalk-backend-0.5.28-40.1 testing procedure: 1. synced full rhel-x86_64-server-5 channel with some children 2. rhn-satellite-exporter -d /var/satellite/export/rhel-5-x86_64 --make-isos=dvd --hard-links \ -c rhel-x86_64-server-5 \ -c rhel-x86_64-server-vt-5 \ -c rhn-tools-rhel-x86_64-server-5 \ -c rhel-x86_64-server-cluster-5 \ -c rhel-x86_64-server-cluster-storage-5 \ -c rhel-x86_64-server-fastrack-5 \ -c rhel-x86_64-server-productivity-5 \ -c rhel-x86_64-server-supplementary-5 OLD: Error: OverflowError caught! + md5sum file was empty NEW, spacewalk-backend-0.5.28-40.1 : md5sum file is correct with right md5 of isos rhts test was created with custom channel containing 5gigs of packages and its exporting to dvd.iso RHTSdone=/CoreOS/RHN-Satellite/Regression/bz562864-Error-OverflowError-caught-when-running CVS: http://cvs.devel.redhat.com/cgi-bin/cvsweb.cgi/tests/RHN-Satellite/rhn-satellite-exporter/Regression/bz562864-Error-OverflowError-caught-when-running/ ./manage-channel.py <RHN_USER> <RHN_PASS> https://<RHN_SERVER>/rpc/api CREATE mychannel i386 rhnpush -d dir_with_many_packages -c mychannel --server http://<RHN_SERVER>/APP --nosig --username=<RHN_USER> --password=<RHN_PASS> --force rhn-satellite-exporter -d /var/satellite/export/mychannel --make-isos=dvd --hard-links -c mychannel OLD: fails NEW,spacewalk-backend-0.5.28-40.1: PASSes spacewalk-backend-0.5.28-48 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0160.html |