On Mon, Apr 16, 2012 at 9:10 PM, Gonzalo Servat
<gonzalo.servat(a)sirca.org.au> wrote:
On Tue, Apr 17, 2012 at 12:06 PM, James Cammarata
<jimi(a)sngx.net> wrote:
>
> Yes mine looks the same, and my install.log contains the epoch time
> stamp (not the formated one you had). Can you check the
> cobbler/modules/install_{pre,post}_log.py files on your system? They
> look like this in the master branch:
>
> fd = open("/var/log/cobbler/install.log","a+")
> fd.write("%s\t%s\t%s\tstart\t%s\n" % (objtype,name,ip,time.time()))
> fd.close()
Ah, here we go. Cobbler 2.0.x used:
fd.write("%s\t%s\t%s\tstop\t%s\t%s\n" % (objtype, name, ip, dns,
time.strftime("%d/%m/%Y %H:%M:%S")))
... which explains why my install.log files had formatted times. Problem is
that "cobbler status" in Cobbler 2.2.x is not prepared to process
install.log files with formatted times.
Interesting, if that's true it was changed a LONG time ago:
defe28ec (Michael DeHaan 2009-02-12 18:14:24 -0500 28) \
fd.write("%s\t%s\t%s\tstart\t%s\n" % (objtype,name,ip,time.time()))
Frankly I'd just archive your existing log files and start from
scratch (or write a quick shell script to convert them).