pre-installed lxc in cloud-image means loss of access to 10.0.X.0/24
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Won't Fix
|
Medium
|
Stéphane Graber |
Bug Description
Bug 1509414 describes fallout of inclusion of lxc in cloud images. The initial inclusion caused 2 issues:
a.) containers created by 'lxc -t ubuntu-cloud' and 'lxd import-images ubuntu wily' had completely broken networking
b.) all cloud images would have lost access to 10.0.3.0/24 networks.
The fix that went in fixes 'a' above. By default, containers created for lxd and lxc will now work as expected.
This bug is opened to address the much less severe 'b'.
Now, on first boot lxc-net selects a network in the 10.0.X.0/24 to give to the lxcbr0 bridge. It selects the network by simply looking for the first available N where there . That code can be seen prior to fix in debian/lxc.preinst [1] and after fix in config/
The suggested fix would be to make that code run on 'lxc' or 'lxd' usage rather than on instance boot. By doing so, we reduce the set of users possibly affected from all cloud-image users to all users of lxc or lxd.
Note, all users of lxd and lxc have been affected by this bug since at least 14.04.
--
[1] https:/
[2] https:/
Related bugs:
* bug 1509414: pre-installed lxc in cloud image produces broken lxc (and later lxd) containers
Changed in lxc (Ubuntu Wily): | |
status: | New → Confirmed |
Changed in lxc (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in lxc (Ubuntu Wily): | |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu Wily): | |
status: | Confirmed → Triaged |
Changed in lxc (Ubuntu Xenial): | |
status: | Confirmed → Triaged |
Changed in lxc (Ubuntu Wily): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu Xenial): | |
assignee: | nobody → Stéphane Graber (stgraber) |
no longer affects: | lxc (Ubuntu Wily) |
no longer affects: | lxc (Ubuntu Xenial) |
For reference, bug 1509414 refers to this issue as 'stage 2'. /bugs.launchpad .net/ubuntu/ +source/ lxc/+bug/ 1509414/ comments/ 24). There is other discussion there also as to the viability of that fix.
Serge Hallyn suggested a fix for it in comment 24 (https:/