Bug 678946 - error of kpartx make fv_tests fail on RHEL6.1
Summary: error of kpartx make fv_tests fail on RHEL6.1
Keywords:
Status: CLOSED DUPLICATE of bug 682115
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 1.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-21 03:03 UTC by chen yuwen
Modified: 2011-03-04 08:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-04 08:01:15 UTC


Attachments (Terms of Use)

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 ***


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