Bug 692135 - Image failed media check
Summary: Image failed media check
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: isomd5sum
Version: 15
Hardware: i386
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radek Vykydal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedNTH https://fedoraproject.org...
: 692272 (view as bug list)
Depends On:
Blocks: F15Beta-accepted, F15BetaFreezeExcept
TreeView+ depends on / blocked
 
Reported: 2011-03-30 14:05 UTC by Kamil Páral
Modified: 2011-05-03 09:22 UTC (History)
11 users (show)

Fixed In Version: isomd5sum-1.0.7-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-15 21:27:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
error dialog (6.02 KB, image/png)
2011-03-30 14:05 UTC, Kamil Páral
no flags Details
anaconda.log (3.18 KB, text/plain)
2011-03-30 14:06 UTC, Kamil Páral
no flags Details
program.log (5.16 KB, text/plain)
2011-03-30 14:06 UTC, Kamil Páral
no flags Details
storage.log (2.48 KB, text/plain)
2011-03-30 14:06 UTC, Kamil Páral
no flags Details
syslog (45.10 KB, text/plain)
2011-03-30 14:06 UTC, Kamil Páral
no flags Details
results screenshot with debugging info (10.24 KB, image/png)
2011-04-06 16:19 UTC, Radek Vykydal
no flags Details

Description Kamil Páral 2011-03-30 14:05:27 UTC
Created attachment 488766 [details]
error dialog

Description of problem:
I downloaded Fedora 15 Beta TC1 DVD i386 ISO. It has the correct SHA1 checksum:
48c327d60738f4ec6be68af943642d91372ae09e129edae4c6840bf4bfbfc1c4 *Fedora-15-Beta-i386-DVD.iso

When I load it in virt-manager using KVM and run media check on it, it reports the media as corrupted. But the checksum matches. Where's the problem?

On top of that, after I receive "image is corrupted warning", the installer starts to run! (I would expect it abort the installation).

Version-Release number of selected component (if applicable):
anaconda 15.25

How reproducible:
always

Steps to Reproduce:
1. load Fedora 15 Beta TC1 DVD i386 ISO in virt-manager and run media check

Comment 1 Kamil Páral 2011-03-30 14:06:08 UTC
Created attachment 488767 [details]
anaconda.log

Comment 2 Kamil Páral 2011-03-30 14:06:24 UTC
Created attachment 488768 [details]
program.log

Comment 3 Kamil Páral 2011-03-30 14:06:38 UTC
Created attachment 488769 [details]
storage.log

Comment 4 Kamil Páral 2011-03-30 14:06:52 UTC
Created attachment 488770 [details]
syslog

Comment 5 Kamil Páral 2011-03-30 14:11:51 UTC
As a side note, regardless of the warning I have performed the default installation from that media and system boots fine.

Comment 6 Kamil Páral 2011-03-30 15:00:53 UTC
Another note, x86_64 ISO media check runs fine. The issue is just with i386 one.

Comment 7 Chris Lumens 2011-03-30 20:55:28 UTC
Is this reproducible outside of the anaconda environment?  You can install the isomd5sum package and run checkisomd5 on either the ISO image or the block device itself.

Comment 8 Chris Lumens 2011-03-30 22:54:34 UTC
*** Bug 692272 has been marked as a duplicate of this bug. ***

