← Back to team overview

touch-packages team mailing list archive

[Bug 1377973] Re: lxc-destroy/lxc-stop gets stuck

 

Interesting, so apparently only the lxc monitor itself is hung.  could
you please strace that process (it will be the parent of the container
init) so we can see what it is hung trying to do?

Did you happen to upgrade lxc to a significantly newer version after
starting the container?  I don't know of any changes we've made to the
monitor protocol, but it's not impossible.

Can you give more details about how you set up your custom container?
Is this (somewhat - i.e. you can do it more than once even if not
always) reproducible with a precise set of steps?


** Changed in: lxc (Ubuntu)
       Status: Confirmed => Incomplete

-- 
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//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


References