console-conf cannot support canX and crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Released
|
Undecided
|
Unassigned | ||
probert (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Summary]
On Ubuntu Core 20, console-conf cannot support canX interfaces and crashes when can0 is available
[Steps to reproduce]
1. load the driver of CAN device
2. run console-conf
[Expected result]
console-conf shows the supported network devices
[Actual result]
console-conf crashes
## type of can0 is '???'
2020-08-05 06:25:50,732 DEBUG probert.network:671 link_change NEW {'ifindex': 4, 'flags': 262272, 'arptype': 280, 'family': 0, 'is_vlan': False, 'name': b'can0'}
2020-08-05 06:25:51,514 DEBUG subiquitycore.
2020-08-05 06:25:51,515 DEBUG subiquitycore.
## type '???' is not supported
2020-08-05 06:25:54,566 INFO console_
2020-08-05 06:25:54,568 INFO console_
2020-08-05 06:25:54,699 DEBUG subiquitycore.
2020-08-05 06:25:54,703 ERROR subiquitycore.
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/lib/
self._run()
File "/usr/lib/
self.
File "/usr/lib/
reraise(
File "/usr/lib/
raise value
File "/usr/lib/
self.
File "/usr/share/
fut.result()
File "/usr/share/
self.
File "/usr/share/
config = self.render_
File "/usr/share/
return self.model.
File "/usr/share/
key = type_to_
KeyError: '???'
[Failure rate]
100%
[Environment]
Hardware: A Raspberry Pi based device with CAN
Software:
- armhf UC20 image
- core20 snap rev. 633
- snapd v2.45.2, rev. 8544
Changed in subiquity: | |
status: | Incomplete → Fix Released |
I added '???' to NETDEV_ IGNORED_ IFACE_TYPES in subiquity/ subiquitycore/ models/ network. py manually, then console-conf can ignore can0 and display other interfaces correctly.