action #71620
closed[sle][security][sle15sp3][spvm] test fails in pam_su about switch user fail in ppc64le
100%
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
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"
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',
``
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!
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
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.
Updated by rfan1 about 4 years ago
- % Done changed from 10 to 100
- Estimated time changed from 6.00 h to 8.00 h