Activity log for bug #1061977

Date Who What changed Old value New value Message
2012-10-05 01:12:45 Julian Edwards bug added bug
2012-10-05 01:13:18 Julian Edwards maas: status New Triaged
2012-10-05 01:13:19 Julian Edwards maas: importance Undecided Critical
2012-10-05 01:14:28 Julian Edwards bug task added cloud-init (Ubuntu)
2012-10-05 01:22:01 Julian Edwards attachment added varlog.tar.gz https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1061977/+attachment/3374165/+files/varlog.tar.gz
2012-10-05 02:02:09 Scott Moser bug added subscriber Stefan Bader
2012-10-05 13:16:08 Scott Moser description http://paste.ubuntu.com/1261109/ shows the cloud-init log. http://paste.ubuntu.com/1261129/ shows the output when running "cloud-init --debug modules --mode=final" manually. In this case it finishes and successfully commissions. Running: sudo start cloud-final shows: start: Job failed to start Also: $ runlevel N 2 $ sudo status rc rc stop/waiting http://paste.ubuntu.com/1261109/ shows the /var/lib/cloud/instance/userdata.txt http://pastebin.ubuntu.com/1261098/ shows /var/log/cloud-init.log http://paste.ubuntu.com/1261129/ shows the output when running "cloud-init --debug modules --mode=final" manually. In this case it finishes and successfully commissions. Running: sudo start cloud-final shows: start: Job failed to start Also: $ runlevel N 2 $ sudo status rc rc stop/waiting
2012-10-05 14:35:05 Scott Moser description http://paste.ubuntu.com/1261109/ shows the /var/lib/cloud/instance/userdata.txt http://pastebin.ubuntu.com/1261098/ shows /var/log/cloud-init.log http://paste.ubuntu.com/1261129/ shows the output when running "cloud-init --debug modules --mode=final" manually. In this case it finishes and successfully commissions. Running: sudo start cloud-final shows: start: Job failed to start Also: $ runlevel N 2 $ sudo status rc rc stop/waiting Maas is pxe booting systems. The first time a system is booted, maas knows nothing about it, so we need some default kernel parameters. The primary target for these systems is datacenter, where there is at least some likelyhood that /dev/ttyS0 is logged (or could be logged). On boot of the system, we want to see log messages. So, we were passing to the kernel cmdline: console=tty1 console=ttyS0 The hope was that kernel messages would go both places, and /dev/console (which is opened by upstart) would go to ttyS0 if it was present and /dev/tty1 otherwise. It seems that the kernel is not at all smart about how it does this, though. On a system without a serial device, /dev/console gets hooked up, but writes to it fail with "Input/output error". Cloud-init uses 'console output' in upstart as it wants data to be viewable on the console. This causes an error, though, as writes to /dev/console fail in this case. Additional information: * upstart closes all file descriptors (stdin/stdout/stderr) and re-opens them, explicitly setting /dev/console as its stdin, stdout, stderr. So, even an attempt to redirect /sbin/init output elsewhere (such as to /dev/tty0 if /dev/ttyS0 did not exist) from the initramfs would be unsuccessful. * kexec'ing with different parameters from inside the initramfs (removing the bad console=) really isn't an option, as the kernel/initrmafs is pxebooted, and we dont even have simple access to those. Relative links: * kernel serial console doc: http://www.kernel.org/doc/Documentation/serial-console.txt * thread about re-assigning /dev/console: http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg246433.html Other info from system: http://paste.ubuntu.com/1261109/ shows the /var/lib/cloud/instance/userdata.txt http://pastebin.ubuntu.com/1261098/ shows /var/log/cloud-init.log http://paste.ubuntu.com/1261129/ shows the output when running "cloud-init --debug modules --mode=final" manually. In this case it finishes and successfully commissions. Running: sudo start cloud-final shows: start: Job failed to start Also: $ runlevel N 2 $ sudo status rc rc stop/waiting
2012-10-05 14:35:30 Scott Moser bug task deleted cloud-init (Ubuntu)
2012-10-09 15:42:12 Launchpad Janitor branch linked lp:~smoser/maas/drop-ttyS0-kernel-opt
2012-10-09 17:52:38 Francis J. Lacoste maas: status Triaged In Progress
2012-10-09 19:24:06 MAAS Lander maas: status In Progress Fix Committed
2012-10-10 00:10:46 Julian Edwards maas: status Fix Committed Fix Released