[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2016-02-22 Thread ecraymond
It seems as though the mac address duplicating is fixed, but if there is
an IP, this is still being cloned.

Distributor ID: Ubuntu
Description:Ubuntu 15.04
Release:15.04
Codename:   vivid

ii  lxc
1.1.5-0ubuntu0.15.04.3  amd64   Linux
Containers userspace tools

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in lxc package in Ubuntu:
  Fix Released
Status in lxc source package in Trusty:
  Fix Released

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2016-02-22 Thread Stéphane Graber
Not much we can do about the IP address though. For the MAC it's
unlikely that anything in the container is tied to it so we can just
generate a fresh one without requiring any knowledge about the workload
or the environment.

An IP address is much more problematic because maybe you did mean to
keep the address (won't run both containers at once) or you're going to
move the clone to another host or another bridge and even if we could
know that, there's no way for LXC to know what IP it should be using and
removing the IP entry would likely break the container.

So unfortunately for IP configuration, it's really up to the user to
know about it (they're the ones who put it there, LXC itself never
writes one) and update as needed.

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in lxc package in Ubuntu:
  Fix Released
Status in lxc source package in Trusty:
  Fix Released

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2015-11-09 Thread Stéphane Graber
** Changed in: lxc (Ubuntu Trusty)
   Status: Triaged => Fix Released

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in lxc package in Ubuntu:
  Fix Released
Status in lxc source package in Trusty:
  Fix Released

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2014-10-16 Thread Felipe Reyes
I'm running utopic, after upgrading to lxc-1.1.0~alpha2-0ubuntu3, the
bug went away

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in “lxc” package in Ubuntu:
  Fix Released
Status in “lxc” source package in Trusty:
  Triaged

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2014-10-02 Thread Launchpad Bug Tracker
This bug was fixed in the package lxc - 1.1.0~alpha2-0ubuntu2

---
lxc (1.1.0~alpha2-0ubuntu2) utopic; urgency=medium

  * Cherry-pick usptream bugfix for lxc-usernic test.
 -- Stephane Graber stgra...@ubuntu.com   Thu, 02 Oct 2014 15:01:56 -0400

** Changed in: lxc (Ubuntu)
   Status: Fix Committed = Fix Released

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in “lxc” package in Ubuntu:
  Fix Released
Status in “lxc” source package in Trusty:
  Triaged

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2014-08-07 Thread Nobuto MURATA
 You can also easily work around this by adding
 
 lxc.network.hwaddr = 00:16:3e:xx:xx:xx
 
 to your /etc/lxc/default.conf or ~/.local/share/lxc/default.conf.

hmm, /etc/lxc/default.conf already had lxc.network.hwaddr =
00:16:3e:xx:xx:xx in my env. Besides, I have changed the line in
/var/lib/lxc/ORIG_CONTAINER/config. It works for me as a workaround.
Thanks.

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in “lxc” package in Ubuntu:
  Fix Committed
Status in “lxc” source package in Trusty:
  Triaged

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2014-08-04 Thread Serge Hallyn
(lowered priority per guidelines since there is a workaround)

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in “lxc” package in Ubuntu:
  Fix Committed
Status in “lxc” source package in Trusty:
  Triaged

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2014-08-04 Thread Serge Hallyn
The bug was introduced by incomplete support for unexpanded
configuration which itself existed to prevent expanding of included
configuration files.

It is fixed in upstream lxc (tested), though I'm not sure exactly when this
(alpha2) is expected to hit the archive.

Note that a further fix is the by-default setting of hwaddr to
00:16:3e:xx:xx:xx .  You can also easily work around this by adding

lxc.network.hwaddr = 00:16:3e:xx:xx:xx

to your /etc/lxc/default.conf or ~/.local/share/lxc/default.conf.


** Changed in: lxc (Ubuntu)
   Status: Triaged = Fix Committed

** Changed in: lxc (Ubuntu)
   Importance: High = Medium

** Changed in: lxc (Ubuntu Trusty)
   Importance: High = Medium

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in “lxc” package in Ubuntu:
  Fix Committed
Status in “lxc” source package in Trusty:
  Triaged

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address

2014-07-22 Thread Nobuto MURATA
After installing old packages, it seems a regression between
https://launchpad.net/ubuntu/+source/lxc/1.0.4-0ubuntu2/+build/6098430
and
https://launchpad.net/ubuntu/+source/lxc/1.1.0~alpha1-0ubuntu1/+build/6162946

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

Title:
  lxc-clone causes duplicate MAC address and IP address

Status in “lxc” package in Ubuntu:
  New

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/lxc/{foo,bar}/config
  /var/lib/lxc/foo/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78
  /var/lib/lxc/bar/config:lxc.network.hwaddr = 00:16:3e:d8:d8:78

  $ sudo lxc-ls -f
  NAME  STATEIPV4   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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-4.9-generic 3.16.0-rc5
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp