Commissioning script 'maas-kernel-cmdline' fails with bonded interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Adam Collard |
Bug Description
If an existing MAAS node is configured to use bonding or bridging + bonding, re-commissioning attempts fail at the "maas-kernel-
Inspecting region controller logs show the following trace:
2022-08-11 19:27:06 metadataserver.api: [critical] os-node-
Traceback (most recent call last):
File "/snap/
File "/snap/
File "/snap/
File "/snap/
--- <exception caught here> ---
File "/snap/
func(*args, **kwargs)
File "/snap/
File "/snap/
return getattr(
File "/snap/
raise self.model.
maasserver.
You can re-commission the machine by unchecking "Retain Network Configuration" however that obviously wipes the network configuration.
Steps to reproduce:
1. Commission a multi-interface machine in MAAS.
2. Configure the network to use bonding.
3. Attempt to re-commission the machine.
4. The attempt fails at the "maas-kernel-
Tested Version: 3.2.2-12005-
Attached a sample network configuration.
Thank you.
Related branches
- MAAS Lander: Needs Fixing
- Alberto Donato (community): Approve
-
Diff: 147 lines (+59/-32)2 files modifiedsrc/metadataserver/builtin_scripts/hooks.py (+6/-2)
src/metadataserver/builtin_scripts/tests/test_hooks.py (+53/-30)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 3.3.0 |
Changed in maas: | |
assignee: | nobody → Adam Collard (adam-collard) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
no longer affects: | charm-deployment-guide |
I have the same problem, and I can confirm it's very new. I was able to commission a node with an OpenVswitch bridge as late as 2022-08-10, but ran into this bug when trying to commission a new machine on 2022-08-15. Same error in the controller log. I found something interesting though. In regiond.log, it looks like maas started downloading a new kernel release ['20220810']. It seems to be the only thing that changed between 2022-08-10 and 2022-08-11. This is the first time it shows up in the logs:
2022-08-11 20:50:55 sstreams: [info] com.ubuntu. maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:amd64: ga-18.04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:amd64: ga-18.04- lowlatency: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:amd64: hwe-18. 04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:amd64: hwe-18. 04-edge: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:amd64: hwe-18. 04-lowlatency: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:amd64: hwe-18. 04-lowlatency- edge: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:arm64: ga-18.04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:arm64: hwe-18. 04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:arm64: hwe-18. 04-edge: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:arm64: xgene-uboot: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:arm64: xgene-uboot- mustang: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:armhf: ga-18.04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:armhf: generic- lpae-generic- lpae: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:armhf: hwe-18. 04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:armhf: hwe-18. 04-edge: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com.ubuntu. maas.stable: v3:boot: 18.04:i386: ga-18.04: to_add=['20220810'] to_remove=[] maas:stable: v3:download/ com...
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.
2022-08-11 20:50:55 sstreams: [info] com.ubuntu.