Bug 747736 - v7 test 'profiler' terminates with backtrace
Summary: v7 test 'profiler' terminates with backtrace
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 6.1
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-20 21:27 UTC by D. Marlin
Modified: 2011-11-08 15:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In v7 1.3, failing to umount /dev/oprofile may cause traceback when running profiler test, this issue has been fixed in v7 1.4, now no more traceback be printed when fail to umount /dev/oprofile and this failure is ignored in profiler test.
Clone Of:
Environment:
Last Closed: 2011-11-08 15:43:22 UTC


Attachments (Terms of Use)
log from v7 test run on rhelrt-11 in the farm (98.28 KB, text/x-log)
2011-10-20 21:31 UTC, D. Marlin
no flags Details
profiler patch adding exception handler (1.09 KB, patch)
2011-11-03 16:02 UTC, Greg Nichols
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1436 0 normal SHIPPED_LIVE v7 bug fix and enhancement update 2011-11-08 23:28:41 UTC

Description D. Marlin 2011-10-20 21:27:45 UTC
Description of problem:

When performing a manual test run in the farm, the v7 profiler test terminates with a backtrace.  Disabling the profiler test allows the v7 test run to complete.


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

  kernel-rt-3.0.4-rt14.27.el6rt.x86_64
  v7 Version 1.4 Release 30

How reproducible:

  Always

Steps to Reproduce:
1. v7 clean
2. v7 plan --server rhel6-1.farm.hsv.redhat.com
3. v7 certify --mode auto
  

Actual results:
    :
running profiler on 
installing test from /usr/share/v7/tests/profiler into /tmp/v7-profiler-WJZn5h
mkdir -p /tmp/v7-profiler-WJZn5h
cp -a runtest.sh profiler.py Makefile	 Makefile /tmp/v7-profiler-WJZn5h
cp: warning: source file `Makefile' specified more than once
make: `build' is up to date.
Test Parameters: OUTPUTFILE=/var/log/v7/runs/1/profiler/output.log DEVICE= TESTSERVER=rhel6-1.farm.hsv.redhat.com RUNMODE=auto DEBUG=off UDI= 

Subtest Initialize:
Linux image for 3.0.4-rt14.27.el6rt.x86_64 not found
Error: could not read/set NMI Watchdog
"cat /proc/sys/kernel/nmi_watchdog" no match for regular expression None
PASS

Subtest Reset:

==== START: Errors during reset may be ignored. ====
Warning: 
"opcontrol --shutdown" has output on stderr
Verified data has beed removed
Traceback (most recent call last):
  File "/usr/bin/v7", line 45, in <module>
    success = v7.do(args)
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 193, in do
    result = self.commands[self.command]()
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 859, in doCertify
    return self._doRun(tests)
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 715, in _doRun
    returnValue = self.runTest(tmpDirectory, test, run, outputFilePath)
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 1132, in runTest
    rv = test.run()
  File "/usr/share/v7/tests/profiler/profiler.py", line 282, in run
    if success and not self.runOProfileStartup():
  File "/usr/share/v7/tests/profiler/profiler.py", line 264, in runOProfileStartup
    if not self.runSubTest(self.resetOProfile, "Reset"):
  File "/usr/share/v7/lib/v7/test.py", line 428, in runSubTest
    result = subtestFunction()
  File "/usr/share/v7/tests/profiler/profiler.py", line 121, in resetOProfile
    Command("/bin/umount /dev/oprofile").echo()
  File "/usr/share/v7/lib/v7/command.py", line 94, in echo
    self._checkErrors()
  File "/usr/share/v7/lib/v7/command.py", line 69, in _checkErrors
    raise V7CommandErrorOutput(self)
v7.command.V7CommandErrorOutput: "/bin/umount /dev/oprofile" has output on stderr


Expected results:

  No error from profiler test.


Additional info:

Comment 1 D. Marlin 2011-10-20 21:31:23 UTC
Created attachment 529389 [details]
log from v7 test run on rhelrt-11 in the farm

Comment 3 Greg Nichols 2011-11-03 16:02:23 UTC
Created attachment 531593 [details]
profiler patch adding exception handler

The traceback is when the test is attempting to reset oprofile.  Errors there can be ignored - the patch just adds an exception handler with a "pass" in the except block.

Comment 6 Caspar Zhang 2011-11-04 04:16:57 UTC
    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:
In v7 1.3, failing to umount /dev/oprofile may cause traceback when running profiler test, this issue has been fixed in v7 1.4, now no more traceback be printed when fail to umount /dev/oprofile and this failure is ignored in profiler test.

Comment 8 errata-xmlrpc 2011-11-08 15:43:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1436.html


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