Project

General

Profile

action #81808

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

Added by bchou 7 months ago. Updated 7 months 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

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

History

#1 Updated by bchou 7 months ago

  • Estimated time set to 4.00 h

#2 Updated by bchou 7 months ago

  • Assignee changed from llzhao to rfan1

#3 Updated by rfan1 7 months 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

#4 Updated by rfan1 7 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#5 Updated by pvorel 7 months 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.

#6 Updated by pvorel 7 months ago

#7 Updated by pvorel 7 months ago

OK, you already reported it to original bug.

Also available in: Atom PDF