MAAS regiond IPC crash due to a machine-resources binary crash when parsing some VPDs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Anton Troyanov | ||
3.2 |
Fix Released
|
High
|
Anton Troyanov | ||
lxd |
Fix Released
|
Unknown
|
Bug Description
This bug is a result of https:/
Upon upgrading to 3.2 maas-regiond began failing to start an IPC worker since it tries to get a set of network devices present on a system and fails while calling out to a machine-resources binary.
It only happens due to some device VPDs which break the parser but the devices I had were fairly standard onboard NICs from Intel. lspci is able to parse the VPD of those devices and so should the parser in LXD.
After fixing the parser MAAS needs to use new binaries and so package rebuilds are needed.
2022-06-30 18:38:19 sstreams: [info] com.ubuntu.
Traceback (most recent call last): File "/usr/lib/
return target() File "/usr/lib/
task() File "/usr/lib/
task() --- <exception caught here> ---
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
panic: runtime error: slice bounds out of range [65535:32611]
goroutine 1 [running]: github.
main.main()
2022-06-30 18:38:18 twisted.
2022-06-30 18:38:18 twisted.
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
for network in get_all_
File "/usr/lib/
for interface in get_all_
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
panic: runtime error: slice bounds out of range [65535:32611]
goroutine 1 [running]: github.
main.main()
Related branches
- MAAS Lander: Approve
- Christian Grabowski: Approve
-
Diff: 28 lines (+3/-3)2 files modifiedsrc/host-info/go.mod (+1/-1)
src/host-info/go.sum (+2/-2)
- MAAS Lander: Approve
- Christian Grabowski: Approve
-
Diff: 28 lines (+3/-3)2 files modifiedsrc/host-info/go.mod (+1/-1)
src/host-info/go.sum (+2/-2)
- MAAS Lander: Approve
- MAAS Maintainers: Pending requested
-
Diff: 65 lines (+17/-14)2 files modifiedsrc/host-info/go.mod (+5/-4)
src/host-info/go.sum (+12/-10)
- MAAS Lander: Approve
- Alexsander de Souza: Approve
-
Diff: 65 lines (+17/-14)2 files modifiedsrc/host-info/go.mod (+5/-4)
src/host-info/go.sum (+12/-10)
summary: |
- [3.2] MAAS regiond IPC crash due to a machine-resources binary crash - when parsing some VPDs + MAAS regiond IPC crash due to a machine-resources binary crash when + parsing some VPDs |
Changed in maas: | |
milestone: | none → 3.3.0 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in lxd: | |
status: | Unknown → New |
Changed in lxd: | |
status: | New → Fix Released |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
assignee: | nobody → Anton Troyanov (troyanov) |
Changed in lxd: | |
status: | Fix Released → Unknown |
Changed in lxd: | |
status: | Unknown → Fix Released |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Just to have a link with bad VPDs here: https:/ /github. com/lxc/ lxd/files/ 9028036/ bad-vpds. zip