| Summary: | LogrotateTest Error and Fail on x86-64-lsb | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Beth Flanagan <elizabeth.flanagan> |
| Component: | Scripts and Tools | Assignee: | Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez> |
| Status: | VERIFIED FIXED | QA Contact: | Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu> |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | bogdanx.a.voiculescu, ross.burton |
| Version: | 1.7.3 | ||
| Target Milestone: | 2.0 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
| Bug Depends on: | |||
| Bug Blocks: | 7983 | ||
|
Description
Beth Flanagan
2015-09-07 12:31:53 UTC
Another issue coming from https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64-lsb/builds/502 | ====================================================================== | FAIL: test_2_logrotate (oeqa.runtime.logrotate.LogrotateTest) | ---------------------------------------------------------------------- | Traceback (most recent call last): | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/utils/decorators.py", line 102, in wrapped_f | return func(*args) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/utils/decorators.py", line 90, in wrapped_f | return f(*args) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/runtime/logrotate.py", line 26, in test_2_logrotate | self.assertEqual(status, 0, msg = "logrotate service could not be reloaded. Status and output: %s and %s" % (status, output)) | AssertionError: 143 != 0 : logrotate service could not be reloaded. Status and output: 143 and | Process killed - no output for 300 seconds. Total running time: 300 seconds. | | ---------------------------------------------------------------------- Still investigating the root cause. Seems to be a random failure. Since Sep/16. this issue has not shown again. Unfortunately, when I tried to the log from Sep/16, the log was already removed, so I have no system data to check. I will keep monitoring. There are two problem not related to logrotate but the logrotate unit tests helped to bring them out 1) @skip* decorators: A patch sent t to the mailing list titled '[PATCH] oeqa/utils/decorators: Append the testname without the full path' which allows indicating unit tests without full path. This will prevent running test_2_logrotate if this depends on test_1_logrotate_setup through the decorator @skipUnlessPassed, as observed on https://bugzilla.yoctoproject.org/show_bug.cgi?id=8264#c0 2) timeouts: sometimes, there are timeouts when running either mkdir or logrotate commands. I do not know for sure what is causing this type of failures, but it may the case that the connection (ssh) is being lost for a while, so timeout is triggered. This is not related to the logrotate package, it is a connectivity issue and should be reported as a separate bug. Log reported on https://bugzilla.yoctoproject.org/show_bug.cgi?id=8264#c1 Fixed in build nightly-x86-64-lsb #528: https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64-lsb/builds/528/steps/Running%20Sanity%20Tests/logs/stdio | test_1_logrotate_setup (oeqa.runtime.logrotate.LogrotateTest) ... ok | test_2_logrotate (oeqa.runtime.logrotate.LogrotateTest) ... ok |