Changeset 65513 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jan 29, 2017 8:22:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r65386 r65513 2374 2374 return fRc; 2375 2375 2376 def annotateAndUploadProcessReport(self, sProcessReport ):2376 def annotateAndUploadProcessReport(self, sProcessReport, sFilename, sKind, sDesc): 2377 2377 """ 2378 2378 Annotates the given VM process report and uploads it if successfull. … … 2388 2388 sReportDbgSym = oResolver.annotateReport(sProcessReport); 2389 2389 if sReportDbgSym is not None: 2390 reporter.addLogString(sReportDbgSym, 'vmprocess.log', 'process/report/vm', 'Annotated VM process state');2390 reporter.addLogString(sReportDbgSym, sFilename, sKind, sDesc); 2391 2391 fRc = True; 2392 2392 else: … … 2598 2598 # requires memory too and seems to wedge. 2599 2599 # 2600 sHostProcessInfo = None; 2601 sLastScreenshotPath = None; 2602 sOsKernelLog = None; 2603 sVgaText = None; 2604 asMiscInfos = []; 2600 sHostProcessInfo = None; 2601 sHostProcessInfoHung = None; 2602 sLastScreenshotPath = None; 2603 sOsKernelLog = None; 2604 sVgaText = None; 2605 asMiscInfos = []; 2605 2606 2606 2607 if not oSession.fHostMemoryLow: … … 2706 2707 uPid = oSession.getPid(); 2707 2708 if uPid is not None: 2709 # 2710 # Collect some information about the VM process first to have 2711 # some state information for further investigation why powering off failed. 2712 # 2713 sHostProcessInfoHung = utils.processGetInfo(uPid, fSudo = True); 2714 2715 # Exterminate... 2708 2716 reporter.error('terminateVmBySession: Terminating PID %u (VM %s)' % (uPid, oSession.sName)); 2709 2717 fClose = base.processTerminate(uPid); … … 2765 2773 if sHostProcessInfo is not None: 2766 2774 reporter.log('Trying to annotate the VM process report, please stand by...'); 2767 fRcTmp = self.annotateAndUploadProcessReport(sHostProcessInfo); 2775 fRcTmp = self.annotateAndUploadProcessReport(sHostProcessInfo, 'vmprocess.log', 2776 'process/report/vm', 'Annotated VM process state'); 2768 2777 # Upload the raw log for manual annotation in case resolving failed. 2769 2778 if not fRcTmp: 2770 2779 reporter.log('Failed to annotate VM process report, uploading raw report'); 2771 2780 reporter.addLogString(sHostProcessInfo, 'vmprocess.log', 'process/report/vm', 'VM process state'); 2781 2782 # Add the host process info for failed power off attempts if we were able to retrieve it. 2783 if sHostProcessInfoHung is not None: 2784 reporter.log('Trying to annotate the hung VM process report, please stand by...'); 2785 fRcTmp = self.annotateAndUploadProcessReport(sHostProcessInfoHung, 'vmprocess-hung.log', 2786 'process/report/vm', 'Annotated hung VM process state'); 2787 # Upload the raw log for manual annotation in case resolving failed. 2788 if not fRcTmp: 2789 reporter.log('Failed to annotate hung VM process report, uploading raw report'); 2790 reporter.addLogString(sHostProcessInfoHung, 'vmprocess-hung.log', 'process/report/vm', 2791 'Hung VM process state'); 2772 2792 2773 2793 return fRc;
Note:
See TracChangeset
for help on using the changeset viewer.