-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-8.10
-
No
-
Moderate
-
rhel-systemd
-
2
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
-
All
-
None
What were you trying to do that didn't work?
For cockpit-podman we want to rewrite our test suite to use systemd-run to run podman as a different user as runuser or alternatives don't work as podman requires a valid logind session.
What is the impact of this issue to you?
Cockpit's CI infrastructure wants to use systemd-run to execute commands as `admin` in tests to for example run podman which requires a valid logind session. This would simplify our tests as otherwise we will have to use machinectl shell admin@ which is a less nice API to use and support. All our other test images can use systemd-run.
Please provide the package NVR for which the bug is seen:
How reproducible is this bug?:
100%
Steps to reproduce
- sudo systemd-run --machine=admin@ --quiet --user --collect --pipe --wait podman run --rm docker.io/library/alpine echo hello
Expected results
the podman containe runs and echos 'hello'.
Actual results
Execution in user context is not supported on non-local systems.