lxc grabs 10.0.0.0/8 by default

Bug #913727 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

On precise, after apt-get install lxc:

# ip addr show dev lxcbr0
6: lxcbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 82:6a:90:8b:57:70 brd ff:ff:ff:ff:ff:ff
    inet 10.0.3.1/8 brd 10.255.255.255 scope global lxcbr0
    inet6 fe80::806a:90ff:fe8b:5770/64 scope link
       valid_lft forever preferred_lft forever

From /etc/lxc/default (unchanged):

LXC_BRIDGE="lxcbr0"
LXC_ADDR="10.0.3.1"
LXC_NETWORK="10.0.3.0/24"
LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"
LXC_DHCP_MAX="253"

Expected behaviour: lxcbr0 should be configured to 10.0.3.1/24
Actual behaviour: lxcbr0 is configured to 10.0.3.1/8

This is a problem for me because my setup also uses the 10.x range. 10/8 is too big a range to grab by default.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc (not installed)
ProcVersionSignature: Ubuntu 3.2.0-1403.3-omap4 3.2.0-rc5
Uname: Linux 3.2.0-1403-omap4 armv7l
ApportVersion: 1.90-0ubuntu1
Architecture: armel
Date: Mon Jan 9 12:23:23 2012
ProcEnviron:
 LANGUAGE=en_GB:
 LC_COLLATE=C
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)

Robie Basak (racb)
Changed in lxc (Ubuntu):
importance: Undecided → Medium
Changed in lxc (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu5

---------------
lxc (0.7.5-3ubuntu5) precise; urgency=low

  [ Robie Basak ]
  * debian/patches/0015-ubuntu-templ-use-updates.patch: use ports.ubuntu.com
    in sources.list for alternative architectures (LP: #820715).
  * debian/patches/0015-ubuntu-templ-use-updates.patch: dist-upgrade in an
    isolated environment to avoid leaving a bind mount behind (LP: #913877).
  * debian/lxc.{default,init}: call ifconfig with explicit netmask
    (LP: #913727).

  [ Serge Hallyn ]
  * debian/lxc.default: update the MIRROR example - using 'localhost'
    fails for updates after the container has been started.
  * debian/lxcguest.console.upstart: pass 'console' not '/dev/console' to
    getty. (LP: #913952)
  * debian/patches/0015-ubuntu-templ-use-updates.patch: at post_process(),
    copy host's /etc/resolv.conf (which may have changed) into chroot before
    apt-get actions, and always do a apt-get update before installing lxcguest,
    as the package version may have changed in the archive. (LP: #914155)
  * 0016-nested-cgroups.patch: nest container cgroups under the host's
    init cgroup. (LP: #901482)
  * 0017-pull-upstream-fedora-template.patch: move to the upstream
    lxc-fedora template (LP: #881903)
  * 0018-make-lxc-ps-search-proc.patch: work when cgroups are mounted with
    '-n'.
  * debian/patches/0019-fix-lxc-ls-nested-cgroups.patch: fix lxc-ls to
    handle the support for nested cgroups. (pull this into previous
    commit msg before pushing)
 -- Serge Hallyn <email address hidden> Tue, 10 Jan 2012 18:51:45 +0000

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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