← Back to team overview

touch-packages team mailing list archive

[Bug 1379030] Re: Extra lxc.mount.auto entry being added to config file

 

Hey Chris,

This is a parser bug which we need to fix. I believe Serge is looking
into it.

In the mean time, try using append_config_item instead which may work
fine in this case (so long as it's not called multiple times, otherwise
you'll get duplicates).

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

Title:
  Extra lxc.mount.auto entry being added to config file

Status in “lxc” package in Ubuntu:
  Confirmed

Bug description:
  I'm using the Python API to append entries to the LXC config file.
  When I do the following:

  container.set_config_item("lxc.mount.auto", "cgroup:mixed")

  I get an extra lxc.mount.auto entry in the config file.  This is what
  it looks like:

  lxc.mount.auto = 
  lxc.mount.auto = cgroup:mixed

  This keeps the container from starting.  I have to remove the first
  lxc.mount.auto to get the container to start.

  Also, this seems to have started fairly recently.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: lxc 1.1.0~alpha2-0ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-21.28-generic 3.16.4
  Uname: Linux 3.16.0-21-generic x86_64
  ApportVersion: 2.14.7-0ubuntu5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Oct  8 16:40:40 2014
  SourcePackage: lxc
  UpgradeStatus: Upgraded to utopic on 2014-06-16 (114 days ago)
  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/1379030/+subscriptions


References