lxc-clone causes duplicate MAC address and IP address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
A cloned container will have the same MAC address and IP address with the original container.
How to reproduce:
1. $ sudo lxc-create -t ubuntu-cloud -n foo -- --release trusty
2. $ sudo lxc-clone foo bar
3. $ sudo lxc-start -d -n foo
4. $ sudo lxc-start -d -n bar
Expected result:
2 container will have different MAC and IP address each other.
Actual result:
2 container will have duplicate MAC and IP address.
# grep lxc.network.hwaddr /var/lib/
/var/lib/
/var/lib/
$ sudo lxc-ls -f
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
-------
bar RUNNING 10.0.7.60 - - NO
foo RUNNING 10.0.7.60 - - NO
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: lxc 1.1.0~alpha1-
ProcVersionSign
Uname: Linux 3.16.0-4-generic x86_64
ApportVersion: 2.14.4-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jul 22 17:56:44 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-05-19 (64 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140518)
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
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in lxc (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu): | |
importance: | Medium → High |
Changed in lxc (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Trusty): | |
status: | Triaged → Fix Released |
After installing old packages, it seems a regression between /launchpad. net/ubuntu/ +source/ lxc/1.0. 4-0ubuntu2/ +build/ 6098430 /launchpad. net/ubuntu/ +source/ lxc/1.1. 0~alpha1- 0ubuntu1/ +build/ 6162946
https:/
and
https:/