[Bug 1890397] Re: console-conf cannot support canX and crashes

Robert Liu 1890397 at bugs.launchpad.net
Thu Aug 6 06:29:57 UTC 2020


Opened corresponding PRs on github.

1. subiquity - https://github.com/CanonicalLtd/subiquity/pull/810
2. probert - https://github.com/canonical/probert/pull/93

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1890397

Title:
  console-conf cannot support canX and crashes

Status in subiquity:
  New
Status in probert package in Ubuntu:
  New
Status in subiquity package in Ubuntu:
  New

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.models.network:268 new_link 4 can0 ???
  2020-08-05 06:25:51,515 DEBUG subiquitycore.models.network:294 new_link 4 can0 with config {}

  ## type '???' is not supported
  2020-08-05 06:25:54,566 INFO console_conf/Network/apply_config:479 start: silent=True
  2020-08-05 06:25:54,568 INFO console_conf/Network/apply_config:484 finish: '???' FAIL
  2020-08-05 06:25:54,699 DEBUG subiquitycore.core:248 _exception_handler KeyError('???')
  2020-08-05 06:25:54,703 ERROR subiquitycore.core:688 Exception in controller.run():
  Traceback (most recent call last):
    File "/usr/share/subiquity/subiquitycore/core.py", line 686, in run
      self.urwid_loop.run()
    File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 286, in run
      self._run()
    File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 384, in _run
      self.event_loop.run()
    File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 1484, in run
      reraise(*exc_info)
    File "/usr/lib/python3/dist-packages/urwid/compat.py", line 58, in reraise
      raise value
    File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run
      self._context.run(self._callback, *self._args)
    File "/usr/share/subiquity/subiquitycore/async_helpers.py", line 26, in _done
      fut.result()
    File "/usr/share/subiquity/subiquitycore/controllers/network.py", line 384, in _apply_config
      self._write_config()
    File "/usr/share/subiquity/subiquitycore/controllers/network.py", line 340, in _write_config
      config = self.render_config()
    File "/usr/share/subiquity/subiquitycore/controllers/network.py", line 337, in render_config
      return self.model.render_config()
    File "/usr/share/subiquity/subiquitycore/models/network.py", line 369, in render_config
      key = type_to_key[dev.type]
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/1890397/+subscriptions



More information about the foundations-bugs mailing list