During handling of the above exception, another exception occurred:
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 848, in _run_modules
ran, _r = cc.run(run_name, mod.handle, func_args,
File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 54, in run
return self._runners.run(name, functor, args, freq, clear_on_fail)
File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185, in run
results = functor(*args)
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_keys_to_console.py", line 69, in handle
util.multi_log("%s\n" % (stdout.strip()),
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 402, in multi_log
wfh.flush()
OSError: [Errno 5] Input/output error
```
We've had discussions regarding default console connections (specifically console=ttyS0) at various points. It appears cloud-init will have this specific issue when no console is connection is available at boot, at least for NoCloud
disabling `uart1` leads to `cloud-init` failures when writing keys:
``` config. cc_keys_ to_console' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_keys_ to_console. py'>) failed config. cc_keys_ to_console' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_keys_ to_console. py'>) failed python3/ dist-packages/ cloudinit/ util.py" , line 402, in multi_log
2020-10-26 18:37:30,888 - util.py[WARNING]: Running module keys-to-console (<module 'cloudinit.
2020-10-26 18:37:30,889 - util.py[DEBUG]: Running module keys-to-console (<module 'cloudinit.
Traceback (most recent call last):
File "/usr/lib/
wfh.flush()
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
Traceback (most recent call last): python3/ dist-packages/ cloudinit/ stages. py", line 848, in _run_modules python3/ dist-packages/ cloudinit/ cloud.py" , line 54, in run run(name, functor, args, freq, clear_on_fail) python3/ dist-packages/ cloudinit/ helpers. py", line 185, in run python3/ dist-packages/ cloudinit/ config/ cc_keys_ to_console. py", line 69, in handle multi_log( "%s\n" % (stdout.strip()), python3/ dist-packages/ cloudinit/ util.py" , line 402, in multi_log
File "/usr/lib/
ran, _r = cc.run(run_name, mod.handle, func_args,
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
util.
File "/usr/lib/
wfh.flush()
OSError: [Errno 5] Input/output error
```
We've had discussions regarding default console connections (specifically console=ttyS0) at various points. It appears cloud-init will have this specific issue when no console is connection is available at boot, at least for NoCloud