Bug 10765 - patchtest: patchtest guest execution yields a 'Too many open files' message before halting
Summary: patchtest: patchtest guest execution yields a 'Too many open files' message b...
Status: RESOLVED NOTABUG
Alias: None
Product: Patchwork/Patchtest
Classification: Yocto Project Subprojects
Component: Patchtest (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M2
Assignee: Leonardo Sandoval Gonzalez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-12-05 16:49 UTC by Daniela Plascencia
Modified: 2017-12-06 17:30 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniela Plascencia 2016-12-05 16:49:28 UTC
When executing patchtest on guest, the suite starts testing mboxes located at $BASE/mboxes, but after testing around half of them, the guest stops the patchtest execution with the following message:

/patchtest/mboxes/4134.1.mbox

/patchtest/mboxes/4135.1.mbox
/patchtest/patchtest/scripts/test-mboxes: line 86: /patchtest/results/4135.1.mbox.log: Too many open files
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal

Right after halting, $BASE/results contains empty.json and .log files for the mboxes that couldn't be tested.
Comment 1 Daniela Plascencia 2016-12-21 16:03:17 UTC
When manually executed in guest, the following exception is raised before the suite tests all the mboxes, causing it to stop.

----------------------------------------------------------------------
Ran 4 tests in 0.197s

OK
Traceback (most recent call last):
  File "/patchtest/patchtest/patchtest", line 154, in _runner
    result = runner.run(suite)
  File "/usr/lib/python2.7/unittest/runner.py", line 149, in run
    startTestRun()
  File "/patchtest/patchtest/patchtest", line 101, in startTestRun
    self.repo.merge()
  File "/patchtest/patchtest/lib/patchtestrepo.py", line 161, in merge
    'updateenv': {'PTRESOURCE':self._patch.path}})
  File "/patchtest/patchtest/lib/patchtestrepo.py", line 116, in _exec
    raise ce
CmdException
None
patchtest failed, removing patchtest branch
Comment 2 Leonardo Sandoval Gonzalez 2016-12-21 16:22:52 UTC
(In reply to comment #1)
> When manually executed in guest, the following exception is raised before
> the suite tests all the mboxes, causing it to stop.
> 
> ----------------------------------------------------------------------
> Ran 4 tests in 0.197s
> 
> OK
> Traceback (most recent call last):
>   File "/patchtest/patchtest/patchtest", line 154, in _runner
>     result = runner.run(suite)
>   File "/usr/lib/python2.7/unittest/runner.py", line 149, in run
>     startTestRun()
>   File "/patchtest/patchtest/patchtest", line 101, in startTestRun
>     self.repo.merge()
>   File "/patchtest/patchtest/lib/patchtestrepo.py", line 161, in merge
>     'updateenv': {'PTRESOURCE':self._patch.path}})
>   File "/patchtest/patchtest/lib/patchtestrepo.py", line 116, in _exec
>     raise ce
> CmdException
> None
> patchtest failed, removing patchtest branch

This is not related to the reported issue. Please file a bug and make sure you provide enough info; also indicate if pt execution @ host has the same issue.
Comment 3 Daniela Plascencia 2016-12-21 23:00:16 UTC
The message no longer appears using the script [1] to create and launch the guest machine. Resolving this as NOTABUG.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/patchtest/tree/scripts/create-guest?h=create-guest