lxc-update-config incorrectly converts network settings
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.
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.
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.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lxc-utils 3.0.0~beta3-
ProcVersionSign
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
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.