Bug 690763

Summary: RHEL6.1 PV guest crash with "file:iso" vitual cdrom
Product: Red Hat Enterprise Linux 6 Reporter: Yuyu Zhou <yuzhou>
Component: kernelAssignee: Red Hat Kernel Manager <kernel-mgr>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: drjones, leiwang, mrezanin, mshao, pbonzini, qwan, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-31 16:17:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
xend log
none
dmesg log
none
xm dmesg log
none
qemu log
none
guest console log while crashing none

Description Yuyu Zhou 2011-03-25 11:01:05 UTC
Description of problem:
Start a RHEL6.1 PV guest with "file:iso" virtual cdrom cause guest crash.

Version-Release number of selected component (if applicable):
Host:
xen-3.0.3-126.el5 also xen-3.0.3-120.el5
kernel-xen-2.6.18-250.el5
Guest:
RHEL-Server-6.1-32-20110317.1 PV guest.

How reproducible:
100%

Steps to Reproduce:
1. Edit guest configure file with:
disk = ['file:/path/your_vm.raw,xvda,w','file:/path/test.iso,hdc:cdrom,r']
2. Start the guest with 'xm cr your.conf'

Actual results:
VM crashed.

Expected results:
VM should boot and run successfully.

Comment 1 Yuyu Zhou 2011-03-25 11:01:42 UTC
Created attachment 487522 [details]
xend log

Comment 2 Yuyu Zhou 2011-03-25 11:02:16 UTC
Created attachment 487524 [details]
dmesg log

Comment 3 Yuyu Zhou 2011-03-25 11:04:00 UTC
Created attachment 487527 [details]
xm dmesg log

Comment 4 Yuyu Zhou 2011-03-25 11:04:30 UTC
Created attachment 487528 [details]
qemu log

Comment 5 Yuyu Zhou 2011-03-25 11:19:47 UTC
Addition Info:
Start a RHEL5 PV guest with "file:iso" virtual cdrom in the same environment do not cause guest crash.

Comment 6 Miroslav Rezanina 2011-03-29 06:32:44 UTC
Just a note - PV guest do not support cdroms so it is visible as normal disk. It should not be used for PV guest.

Comment 7 Paolo Bonzini 2011-03-29 10:15:10 UTC
Does the crash happen with file:/path/test.iso,hdc,r (i.e. without ":cdrom"?)

Comment 8 Yuyu Zhou 2011-03-29 11:46:37 UTC
Hi, Paolo
no matter :cdrom option specified or not, but the hdc make the case different, guest boot up successfully with hdb and hdd. 

Another bug 691339 may be relevant.

Comment 9 Qixiang Wan 2011-03-29 11:53:12 UTC
Created attachment 488417 [details]
guest console log while crashing

Comment 10 Qixiang Wan 2011-03-29 11:58:51 UTC
One thing different with bug 691339 is 'xen_emul_unplug=never' didn't work in this case, guest still crash with xen_emul_unplug=never specified.

Comment 11 Miroslav Rezanina 2011-03-31 13:37:52 UTC
Reassigning to rhel6 kernel as this problem is experienced only with rhel6 guests (tested RHEL 6 GA, RHEL6.1-20110317.1)

Comment 13 Andrew Jones 2011-03-31 16:17:22 UTC
This is a dup of bug 691339. The WARNING and then eventual BUG match exactly with the -125 kernel.

dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
xlblk_init: register_blkdev major: 202 
blkfront: xvda: barriers disabled
 xvda: xvda1 xvda2 xvda3
blkfront: xvda: barriers disabled
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:491 sysfs_add_one+0xc9/0x130() (Not tainted)

...

kernel BUG at fs/sysfs/group.c:65!

*** This bug has been marked as a duplicate of bug 691339 ***