Logging boot/networking info to serial console for fedora cloud images

Kashyap Chamarthy kchamart at redhat.com
Mon Apr 8 11:54:00 UTC 2013


Hi,

The cirros cloud images[1] appear to run a bunch of useful commands, and log
them to the nova console.log --
/var/lib/nova/instances/instance-foo/console.log by default. It was very useful
for debugging. The file size is just about 16K , and there is no considerable
performance impact either.

IMHO, we could do the same for Fedora cloud images -- which currently do not
log any info to console.log -- by default. it'll be useful troubleshoot
networking and other boot related problems.

Enumerating the list of commands cirros runs for reference:

    $ /etc/rc.d/init.d/sshd start
    $ ifconfig -a
    $ route -n
    $ cat /etc/resolv.conf
    # pinging nameservers
    $ uname -a
    $ dmesg | tail
    $ tail -n 25 /var/log/messages


Thoughts ?

[1] https://launchpadlibrarian.net/83305348/cirros-0.3.0-x86_64-disk.img


-- 
/kashyap


More information about the cloud mailing list