Project

General

Profile

action #71620

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

Added by bchou over 1 year ago. Updated over 1 year 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

History

#1 Updated by rfan1 over 1 year 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"

#2 Updated by rfan1 over 1 year ago

  • Status changed from Workable to In Progress

#3 Updated by riafarov over 1 year 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',
``

#4 Updated by rfan1 over 1 year 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!

#5 Updated by riafarov over 1 year 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

#6 Updated by rfan1 over 1 year 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.

#7 Updated by rfan1 over 1 year ago

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

Also available in: Atom PDF