lxc slow start & unexpectedly disconnected from boot status daemon

Bug #930116 reported by Andy Igoshin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Invalid
Low
Unassigned

Bug Description

lxc starts very slowly. 'error: unexpectedly disconnected from boot status daemon' is printed. after load it works as expected.

container was created via lxc-create.

hardware: HP DL380G6

----------------------------------------------------------------------------
root@relay1:~# lxc-start --name=sbc
error: unexpectedly disconnected from boot status daemon

Ubuntu 11.10 sbc /dev/console

sbc login: root
Password:
Last login: Sat Feb 4 18:40:33 UTC 2012 on console
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-15-server x86_64)

 * Documentation: https://help.ubuntu.com/11.10/serverguide/C
root@sbc:~#

----------------------------------------------------------------------------
root@relay1:~# lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

root@relay1:~# apt-cache policy lxc
lxc:
  Installed: 0.7.5-0ubuntu8.3
  Candidate: 0.7.5-0ubuntu8.3
  Version table:
 *** 0.7.5-0ubuntu8.3 0
        500 http://ru.archive.ubuntu.com/ubuntu/ oneiric-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     0.7.5-0ubuntu8 0
        500 http://ru.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages

----------------------------------------------------------------------------
15:52:22.339392 read(11, "error: unexpectedly disconnected"..., 1024) = 58
15:52:22.339562 write(13, "error: unexpectedly disconnected"..., 58error: unexpectedly disconnected from boot status daemon) = 58
15:52:22.339644 epoll_wait(15, {{EPOLLIN, {u32=24231760, u64=24231760}}}, 10, 4294967295) = 1
15:54:22.366554 ioctl(17, FIONREAD, [32]) = 0

15:52:22.339644 - 15:54:22.366554

full strace attached.

Revision history for this message
Andy Igoshin (andy-igoshin) wrote :
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to submit this bug.

You say the containers start slowly, but the strace shows it took about 2 seconds. Can you tell us how long it actually takes?

I suspect (because I don't see it) that it is fixed as a part of the upstart related fixes in precise.

Changed in lxc (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Andy Igoshin (andy-igoshin) wrote :

15:52:22.339392 read(11, "error: unexpectedly disconnected"..., 1024) = 58
15:52:22.339562 write(13, "error: unexpectedly disconnected"..., 58error: unexpectedly disconnected from boot status daemon) = 58
15:52:22.339644 epoll_wait(15, {{EPOLLIN, {u32=24231760, u64=24231760}}}, 10, 4294967295) = 1
^^^^

here after disconnect message it takes 2 minutes to continue loading container quickly.

15:54:22.366554 ioctl(17, FIONREAD, [32]) = 0
^^^^

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks.

I can't reproduce this on an oneiric vm.

In the description you said

    "container was created via lxc-create."

What was the exact command you used? What are the contents of the lxc.conf you used?

Changed in lxc (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

As discussed in bug 930285 comment 9, in oneiric you must provide a configuration file at lxc-create. The comment explains the delay. I'll mark this bug invalid, but bug 930285 very much remains valid and worrying.

Thanks for your reports!

Changed in lxc (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Andy Igoshin (andy-igoshin) wrote :

yes you are right. delay was due to dhcp request.

i saw incorrect path in the log :

Feb 11 06:36:44 localhost dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: No such file or directory

real path is /var/lib/dhcp

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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