Project

General

Profile

Actions

action #30613

closed

[functional][y][hard] script_output might include extra serial output

Added by nicksinger over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
SUSE QA - Milestone 18
Start date:
2018-01-22
Due date:
2018-08-28
% Done:

0%

Estimated time:
13.00 h

Description

Problem

From time to time, script_output does not only contain the actual output of a script but also other output from the system on the serial output. This can result in random strings in the middle of scripts.

Example

https://openqa.suse.de/tests/1403728#step/btrfs_send_receive/48 is a nice example of this happening.
The script generates two time the same hash (serial0.txt -> d62eb43dbcd156535e2444de5fa62d8c) but then fails to compare them because in the meantime there was also the login-prompt printed to the serial console.
This then gets picked up as output from the script which is not the expected behavior.

Expected result

The return value from script_output does only contain the output of the script. No additional serial output.

Suggestions

  • disable the getty service on the serial console which seems to cause most if not all of the problems now and confirm we are not relying on the login session on the serial port and potentially extend the documentation of script_output accordingly
  • Alternative: let script_output use a second channel to communicate its result back which is only used by os-autoinst and not shared with the system-logging. E.g. a second serial connection.

Related issues 9 (0 open9 closed)

Related to openQA Tests - action #26112: [sle][functional] test fails in zypper_lifecycle - bash script failsRejected2017-10-172018-02-13

Actions
Related to openQA Tests - action #29646: [sle][functional][medium]test fails in zypper_lifecycle due to script_output is not always reliableResolvedriafarov2017-12-202018-02-13

Actions
Related to openQA Tests - action #26108: [sle][functional][u][sporadic] test fails in btrfs_send_receive - checksum of snapshot does not match original checksumResolvedszarate2017-10-17

Actions
Related to openQA Tests - action #33958: [sle][functional][u][fast] test fails in zypper_lifecycle - 'end of support' line not foundResolvedokurz2018-03-282018-04-10

Actions
Related to openQA Tests - action #29637: [tools][kernel] test suddenly print login words -> script_output used wrongResolvedyosun2017-12-20

Actions
Related to openQA Tests - action #37027: [tw][desktop] Update create_hdd_* to make sure right permissionsResolvedyuanren102018-06-11

Actions
Related to openQA Tests - action #38480: [functional][u][fast][qam] job mau-extratests fails in new tests update_alternatives, aplay, openssl_alpn, curl_ipv6, wget_ipv6, gpg, shellsResolvedokurz2018-07-172018-07-31

Actions
Related to openQA Tests - action #39665: [functional][u][ipmi] test fails in system_prepare, /dev/sshserial is used instead of /dev/ttyS1Resolvedzluo2018-08-132018-09-25

Actions
Blocks openQA Tests - action #38417: [sle][functional][u][easy] Cleanup workarounds for serial output which are not required anymoreResolvedzluo2018-07-162018-09-25

Actions
Actions

Also available in: Atom PDF