Hide Forgot
Description of problem ====================== Running a test in 1minutetip (OpenShift via ssh) Fedora 24, test will stop on every rlService* as *less* is automatically executed. Version-Release number of selected component ============================================ beakerlib-1.11-2.fc24 systemd-229-16.fc24 Additional info =============== This seems as systemctl "feature" got in way of testing -- systemctl "thinks" this is an interactive session and opens less(1) to allow user to view status messages. I guess it should be possible to always suppress this.
Just creating new test and adding rlServiceStart httpd (and installing httpd on the machine) reproduced this, although I think it did not happen on *first* run. I guess this (i.e. the ability of systemctl to false-detect interactive session) could be related to way how tests are exactly started. By the way I'm running this roughly as urxvt -e "1minutetip ..."
Adding export PAGER= to the test can be used as workaround (tested). (Thx Brano for suggestion.)
I'm not able to reproduce it, is it tight to urxvt only?
Is there also another solution of this?
(In reply to Dalibor Pospíšil from comment #3) > I'm not able to reproduce it, is it tight to urxvt only? Also with xfce4-terminal, with that one it even happens on first run (unlime urxvt, where it happens on the second and later runs). BTW I just upgraded my workstation to F24 (and qa-tools-workstation from 3.10-143 to from 3.10-144).
It seems like the proper solution would be to call systemctl with --no-pager option but as we still use 'service' for handling services, the simplest solution would be to use environment variable PAGER as suggested in the workaround. At least until we migrate to systemctl for RHEL>=7 completely.
fixed by https://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=78edc02f617eb89dc822863852a26043ca52807a
*** Bug 1395622 has been marked as a duplicate of this bug. ***
Recently I found out that some services, e.g. audit, cannot by handled correctly by systemctl. So I need to revert to service and therefor I will use PAGER variable for this.
fixed by https://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=1b72feb70ceb9c6e73dc9d2af265162c3ec69102