Description of problem: Compared to beah restraint streams the task log to beaker on the fly. It would be good to have the log available before task completes. For example to be able to parse the log content from inside of the task. Beah provides such log in file /mnt/testarea/current.log This is a regression from beah for making restraint the default harness. Version-Release number of selected component (if applicable): restraint-0.1.32-1.el8+5 How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Current task log is streamed to Beaker directly. Expected results: Current task log should be also available as a file on the testing system. Additional info:
This might be resolved by changing the systemd unit file for restraintd to log it's output to a file. But it would be one log for the entire life of the job run, not per task run. But I would argue this would be cleaner and more unix like.
I've been investigating this bug. I'm using restraint and I'm seeing /mnt/testarea/current.log is intact while it is also being streamed to beaker. Are you still experiencing problems in this area?
(In reply to Carol Bouchard from comment #3) > I've been investigating this bug. I'm using restraint and I'm seeing > /mnt/testarea/current.log is intact while it is also being streamed to > beaker. Are you still experiencing problems in this area? Could you describe how do you run restraint? I've checked a beaker machine while running beaker tasks through restraint but the log is not there: [root@wsfd-netdev42 ~]# ls /mnt/testarea/current.log ls: cannot access '/mnt/testarea/current.log': No such file or directory [root@wsfd-netdev42 ~]# rpm -qa restraint restraint-0.1.39-1.el8bkr.x86_64 [root@wsfd-netdev42 ~]# pstree -alp ├─restraintd,5766 │ ├─10_bash_login,23613 -l /usr/share/restraint/plugins/task_run.d/10_bash_login /usr/share/restraint/plugins/task_run.d/15_beakerlib /usr/share/restraint/plugins/task_run.d/20_unconfined /usr/share/restraint/plugins/task_run.d/25_environment /usr/share/restraint/plugins/task_run.d/30_restore_events /usr/share/restraint/plugins/task_run.d/35_oom_adj make run │ │ └─make,23634 run │ │ └─runtest.sh,23648 ./runtest.sh │ │ └─rhts-run-simple,23649 /usr/bin/rhts-run-simple-test /kernel/distribution/lnst/run-recipe ./do-my-test │ │ ├─rhts-run-simple,23654 /usr/bin/rhts-run-simple-test /kernel/distribution/lnst/run-recipe ./do-my-test │ │ │ └─do-my-test,23657 ./do-my-test │ │ │ ├─do-my-test,23672 ./do-my-test │ │ │ │ └─lnst-ctl,23674 /usr/bin/lnst-ctl -t /mnt/testarea/lnst_output.html -s /usr/share/lnst/result_xslt/xml_to_html.xsl -d --pools /mnt/testarea/lnst-pool -A ipv=ipv4 -A driver=ixgbe -A netperf_duration=60 -A nperf_cpupin=5 -A netdev_cpupin=0 -A nperf_protocols=tcp udp -A product_name=RHEL8 -A official_result=no run /usr/share/lnst/recipes/regression_tests/phase1/simple_netperf.xml │ │ │ └─tee,23673 -a /mnt/testarea/lnst_current_log │ │ └─tee,23655 /mnt/testarea/tmp.Eus4pq Beaker job used for this check https://beaker.engineering.redhat.com/recipes/6731218#tasks
Restraint 0.1.40 has been released.