On Thu, 2008-12-11 at 18:36 -0500, Michael DeHaan wrote:
James Laska wrote:
Greetings,
The following patches are intended to replace cobbler's use of syslog=$server. This set of patches introduces a new snippet intended to run in %pre. The snippet will download a python script called 'anamon.py' from your cobbler server. This script "borrows" _heavily_ code written by Mike McLean which is included in koji. This service will monitor your installing system and send logfile changes back to your cobbler server using xmlrpclib. In addition to just /tmp/anaconda.log, the script will monitor your installation for changes to the following files: * /tmp/anaconda.log * /tmp/syslog * /tmp/lvmout * /tmp/ks.cfg * /tmp/ks-script.log * /tmp/anacdump.txt * /tmp/modprobe.conf * /mnt/sysimage/root/install.log * /mnt/sysimage/tmp/install.log * /mnt/sysimage/root/upgrade.log * /mnt/sysimage/tmp/upgrade.log
Any changes to these files are sent incrementally back to the server. Note that the anaconda traceback file '/tmp/anacdump.txt' is included in this list. Having this file sent back to the cobbler server can be very useful for failure analysis.
This service is disabled by default and controlled using the anamon_enabled option in /etc/cobbler/settings.
The patches are included in this thread, and also available at git://fedorapeople.org/~jlaska/cobbler.git
Thanks, James _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Thanks very much James,
This is a really cool piece of code and is infinitely better than what we have in Cobbler today for remote syslog tracking.
Since this is a big feature and we are going to get Cobbler 1.4 out soon, I'm going to hold this until I have time to pay attention to this. We'll get this in for 1.5 soon and we can begin testing on it. I'll pull from your git tree a little further down the road -- start a new branch for any new features unrelated to this to make merging easier.
There were two patches included in this thread that were outside to scope of anamon support. Do you think these might make 1.4?
[PATCH] Gracefully handle missing kernel/initrd during 'cobbler sync' * https://fedorahosted.org/pipermail/cobbler/2008-December/001940.html
[PATCH] qemu-kvm cannot emulate other architectures, however x86_64 guest can run x86 distros. * https://fedorahosted.org/pipermail/cobbler/2008-December/001907.html
Longer term, we can also probably surface this data in Cobbler Web so those logs are viewable there.
Ooh, good idea.
Much appreciated!
Hope others find it useful, I plan to use this to aid in installation testing.
Thanks, James