Bug 1410799
Summary: | RFE: add ks_meta option to disable beah/beaker output to console.log | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Jiri Kastner <jkastner> |
Component: | general | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Anwesha Chatterjee <achatter> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | develop | CC: | achatter, bhu, bpeck, dcallagh, mjia, rjoost |
Target Milestone: | 25.0 | Keywords: | Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-19 04:18:53 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jiri Kastner
2017-01-06 14:26:10 UTC
maybe only some simply formatted line stating start and end of beaker test and its test phases:
>>>>>>> /distribution/pkginstall - start <<<<<<<<<<<<<
>>>>>>> /distribution/pkginstall/YumInstallPackage_rt-setup - start <<<<<<<<<<<<<
>>>>>>> /distribution/pkginstall/YumInstallPackage_rt-setup - end <<<<<<<<<<<<<
>>>>>>> /distribution/pkginstall/pkginstall - start <<<<<<<<<<<<<
>>>>>>> /distribution/pkginstall/pkginstall - end <<<<<<<<<<<<<
>>>>>>> rhts_task/exit - start <<<<<<<<<<<<<
>>>>>>> rhts_task/exit - end <<<<<<<<<<<<<
>>>>>>> /distribution/pkginstall - end <<<<<<<<<<<<<
Dear Jiri, our team talked about possible solutions for this bug. For one, we could add a ks meta option to suppress some of the spew which would probably also useful for other users. One possible alternative you could look into is restraint. There might be less harness spew in the logs and it should be easier to browse. https://gerrit.beaker-project.org/5908 Adds a ksmeta "beah_no_console_output" to suppress all beah log messages. Note that you can achieve this yourself with the same systemd drop-ins in a <ks_append/> section. (In reply to Dan Callaghan from comment #3) > https://gerrit.beaker-project.org/5908 This works nicely on RHEL7+ but note that on RHEL6 and earlier, when rhts-compat is left enabled (it is enabled by default), the rhts-compat service still produces some spew on /dev/console. This is somewhat by design, since rhts-compat's purpose is to run tests with stdin+stdout+stderr connected to /dev/console. If this is undesirable, I would recommend to turn off rhts-compat. There are many reasons why you should just turn it off anyway. The rhts-compat console spew looks like this: Running RHTS-Compatibility Service... rhts-compat: Waiting for lock. lockfile: Try praying, giving up on "/var/run/beah/rm.lock" NOTE: This process runs in foreground. Use 'service rhts-compat stop' from another terminal to stop it. It will not stop immediately but only after running tasks are processed. ls: cannot access /var/run/beah/rhts-compat/launchers: No such file or directory ls: cannot access /var/run/beah/rhts-compat/launchers: No such file or directory ls: cannot access /var/run/beah/rhts-compat/launchers: No such file or directory launcher-148040.sh Executing: unconfined, initgroups, runtest -- INFO: selinux enabled: trying to switch context... /var/lib/beah/tortilla/wrappers.d/initgroups groups: [] /var/lib/beah/tortilla/wrappers.d/initgroups no groups found, defaulting to [0] +++ basename /var/lib/beah/tortilla/wrappers.d/runtest ++ tortilla get-next-wrapper runtest + WRAP_NEXT= + /usr/bin/rhts-test-runner.sh logger: /usr/bin/rhts-test-runner.sh rhts-extend lab-devel-02.rhts.eng.bos.redhat.com 148040 3000 2999 logger: /usr/bin/rhts-test-runner.sh rhts-test-checkin 127.0.0.1:7088 dell-pe1850-01.rhts.eng.bos.redhat.com 13010 /distribution/install 3000 148040 11/05/17 18:24:12 JobID:13010 Test:/distribution/install Response:1 logger: /usr/bin/rhts-test-runner.sh rhts-test-update 127.0.0.1:7088 148040 start beaker-distribution-install 11/05/17 18:24:12 testID:148040 start: /mnt/tests/distribution/install /mnt/tests/distribution/install logger: /usr/bin/rhts-test-runner.sh report_finish start... jobsl = [1]+ 2208 Done make run >> /mnt/testarea/TESTOUT.log 2>&1 status = Done no machines specified. exiting 11/05/17 18:24:23 testID:148040 finish: Nothing to restore. logger: /usr/bin/rhts-test-runner.sh report_finish stop... + rc=0 + '[' -n '' ']' + exit 0 tried snippets on rhel7, it works nice Verified that when running a job with ks_meta="beah_no_console_output", ( https://beaker-devel.app.eng.bos.redhat.com/beaker-logs/2018/01/136/13661/20561/console.log ) * only kernel messages appear in the console log * beah logs do not appear This bug was fixed on the release-24 branch, to appear in Beaker 24.6, but we are not planning any more maintenance releases for the 24.x series. The next release will be Beaker 25.0. Updating the milestone accordingly. Beaker 25.0 has been released. Release notes are available upstream: https://beaker-project.org/docs/whats-new/release-25.html |