Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sudo auth issue in test-suite on Ubuntu 24.04 #3377

Closed
dmnks opened this issue Oct 14, 2024 · 3 comments
Closed

Sudo auth issue in test-suite on Ubuntu 24.04 #3377

dmnks opened this issue Oct 14, 2024 · 3 comments
Labels
bug test Testsuite-related

Comments

@dmnks
Copy link
Contributor

dmnks commented Oct 14, 2024

Seems like we have another (random?) test failure:

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

#                             -*- compilation -*-
312. rpmi.at:1173: testing rpm -i relocatable package 3 ...
/rpmi.at:1180:
runroot_user \
  rpm -U --prefix \$PWD/root --dbpath \$PWD/rpmdb \
  /build/RPMS/noarch/rootfs-1.0-1.noarch.rpm

--- /dev/null	2024-10-14 15:06:38.808142963 +0000
+++ /srv/rpmtests.dir/at-groups/312/stderr	2024-10-14 15:07:16.196070787 +0000
@@ -0,0 +1,2 @@
+sudo: PAM account management error: Authentication service cannot retrieve authentication info
+sudo: a password is required
/rpmi.at:1180: exit code was 1, expected 0
312. rpmi.at:1173: 312. rpm -i relocatable package 3 (rpmi.at:1173): FAILED (rpmi.at:1180)

Full log: https://github.com/ffesti/rpm/actions/runs/11330220300/job/31507550988

@dmnks dmnks added the test Testsuite-related label Oct 14, 2024
@dmnks
Copy link
Contributor Author

dmnks commented Oct 15, 2024

Just noting here that the runuser command might be better than sudo for our use case here (we always run the test scripts as root by default), thanks @pmatilai for the hint 😄

@ffesti ffesti added the bug label Oct 16, 2024
@ffesti ffesti added this to RPM Oct 16, 2024
@github-project-automation github-project-automation bot moved this to Backlog in RPM Oct 16, 2024
@ffesti ffesti moved this from Backlog to Todo in RPM Oct 16, 2024
@pmatilai pmatilai changed the title Sudo auth issue in test-suite Sudo auth issue in test-suite on Ubuntu 24.04 Jan 16, 2025
@pmatilai
Copy link
Member

So this only happens on Ubuntu 24.04 which GH has been slowly updating its runners to. Don't know yet whether this is a bug in the image itself or something that our particular setup is causing. We've locked the test-suite on 22.04 now so this is very much non-urgent matter.

pmatilai added a commit to pmatilai/rpm that referenced this issue Jan 31, 2025
The newer environment would be welcome if we can use it now that
our sudo usage is gone.

Related to: rpm-software-management#3377
dmnks pushed a commit that referenced this issue Jan 31, 2025
The newer environment would be welcome if we can use it now that
our sudo usage is gone.

Related to: #3377
@pmatilai
Copy link
Member

pmatilai commented Feb 6, 2025

Fixed by 7b1eefb by avoiding the use of sudo in the first place.

@pmatilai pmatilai closed this as completed Feb 6, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in RPM Feb 6, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug test Testsuite-related
Projects
Status: Done
Development

No branches or pull requests

3 participants