Failure processing network information when adding a rack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Björn Tillenius |
Bug Description
With current master, if I add a snap-based rack controller from latest/edge (running in a LXD container), I get a failure processing network info from the commissioning output:
2021-04-26 15:35:27 metadataserver.api: [critical] m2.maas(qfyfhy): commissioning script '50-maas-
Traceback (most recent call last):
File "/snap/
File "/snap/
File "/snap/
File "/snap/
--- <exception caught here> ---
File "/snap/
File "/snap/
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func_within_
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
File "/snap/
return update_
File "/snap/
File "/snap/
File "/snap/
if attached_
Note that changing the last line to compare node objects rather than IDs works.
I'm not exactly sure what's the test case triggering the issue, but if I add debug to print out the `links` dict passed to `update_links` I see thew following:
2021-04-26 15:35:27 stdout: [info] [{'address': '10.45.222.252',
2021-04-26 15:35:27 stdout: [info] 'family': 'inet',
2021-04-26 15:35:27 stdout: [info] 'gateway': '10.45.222.1',
2021-04-26 15:35:27 stdout: [info] 'mode': 'static',
2021-04-26 15:35:27 stdout: [info] 'netmask': '24',
2021-04-26 15:35:27 stdout: [info] 'scope': 'global'}]
2021-04-26 15:35:27 stdout: [info]
2021-04-26 15:35:27 stdout: [info] [{'address': '172.16.100.226',
2021-04-26 15:35:27 stdout: [info] 'family': 'inet',
2021-04-26 15:35:27 stdout: [info] 'gateway': None,
2021-04-26 15:35:27 stdout: [info] 'mode': 'static',
2021-04-26 15:35:27 stdout: [info] 'netmask': '24',
2021-04-26 15:35:27 stdout: [info] 'scope': 'global'}]
Changed in maas: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Björn Tillenius (bjornt) |
milestone: | 3.0.0 → 3.0.0-rc1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |