Bug 1148163
Summary: | checksum verification in spacewalk-data-fsck does not work | |||
---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Stephan Dühr <stephan.duehr> | |
Component: | Server | Assignee: | Michael Mráka <mmraka> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 2.2 | CC: | cperry, fabiano.martins, pstudeni | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | spacewalk-backend-2.3.18-1 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1148439 (view as bug list) | Environment: | ||
Last Closed: | 2015-04-14 19:03:35 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: | 1207293 |
Description
Stephan Dühr
2014-09-30 19:56:58 UTC
Need to change /usr/bin/spacewalk-data-fsck for debug
@@ -218,7 +218,7 @@
h.update(fp.read())
file_checksum = h.hexdigest()
fp.close()
- except:
+ except IndexError:
file_checksum = None
ret = 0
if file_checksum != checksum:
I get following traceback:
>> spacewalk-data-fsck
Traceback (most recent call last):
File "/usr/bin/spacewalk-data-fsck", line 312, in <module>
exit_value += check_db_vs_disk(options)
File "/usr/bin/spacewalk-data-fsck", line 109, in check_db_vs_disk
row['checksum_type'], row['checksum'])
File "/usr/bin/spacewalk-data-fsck", line 217, in check_disk_checksum
h = checksum.getHashlibInstance(checksum_type, False)
AttributeError: 'str' object has no attribute 'getHashlibInstance'
package: spacewalk-backend-tools-2.3.3-10.el6sat.noarch
Fixed in spacewalk master by commit 34025800df02297be963b9dade036cda20b498d2 1148163 - fixed variable name Moving bugs to ON_QA as we move to release Spacewalk 2.3 Spacewalk 2.3 has been released. See https://fedorahosted.org/spacewalk/wiki/ReleaseNotes23 |