Bug 678946

Summary: error of kpartx make fv_tests fail on RHEL6.1
Product: [Retired] Red Hat Hardware Certification Program Reporter: chen yuwen <yuchen>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2CC: czhang, rlandry, ykun
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-04 08:01:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description chen yuwen 2011-02-21 03:03:32 UTC
Description of problem:
fv_tests all fail on RHEL6.1.
The issues are almost the same.

fv_core test log: 
Test Parameters: DEBUG=off RUNMODE=normal OUTPUTFILE=/var/log/v7/runs/1/fv_core/output.log DEVICE= TESTSERVER=10.66.65.181 
/proc/cpuinfo has vmx flag
Testing kvm virtualization
Starting libvirtd daemon: 
libvirtd is running
Verified that guest v7x86_64 is not running
Verified: /var/lib/libvirt/images/v7data.img
Verified: /var/lib/libvirt/images/v7x86_64.img
Verified: /etc/libvirt/qemu/v7x86_64.xml
Guest files verified
Unmounting /mnt
"umount /mnt" has output on stderr
Error: could not unmount data image.
Using loopback device /dev/loop1 for guest data image
Error: could not mount data image
"kpartx -av /dev/loop1" has output on stderr

# kpartx -av /dev/loop1
read error, sector 0
llseek error
llseek error
llseek error

But run command: virsh start v7x86_64. 
Then the fv_tests PASS.

Version-Release number of selected component (if applicable):
RHEL6.1-20110210.1
v7-1.3-10

How reproducible:
always

Steps to Reproduce:
1. provision x86_64 system with RHEL6.1-20110210.1 and install packages libvirt libvirt-python python-virtinst kvm-tools
2. install v7-1.3-10 and dependenies
3. run: v7 run -t fv_*
  
Actual results:
fv_tests all FAIL

Expected results:
fv_tests all PASS

Additional info:

Comment 1 chen yuwen 2011-02-23 09:11:46 UTC
Exception occured in fvtest.py mountDataImage() and abort: 
290             Command("kpartx -av " + self.loopBackDevice).echo()

But run "kpartx -av /dev/loop0" on prompt successful:
# kpartx -av /dev/loop0
add map loop0p1 (253:3): 0 192717 linear /dev/loop0 63

Comment 3 chen yuwen 2011-03-03 07:25:14 UTC
The error in RHEL6.1-20110224.2 is the same.
But the error don't occur in RHEL5.6.

Comment 5 chen yuwen 2011-03-04 02:28:16 UTC
In test of #Description,  the loopBackDevice /dev/loop0 was already in use. So the loopBackDevice was /dev/loop1. 
#comment 2 was another test on another machine. The loopBackDevice was /dev/loop0. But the issue was the same.

Comment 6 chen yuwen 2011-03-04 08:01:15 UTC

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