Project

General

Profile

Actions

action #81808

closed

[sle][security][sle15sp3] test fails in ima_appraisal_hashes about background screen chaos

Added by bchou about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2021-01-06
Due date:
% Done:

100%

Estimated time:
4.00 h
Difficulty:

Description

Observation

openQA test in scenario sle-15-SP3-Online-x86_64-ima_appraisal@uefi fails in
ima_appraisal_hashes

Test suite description

Maintainer: llzhao@suse.com
Setup and test for IMA appraisal functions.

Reproducible

Fails since (at least) Build 14.2

Expected result

Last good: (unknown) (or more recent)

Further details

Always latest result in this scenario: latest


Related issues 1 (1 open0 closed)

Related to openQA Project - action #81142: VNC console corruptionNew2020-12-17

Actions
Actions #1

Updated by bchou about 3 years ago

  • Estimated time set to 4.00 h
Actions #2

Updated by bchou about 3 years ago

  • Assignee changed from llzhao to rfan1
Actions #3

Updated by rfan1 about 3 years ago

Potential fix:

https://github.com/rfan1/os-autoinst-distri-opensuse/tree/ima_hash

commit 9a77432e1a782a62982844ac9af2c23eebf18832 (HEAD -> ima_hash, origin/ima_hash)
Author: rfan1 richard.fan@suse.com
Date: Wed Jan 6 13:28:21 2021 +0800

Add keepconsole=1 for power action

diff --git a/tests/security/ima/ima_appraisal_hashes.pm b/tests/security/ima/ima_appraisal_hashes.pm
index d4e60bd7e..0028db31b 100644
--- a/tests/security/ima/ima_appraisal_hashes.pm
+++ b/tests/security/ima/ima_appraisal_hashes.pm
@@ -39,7 +39,8 @@ sub run {

 add_grub_cmdline_settings("ima_appraise=fix $tcb_cmdline", update_grub => 1);
  • power_action('reboot', textmode => 1);
  • select_console 'root-console';
  • power_action('reboot', keepconsole => 1, textmode => 1); $self->wait_boot(textmode => 1); $self->select_serial_terminal;

@@ -61,7 +62,8 @@ sub run {

 replace_grub_cmdline_settings('ima_appraise=fix', '', update_grub => 1);
  • power_action('reboot', textmode => 1);
  • select_console 'root-console';
  • power_action('reboot', keepconsole => 1, textmode => 1); $self->wait_boot(textmode => 1); $self->select_serial_terminal;

5 runs passed. however, given the fact that we can pass the case without code change in openqa (just re-run it)
https://openqa.suse.de/tests/5252471#details
marked it close now, once hitting the issue again, will apply this patch

Actions #4

Updated by rfan1 about 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by pvorel about 3 years ago

Isn't the failure in https://openqa.suse.de/tests/5247875/modules/ima_appraisal_hashes/steps/25 caused by #81142 ?
Screenshot shows corrupted screen, which affect also our testing.

Actions #6

Updated by pvorel about 3 years ago

Actions #7

Updated by pvorel about 3 years ago

OK, you already reported it to original bug.

Actions

Also available in: Atom PDF