subiquity logs an error after disabling ssh

Bug #1866216 reported by Lorenz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

When ssh is disabled on an Ubuntu Core 18 device (amd64 or armhf), the following error message is printed to the screen / serial console:

Traceback (most recent call last):
File “/usr/share/subiquity/console-conf-write-login-details”, line 25, in
sys.exit(write_login_details_standalone())
File “/usr/share/subiquity/console_conf/controllers/identity.py”, line 184, in write_login_details_standalone
write_login_details(sys.stdout, owner[‘username’], ips)
File “/usr/share/subiquity/console_conf/controllers/identity.py”, line 153, in write_login_details
sshcommands=sshcommands, host_key_info=host_key_info(), tty_name=tty_name, first_ip=first_ip, version=version))
File “/usr/share/subiquity/console_conf/controllers/identity.py”, line 119, in host_key_info
longest_type = max([len(keytype) for keytype, _ in fingerprints])
ValueError: max() arg is an empty sequence

ssh is disabled as described here: https://docs.ubuntu.com/core/en/reference/core-configuration
snap set core service.ssh.disable=true

I did not notice any implications for my devices, which could result from this error. But I'm not sure whether this message can be ignored or if it is a symptom of a more severe error.

reference: https://forum.snapcraft.io/t/ubuntu-core-18-error-message-after-disabling-ssh/15824

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.