Bug 626020 - storage test traceback on device size calculation
storage test traceback on device size calculation
Status: CLOSED ERRATA
Product: Red Hat Hardware Certification Program
Classification: Red Hat
Component: Test Suite (tests) (Show other bugs)
1.2
All Linux
low Severity medium
: ---
: ---
Assigned To: Greg Nichols
chen yuwen
:
: 628708 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-21 10:07 EDT by Greg Nichols
Modified: 2010-09-21 07:30 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The storage test no longer returns an error when calculating the device size.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-09-20 08:15:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
storage test patch checking status return before calculation of size (638 bytes, patch)
2010-08-21 10:09 EDT, Greg Nichols
no flags Details | Diff
storage patch on R19 fixing traceback in warning message (560 bytes, patch)
2010-08-23 14:56 EDT, Greg Nichols
no flags Details | Diff

  None (edit)
Description Greg Nichols 2010-08-21 10:07:23 EDT
Description of problem:

On some systems, the storage test has a traceback when calculating device size:

Traceback (most recent call last):
  File "./storage.py", line 478, in ?
    returnValue = test.do(sys.argv)
  File "/usr/share/v7/lib/v7/test.py", line 261, in do
    return self.run()
  File "./storage.py", line 451, in run
    returnValue = self.testRawIO(storageDevice,testdev,minBs,maxBs)
  File "./storage.py", line 368, in testRawIO
    size = self.devSize(testdev)
  File "./storage.py", line 144, in devSize
    output = int(output) / 2
ValueError: invalid literal for int(): cat: /sys/block/mapper/VolGroup00-LogVol01/size: No such file or directory

This happens on both RHEL6 and when storage is run a RHEL5 guest during the fv_storage test.


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

v7 1.2 R18
Comment 1 Greg Nichols 2010-08-21 10:09:18 EDT
Created attachment 440119 [details]
storage test patch checking status return before calculation of size
Comment 3 Gary Case 2010-08-23 14:47:08 EDT
I just tested with -19 on a fresh install of snap 12 x86_64 and I'm still seeing a similar error:

*** Testing raw I/O performance on sda2
Traceback (most recent call last):
  File "./storage.py", line 480, in <module>
    returnValue = test.do(sys.argv)
  File "/usr/share/v7/lib/v7/test.py", line 261, in do
    return self.run()
  File "./storage.py", line 453, in run
    returnValue = self.testRawIO(storageDevice,testdev,minBs,maxBs)
  File "./storage.py", line 370, in testRawIO
    size = self.devSize(testdev)
  File "./storage.py", line 150, in devSize
    print "Warning: can not get device size from /sys/block/%s/size, defaulting to %u. " % (testDevice, size)
NameError: global name 'testDevice' is not defined
...finished running ./storage.py, exit code=1
</output>

This box has no LVM in the mix. It's root/boot/swap, ext4/ext4/swap

-Gary
Comment 4 Greg Nichols 2010-08-23 14:54:23 EDT
That traceback is introduced by the fix in R19.
Comment 5 Greg Nichols 2010-08-23 14:56:13 EDT
Created attachment 440459 [details]
storage patch on R19 fixing traceback in warning message
Comment 6 Gary Case 2010-08-23 16:22:32 EDT
Applying the last storage patch posted gave me a passing storage result with a re-enabled swap partition after the test. It works!
Comment 8 Greg Nichols 2010-08-30 22:43:56 EDT
*** Bug 628708 has been marked as a duplicate of this bug. ***
Comment 10 chen yuwen 2010-09-13 02:22:59 EDT
reproduced in v7-1.2-18 and verified in v7-1.2-24.
Comment 12 errata-xmlrpc 2010-09-20 08:15:05 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0702.html
Comment 13 Jaromir Hradilek 2010-09-21 07:30:18 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The storage test no longer returns an error when calculating the device size.

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