[systemd-bugs] [Bug 85759] New: sytemd-nspawn 217 fails with error code 1 if --bind option scecified
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Nov 2 06:36:10 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=85759
Bug ID: 85759
Summary: sytemd-nspawn 217 fails with error code 1 if --bind
option scecified
Product: systemd
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: vovan at vovan.nl
QA Contact: systemd-bugs at lists.freedesktop.org
Starting with systemd 217 systemd-nspawn fails with error code 1 if --bind
option specified. The version 216 works fine.
The command "systemd-nspawn --bind /mnt/portage -D /mnt/data/srv2 /bin/bash"
returns:
Press ^] three times within 1s to kill container.
Container srv2 failed with error code 1.
Without "--bind" the same command workd fine.
Below is the last lines from strace with systemd 217.
access("/mnt/data/srv2/root/bin/bash", F_OK) = 0
open("/dev/ptmx", O_RDWR|O_NOCTTY|O_NONBLOCK|O_CLOEXEC) = 3
statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0,
f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255,
f_frsize=4096}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS,
{B38400 opost isig icanon echo ...}) = 0
ioctl(3, TIOCGPTN, [10]) = 0
stat("/dev/pts/10", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 10), ...}) = 0
writev(2, [{"Spawning container srv2 on /mnt/"..., 47}, {"\n", 1}], 2) = 48
writev(2, [{"Press ^] three times within 1s t"..., 49}, {"\n", 1}], 2) = 50
ioctl(3, TIOCSPTLCK, [0]) = 0
access("/dev/kdbus/control", F_OK) = -1 ENOENT (No such file or directory)
socketpair(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0, [4, 5]) = 0
rt_sigprocmask(SIG_BLOCK, [INT TERM CHLD WINCH], NULL, 8) = 0
eventfd2(0, O_NONBLOCK|O_CLOEXEC) = 6
eventfd2(0, O_NONBLOCK|O_CLOEXEC) = 7
pipe2([8, 9], O_NONBLOCK|O_CLOEXEC) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x7fa5dbec51c0, [], SA_RESTORER|SA_NOCLDSTOP,
0x7fa5db21ee30}, NULL, 8) = 0
clone(child_stack=0,
flags=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWPID|SIGCHLD) = 2329
close(9) = 0
write(6, "\1\0\0\0\0\0\0\0", 8) = 8
poll([{fd=8, events=POLLHUP}, {fd=7, events=POLLIN}], 2, 4294967295) = 1
([{fd=8, revents=POLLHUP}])
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2329, si_status=1,
si_utime=0, si_stime=0} ---
rt_sigreturn() = 1
kill(2329, SIGKILL) = 0
waitid(P_PID, 2329, {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2329,
si_status=1, si_utime=0, si_stime=0}, WEXITED, NULL) = 0
writev(2, [{"Container srv2 failed with error"..., 40}, {"\n", 1}], 2) = 41
close(6) = 0
close(7) = 0
close(8) = 0
close(4) = 0
close(5) = 0
close(3) = 0
exit_group(1) = ?
+++ exited with 1 +++
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20141102/ad7750db/attachment.html>
More information about the systemd-bugs
mailing list