Activity log for bug #1896604

Date Who What changed Old value New value Message
2020-09-22 11:01:35 Paride Legovini bug added bug
2020-09-22 11:02:03 Paride Legovini bug task added cloud-images
2020-09-22 11:02:13 Paride Legovini summary Groovy kernel (5.8.0-1004-aws) created broken /dev/console on i3.metal instances Groovy kernel (5.8.0-1004-aws) creates broken /dev/console on i3.metal instances
2020-09-22 17:05:48 Andrea Righi linux-aws (Ubuntu): assignee Andrea Righi (arighi)
2020-09-23 12:36:13 Paride Legovini bug task added cloud-init (Ubuntu)
2020-09-23 12:36:32 Paride Legovini bug task deleted cloud-init (Ubuntu)
2020-09-23 12:36:49 Paride Legovini bug task added cloud-init
2020-09-23 12:37:01 Paride Legovini cloud-init: status New Triaged
2020-09-23 12:37:25 Paride Legovini cloud-init: assignee Paride Legovini (paride)
2020-09-24 10:40:07 Andrea Righi description Hi, When running Groovy daily images on i3.metal instances a broken /dev/console is created. The char device appears to be writable but writing to it causes an Input/output error. This is breaking cloud-init, as it tries to log to /dev/console, and is likely to break other programs. On Focal: root@ip-172-31-24-163:~# ls -l /dev/console crw------- 1 root root 5, 1 Sep 21 16:07 /dev/console root@ip-172-31-24-163:~# echo x > /dev/console root@ip-172-31-24-163:~# On Groovy: root@ip-172-31-20-184:~# ls -l /dev/console crw--w---- 1 root tty 5, 1 Sep 21 16:03 /dev/console root@ip-172-31-20-184:~# echo x > /dev/console bash: echo: write error: Input/output error The Groovy kernel log has a [ 3.561696] fbcon: Taking over console line in it, which is not present in the Focal kernel log (5.4.0-1024-aws). Perhaps fbcon should be prevented from taking over console? [Impact] Starting with kernel 5.8 the default nr_uarts has been changed from 4 to 2 for amd64, but this seems to affect i3.metal instances in AWS, because ttyS0 is now remapped to ttyS4 and this is breaking tools like cloud-init (and probably something else). [Test case] # echo > /dev/console bash: echo: write error: Input/output error [Fix] Setting nr_uarts=4 by default (via CONFIG_SERIAL_8250_RUNTIME_UARTS) restores the previous behavior and writing to /dev/console works without returning any error. [Regression potential] Minimal. Restores the old behavior used in 5.4 (that shouldn't have changed in the first place). [Original bug report] Hi, When running Groovy daily images on i3.metal instances a broken /dev/console is created. The char device appears to be writable but writing to it causes an Input/output error. This is breaking cloud-init, as it tries to log to /dev/console, and is likely to break other programs. On Focal: root@ip-172-31-24-163:~# ls -l /dev/console crw------- 1 root root 5, 1 Sep 21 16:07 /dev/console root@ip-172-31-24-163:~# echo x > /dev/console root@ip-172-31-24-163:~# On Groovy: root@ip-172-31-20-184:~# ls -l /dev/console crw--w---- 1 root tty 5, 1 Sep 21 16:03 /dev/console root@ip-172-31-20-184:~# echo x > /dev/console bash: echo: write error: Input/output error The Groovy kernel log has a [ 3.561696] fbcon: Taking over console line in it, which is not present in the Focal kernel log (5.4.0-1024-aws). Perhaps fbcon should be prevented from taking over console?
2020-09-25 10:06:02 Paride Legovini linux-aws (Ubuntu): status New Fix Committed
2020-10-08 16:10:35 Launchpad Janitor linux-aws (Ubuntu): status Fix Committed Fix Released
2020-10-09 08:25:34 Paride Legovini cloud-init: status Triaged Fix Released
2020-10-09 08:25:38 Paride Legovini cloud-images: status New Fix Committed
2020-10-09 18:52:38 Joshua Powers cloud-images: status Fix Committed Fix Released
2023-05-12 09:43:29 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/3789