Comment 9 Andre Robatino 2011-03-31 00:00:29 UTC
(In reply to comment #7)
> Is this reproducible outside of the anaconda environment?  You can install the
> isomd5sum package and run checkisomd5 on either the ISO image or the block
> device itself.

The answer is yes - the i386 DVD passes this test as I recorded on

https://fedoraproject.org/wiki/Test_Results:Fedora_15_Beta_TC1_Install

under the test

https://fedoraproject.org/wiki/QA:Testcase_Mediakit_ISO_Checksums

This problem is not KVM-specific since I also see it using VirtualBox 4.0.4, as mentioned in bug 692272.

Comment 10 Andre Robatino 2011-03-31 00:03:24 UTC
(In reply to comment #9)

> The answer is yes - the i386 DVD passes this test as I recorded on

Sorry, should have said "the answer is no" since it passes with the external checkisomd5.

Comment 11 Kamil Páral 2011-03-31 08:54:10 UTC
$ checkisomd5 /var/lib/libvirt/images/Fedora-15-Beta-i386-DVD.iso 
Press [Esc] to abort check.

The media check is complete, the result is: PASS.

It is OK to use this media.

Comment 12 Kamil Páral 2011-03-31 09:34:49 UTC
# checkisomd5 /dev/cdrom 
Press [Esc] to abort check.

The media check is complete, the result is: PASS.

It is OK to use this media.

Comment 13 Kamil Páral 2011-03-31 09:51:37 UTC
I performed the anaconda media check on bare metal and it also fails the test.

Comment 14 Peter Jones 2011-03-31 17:49:04 UTC
Are the x86_64 machine and the i386 machine you tested on the same machine?

Comment 15 Kamil Páral 2011-04-01 08:36:59 UTC
(In reply to comment #14)
> Are the x86_64 machine and the i386 machine you tested on the same machine?

Sorry, I don't understand your question. I tested x86_64 ISO in KVM (running on host PC1) and it passes anaconda check. I tested i386 ISO in KVM (on host PC1) and it fails anaconda check. I also ran checkisomd5 on i386 ISO directly on host PC1 and it passes the test. Also burning the i386 ISO and checking it with checkisomd5 on host PC1 passes the test. Then I inserted the burned i386 CD into a bare-metal host PC2, booted, and performed the anaconda check, which fails again.

Result: anaconda check fails for i386 ISO whether in KVM or on bare-metal host, but running checkisomd5 directly passes. x86_64 ISO was tested inside anaconda inside KVM only, and that passes.

Does that answer the question?

Comment 16 Tim Flink 2011-04-01 17:56:25 UTC
Discussed at the 2011-04-01 blocker bug review meeting. This bug does not hit any blocker criteria but it would be really nice to see this fixed. Rejected as blocker but accepting it as nth for F15 beta.

Comment 17 Bruno Wolff III 2011-04-01 17:57:29 UTC
This might be related to bug 678609.

Comment 18 Radek Vykydal 2011-04-04 11:24:55 UTC
I checked with checkisomd5 of isomd5sum-1.0.6-3.fc15 in installer environment of Fedora-15-Beta-i386-DVD.iso (scp-ed in tty2) and the result was FAIL.

Comment 19 Radek Vykydal 2011-04-04 14:15:58 UTC
(In reply to comment #18)
> I checked with checkisomd5 of isomd5sum-1.0.6-3.fc15 in installer environment
> of Fedora-15-Beta-i386-DVD.iso (scp-ed in tty2) and the result was FAIL.
This was in a 32-bit (vmware) virtual machine, checking block device /dev/sr0.
After installing and reboot, the check also fails both when checking /dev/sr0 and image file.

In installed 64-bit system (KVM virtual machine), checkisomd5 passes for 64-bit image (both for /dev/sr0 and image file), and for 32-bit image it passes for image file but fails for /dev/sr0.

Comment 20 Radek Vykydal 2011-04-06 16:19:48 UTC
Created attachment 490335 [details]
results screenshot with debugging info

Seems like some kind of memory corruption? I uncommented few debugging printf lines in isomd5sum code, and found that between

libcheckisomd5.c:checkmd5sum:200:
    printf("Mediasum = %s\n",mediasum);

and

libcheckisomd5.c:checkmd5sum:290:
    printf("mediasum, computedsum = %s %s\n", mediasum, computedsum);

    if (strcmp(mediasum, computedsum))
        return ISOMD5SUM_CHECK_FAILED;
    else
        return ISOMD5SUM_CHECK_PASSED;

mediasum is wiped out/corrupted, see the attachment

Comment 21 Radek Vykydal 2011-04-07 11:03:48 UTC
Patch with fix sent for review:
http://www.redhat.com/archives/anaconda-devel-list/2011-April/msg00103.html

Comment 22 Andre Robatino 2011-04-08 09:31:45 UTC
With the 15 Beta RC1 DVD, i386 fails mediacheck and x86_64 passes, just as with TC1.

Comment 23 Radek Vykydal 2011-04-08 10:15:08 UTC
This should be fixed in isomd5sum-1.0.7-1.

Comment 24 Fedora Update System 2011-04-08 10:29:26 UTC
isomd5sum-1.0.7-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/isomd5sum-1.0.7-1.fc15

Comment 25 James Laska 2011-04-08 14:40:20 UTC
I built a custom i386 DVD.iso and included isomd5sum-1.0.7-1.fc15 during the pungi compose, the reported problem appears to still exists.

Does anaconda need to be rebuilt with the updated isomd5sum for this to work, or am I missing a step during pungi compose?

Comment 26 Bruno Wolff III 2011-04-08 18:34:39 UTC
I tested this running it on the command line for a live image I built and it went from failing to before the update to succeeding after the update to 1.0.7-1.

Comment 27 Andre Robatino 2011-04-09 02:52:43 UTC
Same problem on 15 Beta RC2 DVDs - mediacheck fails on i386 but passes on x86_64. I don't know if the above fix was included.

Comment 28 Fedora Update System 2011-04-09 05:27:40 UTC
Package isomd5sum-1.0.7-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing isomd5sum-1.0.7-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/isomd5sum-1.0.7-1.fc15
then log in and leave karma (feedback).

Comment 29 Radek Vykydal 2011-04-11 09:24:13 UTC
(In reply to comment #25)
> I built a custom i386 DVD.iso and included isomd5sum-1.0.7-1.fc15 during the
> pungi compose, the reported problem appears to still exists.
> 
> Does anaconda need to be rebuilt with the updated isomd5sum for this to work,
> or am I missing a step during pungi compose?

Yes, anaconda needs to be rebuilt with the new isomd5sum-devel.

Comment 30 Fedora Update System 2011-04-15 21:27:24 UTC
isomd5sum-1.0.7-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 31 Andre Robatino 2011-05-03 09:22:04 UTC
Confirmed that mediacheck works in 15-Final.TC1 DVD (both i386 and x86_64) as VirtualBox 4.0.6 guest.


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