field link-local not found in type netplan.Ethernet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Achilleas Anagnostopoulos |
Bug Description
juju version: 2.8.9
MAAS verwsion: 2.9.2
series: bionic
# Problem
When creating an LXD container by running the following command
juju add-machine lxd:0 --constraints "spaces=oam"
I get an error below
machine 0/lxd/1 failed to start: failed to bridge devices: bridge activation error: yaml: unmarshal errors:
line 5: field link-local not found in type netplan.Ethernet
line 7: field link-local not found in type netplan.Ethernet
line 9: field link-local not found in type netplan.Ethernet
line 11: field link-local not found in type netplan.Ethernet
line 13: field link-local not found in type netplan.Ethernet
line 15: field link-local not found in type netplan.Ethernet
line 17: field link-local not found in type netplan.Ethernet
# What I expect
I expect that the LXD container to be created
# What I did to get to this point
I have been trying to get around the issue for LP 1831892. When you have a machine deployed with bridges already deployed on the spaces, and then create LXD container as above, the container is created, and there is no problems.
# Steps to re-produce
1. Add a new machine using "juju add-machine"
2. juju ssh to the machine, and update all the interfaces so that "link-local: []", similar to [1]
3. Then run "netplan apply"
4. Now, run the command below, and we will get the error as shown above
juju add-machine lxd:0 --constraints "spaces=oam"
# Logs
Enabled TRACE logging using the command below, and the relevant logs from the machine are in [2]
juju model-config logging-
# Workaround
1. Remove the link-local configuration from netplan configuration (without re-applying, as the link-local configuration would gave been applying by netplan originally)
2. Add the lxd container as per usual (This will now create the bridge)
3. Add the netplan configuration again (without-
Now, all LXD containers will work as expected
[1] https:/
[2] https:/
Related Bug: #1831892
Changed in juju: | |
importance: | Undecided → Medium |
assignee: | nobody → Achilleas Anagnostopoulos (achilleasa) |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.8.11 → 2.8.10 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
PR https:/ /github. com/juju/ juju/pull/ 12772 adds `link-local` to the supported set of fields when unmarshalling netplan configurations. This should allow the above 'juju add-machine' invocation to work as expeected.