Project

General

Profile

Actions

action #71620

closed

[sle][security][sle15sp3][spvm] test fails in pam_su about switch user fail in ppc64le

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2020-09-22
Due date:
% Done:

100%

Estimated time:
8.00 h
Difficulty:

Description

Observation

openQA test in scenario sle-15-SP3-Online-ppc64le-security_pam_spvm@ppc64le-spvm fails in
pam_su

Test suite description

Reproducible

Fails since (at least) Build 42.1 (current job)

Expected result

Last good: (unknown) (or more recent)

Further details

Always latest result in this scenario: latest

Actions #1

Updated by rfan1 about 4 years ago

  • Status changed from New to Workable
  • % Done changed from 0 to 10
  • Estimated time set to 6.00 h

https://openqa.suse.de/tests/4722986#step/pam_su/20

switch the tests to new backend ppc_hmc

can hit the issue again, failed to access the /dev/sshserial after switching to user "bernhard"

Actions #2

Updated by rfan1 about 4 years ago

  • Status changed from Workable to In Progress
Actions #3

Updated by riafarov about 4 years ago

Somehow for sshserial we don't set permissions on ikvm|ipmi|spvm|pvm_hmc backends https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/susedistribution.pm#L460

I believe that adding chmod 666 /dev/sshserial as we do for ssh consoles on generalhw should resolve it:

serial   => 'rm -f /dev/sshserial; mkfifo /dev/sshserial; chmod 666 /dev/sshserial; while true; do cat /dev/sshserial; done',
``
Actions #4

Updated by rfan1 about 4 years ago

riafarov wrote:

Somehow for sshserial we don't set permissions on ikvm|ipmi|spvm|pvm_hmc backends https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/susedistribution.pm#L460

I believe that adding chmod 666 /dev/sshserial as we do for ssh consoles on generalhw should resolve it:

serial   => 'rm -f /dev/sshserial; mkfifo /dev/sshserial; chmod 666 /dev/sshserial; while true; do cat /dev/sshserial; done',
``

Thanks much! will have a try!

Actions #5

Updated by riafarov about 4 years ago

So the proposal works, I've created https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/11065
We also have failure related to this issue in one of our tests.

http://openqa.suse.de/tests/4724250#

Thanks to Rodion for the kindly help and quick response!
The issue is gone after set right permission to "/dev/sshserial" file, all tests passed

Actions #6

Updated by rfan1 about 4 years ago

  • Status changed from In Progress to Resolved

http://openqa.suse.de/tests/4725124

Test passed on openqa as well, close this ticket.

=========================================================

But let me record more information here, for ppc platform, the test uses ssh to login to to test machine and set ssh serial console via command "mkfifo /dev/sshserial", the default permission should be 0600, then, if we switch to non-root user, it fails to echo output to serial console, hence needed to modify the permission to 0666.

Actions #7

Updated by rfan1 about 4 years ago

  • % Done changed from 10 to 100
  • Estimated time changed from 6.00 h to 8.00 h
Actions

Also available in: Atom PDF