unit-tests' test-execute and test-mount-utils fail in LXC

Bug #1878051 reported by Balint Reczey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

...
exec-bindpaths.service: Child 1573 belongs to exec-bindpaths.service.
exec-bindpaths.service: Main process exited, code=exited, status=0/SUCCESS
exec-bindpaths.service: Running next main command for state start.
exec-bindpaths.service: Passing 0 fds to service
exec-bindpaths.service: About to execute: /usr/bin/test -f /tmp/thisisasimpletest
exec-bindpaths.service: Forked /usr/bin/test as 1574
PR_SET_MM_ARG_START failed, attempting PR_SET_MM_ARG_END hack: Operation not permitted
PR_SET_MM_ARG_END hack failed, proceeding without: Operation not permitted
Applying namespace mount on /run/systemd/unit-root/tmp/test-exec-bindpaths
Followed source symlinks /tmp → /tmp.
Successfully mounted /tmp to /run/systemd/unit-root/tmp/test-exec-bindpaths
Applying namespace mount on /run/systemd/unit-root/tmp/test-exec-bindreadonlypaths
Followed source symlinks /tmp → /tmp.
Successfully mounted /tmp to /run/systemd/unit-root/tmp/test-exec-bindreadonlypaths
Failed to re-mount '/run/systemd/unit-root/tmp/test-exec-bindreadonlypaths' and its submounts: Permission denied
exec-bindpaths.service: Failed to set up namespace, assuming containerized execution, ignoring: Permission denied
exec-bindpaths.service: Executing: /usr/bin/test -f /tmp/thisisasimpletest
Received SIGCHLD from PID 1574 (test).
Child 1574 (test) died (code=exited, status=1/FAILURE)
exec-bindpaths.service: Child 1574 belongs to exec-bindpaths.service.
exec-bindpaths.service: Main process exited, code=exited, status=1/FAILURE
exec-bindpaths.service: Failed with result 'exit-code'.
exec-bindpaths.service: Changed start -> failed
exec-bindpaths.service: Unit entered failed state.
test_exec_bindpaths: exec-bindpaths.service: exit status 1, expected 0
FAIL: test-execute (code: 134)
Aborted (core dumped)
...

Balint Reczey (rbalint)
Changed in systemd (Ubuntu):
importance: Undecided → Low
Revision history for this message
Balint Reczey (rbalint) wrote :

Failing since Bionic, at least.

Balint Reczey (rbalint)
summary: - root-unittests' test-execute fails in LXC
+ unit-tests' test-execute and test-mount-utils fail in LXC
Revision history for this message
Nick Rosbrook (enr0n) wrote :

These have been skipped/patched to some degree in the systemd package for a while.

Changed in systemd (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.