lxc-update-config incorrectly converts network settings

Bug #1758619 reported by Alexander E. Patrakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Before the update, on LXC 2.0.8, I had:

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.network.ipv4 = 10.0.3.205/24
lxc.network.ipv4.gateway = 10.0.3.1
lxc.network.hwaddr = 00:16:3e:ae:79:d7

After the update to LXC 3.0.0beta3, I have:

lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = lxcbr0
lxc.net.0.ipv4 = 10.0.3.205/24
lxc.net.0.ipv4.gateway = 10.0.3.1
lxc.net.0.hwaddr = 00:16:3e:ae:79:d7

The conversion is wrong. lxc.network.ipv4 (which was the correct spelling, according to the man page in the old package) should have been converted to lxc.net.0.ipv4.address, not to lxc.net.0.ipv4.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lxc-utils 3.0.0~beta3-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Sun Mar 25 14:24:16 2018
InstallationDate: Installed on 2018-01-25 (58 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180120)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
 TERM=xterm
 PATH=(custom, no user)
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
defaults.conf:
 lxc.net.0.type = veth
 lxc.net.0.link = lxcbr0
 lxc.net.0.flags = up
 lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx

Revision history for this message
Alexander E. Patrakov (patrakov-gmail) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :

This has been fixed upstream and in Ubuntu 18.04, marking fix release.
If we do a SRU of 2.1.1 for Ubuntu 17.10, this fix will be in it.

Changed in lxc (Ubuntu):
status: New → 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.