lxc-clone should replace/change hwaddr when cloning containers

Bug #934256 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Serge Hallyn

Bug Description

I hit this using the local juju provider on precise with the latest updates to lxc.

The ubuntu template now automatically generates a hwaddr for the lxc container when it is created.

However this then get propagated to clones of of this container resulting in multiple lxc instances all with the same mac address.

I worked around this by scrubbing it from the base template container; however lxc-clone should probably remove or re-generate this during container cloning.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu27
ProcVersionSignature: Ubuntu 3.2.0-16.25-generic 3.2.6
Uname: Linux 3.2.0-16-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Fri Feb 17 15:02:25 2012
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
James Page (james-page) wrote :
description: updated
Changed in lxc (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Serge Hallyn (serge-hallyn)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * 0045-fix-other-templates: lots of template fixes. Make sshd, debian,
    fedoray, and busybox templates actually work. Fix inconsistent --auth_key
    vs --auth-key usage in ubuntu templates.
  * 0046-lxc-clone-change-hwaddr - when cloning a container, give it a new
    hwaddr. (LP: #934256)
 -- Serge Hallyn <email address hidden> Fri, 17 Feb 2012 15:18:19 -0600

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.