[Users] oVirt Log Rotate cron job

--_e73b62a6-86ab-4976-9617-a53425919454_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I happened to catch this in my mail. Looks like a bug (do I file a bugzilla= and/or win a prize? :p). #tail /var/spool/mail/root Message-Id: <201205192145.q4JLj5Pb003812@oVirtManager> From: Anacron <root@oVirtManager> To: root@oVirtManager Content-Type: text/plain=3B charset=3D"ANSI_X3.4-1968" Subject: Anacron job 'cron.daily' on oVirtManager/etc/cron.daily/ovirt-cron= :/etc/cron.daily/ovirt-cron: line 4: /usr/share/ovirt/scripts/ovirtlogrot.s= h: No such file or directory Looking at the file:# cat /etc/cron.daily/ovir= t-cron #!/bin/sh#compress log4j log files=2C delete old ones /usr/share/ovirt/scripts/ovirtlogrot.sh /var/log/ovirt-engine 480 > /dev/nu= llEXITVALUE=3D$? if [ $EXITVALUE !=3D 0 ]=3B then /usr/bin/logger -t rhevm "ALERT exited abnormally with [$EXITVALUE]" fi exit $EXITVALUE We can see that it is looking for /usr/share/ovirt/scripts/ovirtlogrot.sh = . However=2C that file is located at /usr/share/ovirt-engine/scripts/ovirtl= ogrot.sh = --_e73b62a6-86ab-4976-9617-a53425919454_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 10pt=3B font-family:Tahoma } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'> I happened to catch this in my mail. Looks like a bug (do I file a bugzilla= and/or win a prize? :p).<BR> =3B<BR>#tail /var/spool/mail/root<br>Mess= age-Id: <=3B<a href=3D"mailto:201205192145.q4JLj5Pb003812@oVirtManager">2= 01205192145.q4JLj5Pb003812@oVirtManager</a>>=3B<br>From: Anacron <=3B<a= href=3D"mailto:root@oVirtManager">root@oVirtManager</a>>=3B<br>To: <a hr= ef=3D"mailto:root@oVirtManager">root@oVirtManager</a><br>Content-Type: text= /plain=3B charset=3D"ANSI_X3.4-1968"<br>Subject: Anacron job 'cron.daily' o= n oVirtManager<BR>/etc/cron.daily/ovirt-cron:<BR>/etc/cron.daily/ovirt-cron= : line 4: /usr/share/ovirt/scripts/ovirtlogrot.sh: No such file or director= y<BR> =3B<BR>Looking at the file:<BR># cat /etc/cron.daily/ovirt-cron<b= r>#!/bin/sh<BR>#compress log4j log files=2C delete old ones<br>/usr/share/o= virt/scripts/ovirtlogrot.sh /var/log/ovirt-engine 480 >=3B /dev/null<BR>E= XITVALUE=3D$?<br>if [ $EXITVALUE !=3D 0 ]=3B then<br> =3B =3B = =3B /usr/bin/logger -t rhevm "ALERT exited abnormally with [$EXITVALUE]"<br=
fi<br>exit $EXITVALUE<br><BR> =3B<BR>We can see that it is looking for= /usr/share/ovirt/scripts/ovirtlogrot.sh . However=2C that file is located = at /usr/share/ovirt<strong>-engine</strong>/scripts/ovirtlogrot.sh<BR> = </div></body> </html>=
--_e73b62a6-86ab-4976-9617-a53425919454_--

Good catch! Please open a bz for it. As always- patches are welcomed ;) On 20/05/12 05:08, Nicholas Kesick wrote:
I happened to catch this in my mail. Looks like a bug (do I file a bugzilla and/or win a prize? :p).
#tail /var/spool/mail/root Message-Id: <201205192145.q4JLj5Pb003812@oVirtManager <mailto:201205192145.q4JLj5Pb003812@oVirtManager>> From: Anacron <root@oVirtManager <mailto:root@oVirtManager>> To: root@oVirtManager <mailto:root@oVirtManager> Content-Type: text/plain; charset="ANSI_X3.4-1968" Subject: Anacron job 'cron.daily' on oVirtManager /etc/cron.daily/ovirt-cron: /etc/cron.daily/ovirt-cron: line 4: /usr/share/ovirt/scripts/ovirtlogrot.sh: No such file or directory
Looking at the file: # cat /etc/cron.daily/ovirt-cron #!/bin/sh #compress log4j log files, delete old ones /usr/share/ovirt/scripts/ovirtlogrot.sh /var/log/ovirt-engine 480 > /dev/null EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t rhevm "ALERT exited abnormally with [$EXITVALUE]" fi exit $EXITVALUE
We can see that it is looking for /usr/share/ovirt/scripts/ovirtlogrot.sh . However, that file is located at /usr/share/ovirt*-engine*/scripts/ovirtlogrot.sh
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Doron Fediuck
-
Nicholas Kesick