Your message dated Fri, 28 Oct 2011 04:58:48 +0100 with message-id <1319774328.6759.39.camel@deadeye> and subject line Re: lxc-attach does not work has caused the Debian Bug report #595920, regarding lxc-attach does not work to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 595920: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595920 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: lxc-attach does not work
- From: Konstantin Khomoutov <flatworm@users.sourceforge.net>
- Date: Tue, 07 Sep 2010 13:52:32 +0400
- Message-id: <20100907095232.3439.3411.reportbug@icarus.domain007.com>
Package: lxc Version: 0.7.2-1 Severity: important Tags: patch lxc-attach does not work as expected. To demonstrate, let's try to attach to a running container which has booted a debootstrap'ped system on its own rootfs: icarus:~# lxc-attach -n bender lxc-attach: No such file or directory - failed to open '/proc/4581/ns/pid' lxc-attach: failed to enter the namespace The relevant part of the `ps axf` output displaying the container's processes is below: 4563 ? Ss 0:00 lxc-start -n bender -f /etc/lxc/bender.conf -d 4581 ? Ss 0:00 \_ init [2] 4941 ? Sl 0:00 \_ /usr/sbin/rsyslogd -c4 5012 ? Ss 0:00 \_ /usr/sbin/cron 5022 ? Ss 0:00 \_ /usr/sbin/sshd 10157 ? Ss 0:00 \_ /usr/sbin/apache2 -k start 10674 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10675 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10676 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10677 ? S 0:00 | \_ /usr/sbin/apache2 -k start 10678 ? S 0:00 | \_ /usr/sbin/apache2 -k start 14527 ? S 0:00 \_ /bin/sh /usr/bin/mysqld_safe 14638 ? Sl 0:00 | \_ /usr/sbin/mysqld --basedir=/usr --datadir 14639 ? S 0:00 | \_ logger -t mysqld -p daemon.error 15771 pts/0 Ss+ 0:00 \_ /sbin/getty 38400 tty1 It was suggested to me on the #lxcontainers channel that the kernel requires the support for a new syscall, sys_setns, for lxc-attach to work. The patch is available from LXC upstream at http://lxc.sourceforge.net/patches/linux/2.6.35/2.6.35-lxc1/patches/ Please consider discussing inclusion of this patch with the kernel folks as the properly functioning lxc-attach is crucial to implement graceful shutdown of the containers using "full" rootfs like those created using debootstrap. (I'm going to file a separate bug report regarding this aspect of functionality.) -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lxc depends on: ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii libcap2 1:2.19-3 support for getting/setting POSIX. Versions of packages lxc recommends: ii libcap2-bin 1:2.19-3 basic utility programs for using c lxc suggests no packages. -- Configuration Files: /etc/default/lxc changed: RUN=yes CONF_DIR=/etc/lxc CONTAINERS="bender" -- no debconf information
--- End Message ---
--- Begin Message ---
- To: 595920-done@bugs.debian.org
- Subject: Re: lxc-attach does not work
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Fri, 28 Oct 2011 04:58:48 +0100
- Message-id: <1319774328.6759.39.camel@deadeye>
- In-reply-to: <20100907095232.3439.3411.reportbug@icarus.domain007.com>
- References: <20100907095232.3439.3411.reportbug@icarus.domain007.com>
Version: 3.0.0~rc1-1~experimental.1 On Tue, 2010-09-07 at 13:52 +0400, Konstantin Khomoutov wrote: [...] > It was suggested to me on the #lxcontainers channel that the kernel > requires the support for a new syscall, sys_setns, for lxc-attach to work. > The patch is available from LXC upstream at > http://lxc.sourceforge.net/patches/linux/2.6.35/2.6.35-lxc1/patches/ > > Please consider discussing inclusion of this patch with the kernel folks > as the properly functioning lxc-attach is crucial to implement graceful > shutdown of the containers using "full" rootfs like those created using > debootstrap. (I'm going to file a separate bug report regarding this aspect > of functionality.) [...] The setns() system call was finally added in 3.0. Ben. -- Ben Hutchings All the simple programs have been written, and all the good names taken.Attachment: signature.asc
Description: This is a digitally signed message part
--- End Message ---