Failed to import ssh key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Released
|
High
|
Unassigned |
Bug Description
Image from Apr 25th, 2018. There is no build id in /etc/cloud, not sure how to better identify it.
I gave the installer my launchpad id ("ahasenack") for the ssh key import.
At the end, there was no /home/andreas/.ssh directory, and the logs confirmed that the import failed for some reason:
2018-04-25 20:47:38,799 - cc_ssh_
2018-04-25 20:47:38,799 - util.py[DEBUG]: Running command ['sudo', '-Hu', 'andreas', 'ssh-import-id', 'lp:ahasenack'] with allowed return codes [0] (shell=False, capture=False)
2018-04-25 20:47:39,036 - util.py[WARNING]: Failed to run command to import andreas ssh ids
2018-04-25 20:47:39,036 - util.py[DEBUG]: Failed to run command to import andreas ssh ids
Traceback (most recent call last):
File "/usr/lib/
util.subp(cmd, capture=False)
File "/usr/lib/
cmd=args)
cloudinit.
Command: ['sudo', '-Hu', 'andreas', 'ssh-import-id', 'lp:ahasenack']
Exit code: 1
Reason: -
Stdout: -
Stderr: -
2018-04-25 20:47:39,040 - util.py[WARNING]: ssh-import-id failed for: andreas ['lp:ahasenack']
2018-04-25 20:47:39,040 - util.py[DEBUG]: ssh-import-id failed for: andreas ['lp:ahasenack']
Traceback (most recent call last):
File "/usr/lib/
import_
File "/usr/lib/
raise exc
File "/usr/lib/
util.subp(cmd, capture=False)
File "/usr/lib/
cmd=args)
cloudinit.
Command: ['sudo', '-Hu', 'andreas', 'ssh-import-id', 'lp:ahasenack']
Exit code: 1
Reason: -
Stdout: -
Stderr: -
And later again:
2018-04-25 20:47:39,041 - handlers.py[DEBUG]: finish: modules-
2018-04-25 20:47:39,041 - util.py[WARNING]: Running module ssh-import-id (<module 'cloudinit.
2018-04-25 20:47:39,041 - util.py[DEBUG]: Running module ssh-import-id (<module 'cloudinit.
Traceback (most recent call last):
File "/usr/lib/
freq=freq)
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
raise elist[0]
File "/usr/lib/
import_
File "/usr/lib/
raise exc
File "/usr/lib/
util.subp(cmd, capture=False)
File "/usr/lib/
cmd=args)
cloudinit.
Command: ['sudo', '-Hu', 'andreas', 'ssh-import-id', 'lp:ahasenack']
Exit code: 1
Reason: -
Stdout: -
Stderr: -
Changed in subiquity: | |
assignee: | nobody → Ngo Quang Thong (quangthong1981) |
Changed in subiquity: | |
assignee: | Ngo Quang Thong (quangthong1981) → nobody |
In another attempt, I tried a github key, but it also failed.