I can reproduce locally doing the following (fails on focal and groovy).
I did this using the cloud-images.ubuntu.com VMDK, Virtualbox, and a
simple cloud-init with ssh key and username/pw w/ ssh pw auth on. I got
the following error:

```
2020-10-28 13:32:33,680 - util.py[WARNING]: Running module 
ssh-authkey-fingerprints (<module 
'cloudinit.config.cc_ssh_authkey_fingerprints' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py'>)
 failed
2020-10-28 13:32:33,680 - util.py[DEBUG]: Running module 
ssh-authkey-fingerprints (<module 
'cloudinit.config.cc_ssh_authkey_fingerprints' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py'>)
 failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 402, in 
multi_log
    wfh.flush()
OSError: [Errno 5] Input/output error
```

TESTING:

Requirements:

Virtualbox
cloud-localds command (to make your local ISO of cloud-init data)

1. download the latest VMDK (groovy): 
http://cloud-images.ubuntu.com/groovy/current/
2. make a simple cloud-init w/ ssh pub key and pw login (to ensure you can get 
in)

#cloud-config
chpasswd:
list: |
  ubuntu:ubuntu
expire: False
ssh_pwauth: True
ssh_authorized_keys: <YOUR_PUB_KEY>

3. create the iso using cloud-localds

` cloud-localds my-seed.iso my-cloud-config.yaml `

4. Open Virtualbox
5. Create New
6. Under Hard Disk, choose "Use Existing" and choose the VMDK and create
7. select image on Left, right click and choose Settings, or hit ctrl+s
8. go to Storage
9. Click on the +CD(Add Optical Drive) beside Controller: IDE
10. select your cloud-init iso (my-seed.iso)
11. click on drive, and set Attributes: Optical Drive to IDE Primary Master and 
hit OK
12. Boot machine

Vbox will show you the console as it goes along. once booted

1. login with provided pw
2. `cloud-init status` will show failed
3. check cloud-init log

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

Title:
  module ssh-authkey-fingerprints fails Input/output error: /dev/console

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1473527/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to