Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Test bluechi-agent-user-bus fails in the testing farm #900

Open
mkemel opened this issue May 6, 2024 · 2 comments
Open

Test bluechi-agent-user-bus fails in the testing farm #900

mkemel opened this issue May 6, 2024 · 2 comments
Labels
bug Something isn't working needs research Further research is needed testing This issue adds or improves the testing

Comments

@mkemel
Copy link
Member

mkemel commented May 6, 2024

Describe the bug

The test bluechi-agent-user-bus is failing in the testing farm, while passing in other environments (GitHub, locally).
The test was disabled in the testing farm until this issue is handled.

The test tries to start bluechi-agent.service as a user in an agent container, which fails. In the agent journal log you can find the following entries, not seen when running the test in other environments:

Apr 30 11:48:59 5812f46af2f4 systemd[1]: Finished User Runtime Directory /run/user/1000.
Apr 30 11:48:59 5812f46af2f4 systemd[1]: Starting User Manager for UID 1000...
Apr 30 11:48:59 5812f46af2f4 systemd[60]: pam_loginuid(systemd-user:session): Error writing /proc/self/loginuid: Operation not permitted
Apr 30 11:48:59 5812f46af2f4 systemd[60]: pam_loginuid(systemd-user:session): set_loginuid failed
Apr 30 11:48:59 5812f46af2f4 systemd[60]: pam_unix(systemd-user:session): session opened for user bluechiuser(uid=1000) by root(uid=0)
Apr 30 11:48:59 5812f46af2f4 systemd[60]: PAM failed: Cannot make/remove an entry for the specified session
Apr 30 11:48:59 5812f46af2f4 systemd[60]: user@1000.service: Failed to set up PAM session: Operation not permitted
Apr 30 11:48:59 5812f46af2f4 systemd[60]: user@1000.service: Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted
Apr 30 11:48:59 5812f46af2f4 systemd[1]: user@1000.service: Main process exited, code=exited, status=224/PAM
Apr 30 11:48:59 5812f46af2f4 systemd[1]: user@1000.service: Failed with result 'exit-code'.
Apr 30 11:48:59 5812f46af2f4 systemd[1]: Failed to start User Manager for UID 1000.

To Reproduce

Could not reproduce outside the testing farm. To reproduce, re-enable the test for the testing farm by removing the tag: ... entry in tests/tests/tier0/bluechi-agent-user-bus/main.fmf and creating a PR.

Expected behavior

The test should pass in all environments

@mkemel mkemel added the bug Something isn't working label May 6, 2024
@mkemel
Copy link
Member Author

mkemel commented May 6, 2024

When this issue is resolved, the tag testing-farm-container which was added in #899 - can be removed

@mkemel
Copy link
Member Author

mkemel commented May 7, 2024

Running the test on multihost, the test fails as well, but I don't see the same auth errors in the node journal log.
Needs some more research

@engelmi engelmi added needs research Further research is needed testing This issue adds or improves the testing labels May 14, 2024
@mkemel mkemel mentioned this issue May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs research Further research is needed testing This issue adds or improves the testing
Projects
None yet
Development

No branches or pull requests

2 participants