[Touch-packages] [Bug 1378738] [NEW] guest os boot stuck with mount operation error
Public bug reported: I'm trying to migrate an OS running on a physical machine to an LXC container, but no luck so far. Right now the system gets stuck somewhere during lxc-start: ... * Stopping cgroup management proxy ...done. * Starting load modules from /etc/modules ...done. * Stopping Mount network filesystems ...done. * Starting set sysctls from /etc/sysctl.conf ...done. * Stopping set sysctls from /etc/sysctl.conf ...done. * Stopping load modules from /etc/modules ...done. * Starting configure network device ...done. * Starting Bridge socket events into upstart ...done. hangs indefinitely here Both host and guest are running ubuntu 14.04 LTS and same guest boots properly via VirtualBox... kern.log shows some issues with mounts: Oct 7 10:35:45 ares kernel: [138643.960789] device veth0RG5HU entered promiscuous mode Oct 7 10:35:45 ares kernel: [138643.961450] IPv6: ADDRCONF(NETDEV_UP): veth0RG5HU: link is not ready Oct 7 10:35:45 ares kernel: [138643.987832] EXT4-fs (dm-5): couldn't mount as ext3 due to feature incompatibilities Oct 7 10:35:45 ares kernel: [138643.987967] EXT4-fs (dm-5): couldn't mount as ext2 due to feature incompatibilities Oct 7 10:35:45 ares kernel: [138643.988322] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: (null) Oct 7 10:35:45 ares kernel: [138644.002660] IPv6: ADDRCONF(NETDEV_CHANGE): veth0RG5HU: link becomes ready Oct 7 10:35:45 ares kernel: [138644.002702] lxcbr0: port 1(veth0RG5HU) entered forwarding state Oct 7 10:35:45 ares kernel: [138644.002719] lxcbr0: port 1(veth0RG5HU) entered forwarding state Oct 7 10:35:46 ares kernel: [138644.340780] type=1400 audit(1412670946.254:113): apparmor=DENIED operation=mount info=failed type match error=-13 profile=lxc-container-default name=/run/cgmanager/fs/none,name=systemd/ pid=399 comm=cgmanager fstype=cgroup srcname=none,name=systemd flags=rw Oct 7 10:36:00 ares kernel: [138659.015558] lxcbr0: port 1(veth0RG5HU) entered forwarding state Here is the container's configuration file: lxc.include = /usr/share/lxc/config/ubuntu.common.conf lxc.network.type = veth lxc.network.flags = up lxc.network.link = lxcbr0 lxc.utsname = myvm lxc.autodev = 1 lxc.tty = 4 lxc.pts = 1024 lxc.rootfs = /dev/mapper/ubuntu--vmvg-lvroot lxc.arch = x86_64 lxc.cap.drop = sys_module mac_admin #lxc.aa_profile = lxc-container-default-with-mounting lxc.cgroup.devices.deny = a # Allow any mknod (but not using the node) lxc.cgroup.devices.allow = c *:* m lxc.cgroup.devices.allow = b *:* m # /dev/null and zero lxc.cgroup.devices.allow = c 1:3 rwm lxc.cgroup.devices.allow = c 1:5 rwm # consoles lxc.cgroup.devices.allow = c 5:1 rwm lxc.cgroup.devices.allow = c 5:0 rwm #lxc.cgroup.devices.allow = c 4:0 rwm #lxc.cgroup.devices.allow = c 4:1 rwm # /dev/{,u}random lxc.cgroup.devices.allow = c 1:9 rwm lxc.cgroup.devices.allow = c 1:8 rwm lxc.cgroup.devices.allow = c 136:* rwm lxc.cgroup.devices.allow = c 5:2 rwm # rtc lxc.cgroup.devices.allow = c 254:0 rwm #fuse lxc.cgroup.devices.allow = c 10:229 rwm #tun lxc.cgroup.devices.allow = c 10:200 rwm #full lxc.cgroup.devices.allow = c 1:7 rwm #hpet lxc.cgroup.devices.allow = c 10:228 rwm #kvm lxc.cgroup.devices.allow = c 10:232 rwm #lxc.cgroup.devices.allow = b 7:* rwm Any suggestions? ** Affects: lxc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1378738 Title: guest os boot stuck with mount operation error Status in “lxc” package in Ubuntu: New Bug description: I'm trying to migrate an OS running on a physical machine to an LXC container, but no luck so far. Right now the system gets stuck somewhere during lxc-start: ... * Stopping cgroup management proxy ...done. * Starting load modules from /etc/modules ...done. * Stopping Mount network filesystems ...done. * Starting set sysctls from /etc/sysctl.conf ...done. * Stopping set sysctls from /etc/sysctl.conf ...done. * Stopping load modules from /etc/modules ...done. * Starting configure network device ...done. * Starting Bridge socket events into upstart ...done. hangs indefinitely here Both host and guest are running ubuntu 14.04 LTS and same guest boots properly via VirtualBox... kern.log shows some issues with mounts: Oct 7 10:35:45 ares kernel: [138643.960789] device veth0RG5HU entered promiscuous mode Oct 7 10:35:45 ares kernel: [138643.961450] IPv6: ADDRCONF(NETDEV_UP): veth0RG5HU: link is not ready Oct 7 10:35:45 ares kernel: [138643.987832] EXT4-fs (dm-5): couldn't mount as ext3 due to feature incompatibilities Oct 7 10:35:45 ares kernel: [138643.987967] EXT4-fs (dm-5): couldn't mount as ext2 due to feature incompatibilities Oct 7 10:35:45 ares kernel: [138643.988322] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts:
Re: [Touch-packages] [Bug 1377973] [NEW] lxc-destroy/lxc-stop gets stuck
Looks like the lxc-start command got stuck, after killing the process everything went back to normal. root@ares:~# netstat -x | grep lxc unix 2 [ ] STREAM CONNECTING0 @/var/lib/lxc/myvm/command unix 2 [ ] STREAM CONNECTING0 @/var/lib/lxc/myvm/command unix 2 [ ] STREAM CONNECTING0 @/var/lib/lxc/myvm/command unix 2 [ ] STREAM CONNECTING0 @/var/lib/lxc/myvm/command unix 2 [ ] STREAM CONNECTING0 @/var/lib/lxc/myvm/command unix 2 [ ] STREAM CONNECTING0 @/var/lib/lxc/myvm/command root@ares:~# ps -ef | grep lxc root 1697 1250 0 Okt06 ?00:00:00 strace lxc-start -n myvm -f myvm.conf --logfile=vm.log --logpriority=NOTICE root 1704 1697 0 Okt06 ?00:00:00 lxc-start -n myvm -f myvm.conf --logfile=vm.log --logpriority=NOTICE lxc-dns+ 13856 1 0 Okt05 ?00:00:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=/run/lxc/dnsmasq.pid --conf-file= --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=lxcbr0 --dhcp-leasefile=/var/lib/misc/dnsmasq.lxcbr0.leases --dhcp-authoritative root@ares:~# ps -ef | grep 1697 root 1697 1250 0 Okt06 ?00:00:00 strace lxc-start -n myvm -f myvm.conf --logfile=vm.log --logpriority=NOTICE root 1704 1697 0 Okt06 ?00:00:00 lxc-start -n myvm -f myvm.conf --logfile=vm.log --logpriority=NOTICE root 15861 21116 0 08:12 pts/16 00:00:00 grep --color=auto 1697 root@ares:~# kill -3 1697 root@ares:~# ps -ef | grep lxc-start root 15870 21116 0 08:13 pts/16 00:00:00 grep --color=auto lxc-start root@ares:~# lxc-ls --fancy NAME STATE IPV4 IPV6 AUTOSTART -- root@ares:~# lxc-destroy -n myvm Container is not defined still, I find it a bit strange that not even lxc-ls was working properly On Mon, Oct 6, 2014 at 4:57 PM, Serge Hallyn 1377...@bugs.launchpad.net wrote: thanks for reporting this bug. Could you please show: 1. The result of 'netstat -x | grep lxc' 2. ps -ef | grep lxc status: incomplete ** Changed in: lxc (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are subscribed to the bug report. https://bugs.launchpad.net/bugs/1377973 Title: lxc-destroy/lxc-stop gets stuck Status in “lxc” package in Ubuntu: Incomplete Bug description: On ubuntu 14.04 I ran lxc-start with a custom built container and interrupted the setup before it could finish. Now lxc-ls --fancy, lxc- destroy -n container or lxc-stop -n container are getting stuck. LXC package version is 1.0.5-0ubuntu0.1 Output from strace: # strace lxc-destroy -n myvm mkdir(/, 0755)= -1 EEXIST (File exists) mkdir(/run/, 0755)= -1 EEXIST (File exists) mkdir(/run/lock/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/lib/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/lib/lxc, 0755) = -1 EEXIST (File exists) stat(/var/lib/lxc/myvm/config, 0x7fff06d64f50) = -1 ENOENT (No such file or directory) stat(/var/lib/lxc/myvm/partial, 0x7fff06d64e80) = -1 ENOENT (No such file or directory) socket(PF_LOCAL, SOCK_STREAM, 0)= 3 connect(3, {sa_family=AF_LOCAL, sun_path=@/var/lib/lxc/myvm/command}, 28) = 0 getuid()= 0 getgid()= 0 sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0, 16}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2028, uid=0, gid=0}}, msg_flags=0}, MSG_NOSIGNAL) = 16 recvmsg(3, To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1377973/+subscriptions -- Pozdrav / Regards, Nikola Krzalic. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1377973 Title: lxc-destroy/lxc-stop gets stuck Status in “lxc” package in Ubuntu: Incomplete Bug description: On ubuntu 14.04 I ran lxc-start with a custom built container and interrupted the setup before it could finish. Now lxc-ls --fancy, lxc- destroy -n container or lxc-stop -n container are getting stuck. LXC package version is 1.0.5-0ubuntu0.1 Output from strace: # strace lxc-destroy -n myvm mkdir(/, 0755)= -1 EEXIST (File exists) mkdir(/run/, 0755)= -1 EEXIST (File exists) mkdir(/run/lock/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc
[Touch-packages] [Bug 1377973] [NEW] lxc-destroy/lxc-stop gets stuck
Public bug reported: On ubuntu 14.04 I ran lxc-start with a custom built container and interrupted the setup before it could finish. Now lxc-ls --fancy, lxc- destroy -n container or lxc-stop -n container are getting stuck. LXC package version is 1.0.5-0ubuntu0.1 Output from strace: # strace lxc-destroy -n myvm mkdir(/, 0755)= -1 EEXIST (File exists) mkdir(/run/, 0755)= -1 EEXIST (File exists) mkdir(/run/lock/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/lib/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/lib/lxc, 0755) = -1 EEXIST (File exists) stat(/var/lib/lxc/myvm/config, 0x7fff06d64f50) = -1 ENOENT (No such file or directory) stat(/var/lib/lxc/myvm/partial, 0x7fff06d64e80) = -1 ENOENT (No such file or directory) socket(PF_LOCAL, SOCK_STREAM, 0)= 3 connect(3, {sa_family=AF_LOCAL, sun_path=@/var/lib/lxc/myvm/command}, 28) = 0 getuid()= 0 getgid()= 0 sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0, 16}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2028, uid=0, gid=0}}, msg_flags=0}, MSG_NOSIGNAL) = 16 recvmsg(3, ** Affects: lxc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1377973 Title: lxc-destroy/lxc-stop gets stuck Status in “lxc” package in Ubuntu: New Bug description: On ubuntu 14.04 I ran lxc-start with a custom built container and interrupted the setup before it could finish. Now lxc-ls --fancy, lxc- destroy -n container or lxc-stop -n container are getting stuck. LXC package version is 1.0.5-0ubuntu0.1 Output from strace: # strace lxc-destroy -n myvm mkdir(/, 0755)= -1 EEXIST (File exists) mkdir(/run/, 0755)= -1 EEXIST (File exists) mkdir(/run/lock/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/lib/, 0755) = -1 EEXIST (File exists) mkdir(/run/lock/lxc//var/lib/lxc, 0755) = -1 EEXIST (File exists) stat(/var/lib/lxc/myvm/config, 0x7fff06d64f50) = -1 ENOENT (No such file or directory) stat(/var/lib/lxc/myvm/partial, 0x7fff06d64e80) = -1 ENOENT (No such file or directory) socket(PF_LOCAL, SOCK_STREAM, 0)= 3 connect(3, {sa_family=AF_LOCAL, sun_path=@/var/lib/lxc/myvm/command}, 28) = 0 getuid()= 0 getgid()= 0 sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0, 16}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2028, uid=0, gid=0}}, msg_flags=0}, MSG_NOSIGNAL) = 16 recvmsg(3, To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1377973/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp