← Back to team overview

touch-packages team mailing list archive

[Bug 1451232] Re: container does not receive IP address after 15.04 upgrade

 

*** This bug is a duplicate of bug 1240757 ***
    https://bugs.launchpad.net/bugs/1240757

** This bug is no longer a duplicate of bug 1452601
   vivid container's networking.service fails on boot with signal=PIPE
** This bug has been marked a duplicate of bug 1240757
   Bridge not created if bind9 is on

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

Title:
  container does not receive IP address after 15.04 upgrade

Status in lxc package in Ubuntu:
  Triaged

Bug description:
  Perhaps this is an upgrade issue, perhaps it is a installation issue.

  In either case, there should be more information about upgrading lxc.

  After upgrading to Ubuntu 15.04, my container no longer started.

  After upgrading, I had to remove the following line from the config
  file for my container:

  lxc.network.link = lxcbr0

  Here is the attempt at starting before commenting out the line:

  kevin@nereocystis:~$ sudo  lxc-start -F -n escale_build
  lxc-start: conf.c: instantiate_veth: 2660 failed to attach 'vethTCPSQO' to the bridge 'lxcbr0': Operation not permitted
  lxc-start: conf.c: lxc_create_network: 2943 failed to create netdev
  lxc-start: start.c: lxc_spawn: 914 failed to create the network
  lxc-start: start.c: __lxc_start: 1164 failed to spawn 'escale_build'
  lxc-start: lxc_start.c: main: 344 The container failed to start.
  lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.

  
  After commenting out this line, the container starts, but no IP address is assigned in the container.

  But no IP address was assigned:

  For info, please visit https://www.isc.org/software/dhcp/

  Listening on LPF/eth0/9a:9b:92:81:87:62
  Sending on   LPF/eth0/9a:9b:92:81:87:62
  Sending on   Socket/fallback
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
  No DHCPOFFERS received.
  No working leases in persistent database - sleeping.
  done.

  
  Eventually, I purged lxc, and reinstalled it, with the same results.

  I also tried creating a new container from scratch using the
  instructions in:

  https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-network

  sudo lxc-create --template download --name u1

  Again, no IP address.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: lxc 1.1.2-0ubuntu3
  ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
  Uname: Linux 3.19.0-15-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sun May  3 10:44:23 2015
  InstallationDate: Installed on 2013-06-02 (699 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  KernLog:
   [56541.698842] audit: type=1400 audit(1430671655.848:49): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=3109 comm="mount" flags="ro, remount, relatime"
   [56620.060697] audit: type=1400 audit(1430671734.154:50): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/" pid=3403 comm="systemd" flags="ro, nosuid, nodev, noexec, remount, strictatime"
  SourcePackage: lxc
  UpgradeStatus: No upgrade log present (probably fresh install)
  defaults.conf:
   lxc.network.type = veth
   lxc.network.link = lxcbr0
   lxc.network.flags = up
   lxc.network.hwaddr = 00:16:3e:xx:xx:xx

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1451232/+subscriptions


References