[Bug 780237] New: forked cron is logged in uppercase.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c0 Summary: forked cron is logged in uppercase. Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: per@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0 When a cronjob is started, the name of the executable is logged in uppercase, for instance: /USR/SBIN/CRON[9955]: (root) CMD ( logger -i -p debug testing 1-2-3) In earlier releases, /usr/sbin/cron was correctly written in lowercase. I've just upgraded a production system to 12.2, and noticed a log-analysis script failing because it was expecting 'cron', not 'CRON'. I guess one of our patches was left out when we migrated from vixie-cron to cronie? Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c Per Jessen <per@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |vdziewiecki@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c1 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |per@opensuse.org --- Comment #1 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-09-14 14:06:22 UTC --- Hi Per, from what version did you upgrade to 12.2? AFAIK vixie-cron was last used in 11.3?
In earlier releases, /usr/sbin/cron was correctly written in lowercase. Well, in which release? Are you sure it was written in lowercase? http://man.cx/cron%288%29 says: The children copies of cron running these processes have their name coerced to uppercase, as will be seen in the syslog and ps output.
And that is a Vixie Cron manpage... And I couldn't find any patches addressing this in 11.3 or SLE. So I don't think this is a bug, it's just the way that cron behaves. Wojtek -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c2 Per Jessen <per@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|per@opensuse.org | --- Comment #2 from Per Jessen <per@opensuse.org> 2012-09-14 14:20:35 UTC --- Hi Wojtek (In reply to comment #1)
Hi Per, from what version did you upgrade to 12.2? AFAIK vixie-cron was last used in 11.3?
I think this box was upgraded from 12.1, maybe 11.[34]. I think you're right that cronie was introduced in 11.4. It's just taken us a little long to find this problem.
In earlier releases, /usr/sbin/cron was correctly written in lowercase. Well, in which release?
11.[023] for instance.
Are you sure it was written in lowercase?
Absolutely. Here's a log-excerpt from an 11.0 system: # cat /etc/SuSE-release openSUSE 11.0 (i586) VERSION = 11.0 # grep cron /var/log/messages Sep 14 02:55:01 neon /usr/sbin/cron[8027]: (root) CMD ( /root/bin/rsync-backup) # rpm -qf /usr/sbin/cron cron-4.1-172.1 My workstation is still running 10.3, cron is written in lowercase.
http://man.cx/cron%288%29 says: The children copies of cron running these processes have their name coerced to uppercase, as will be seen in the syslog and ps output.
And that is a Vixie Cron manpage... And I couldn't find any patches addressing this in 11.3 or SLE.
The openSUSE man page doesn't mention any such thing.
So I don't think this is a bug, it's just the way that cron behaves.
No, the uppercase clearly appeared with the introduction of cronie. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c3 --- Comment #3 from Per Jessen <per@opensuse.org> 2012-09-14 14:25:34 UTC --- Created an attachment (id=505852) --> (http://bugzilla.novell.com/attachment.cgi?id=505852) grep cron /var/log/messages
From our nameserver which is running 11.3. cron is from cron-4.1-210.1.i586.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c4 --- Comment #4 from Per Jessen <per@opensuse.org> 2012-09-14 14:29:17 UTC --- List of patches - http://en.opensuse.org/Cron_replace#Patches_in_openSUSE_vixie-cron might it be pathnames.diff ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c5 --- Comment #5 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-09-14 16:29:24 UTC --- Created an attachment (id=505869) --> (http://bugzilla.novell.com/attachment.cgi?id=505869) patchnames patch No I doubt it's this one. I will look into it next week. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c6 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de --- Comment #6 from Christian Boltz <suse-beta@cboltz.de> 2012-09-14 21:00:13 CEST --- (In reply to comment #2)
It's just taken us a little long to find this problem.
And this might be a problem in itsself ;-) In this case the question is: Does "fixing" this bug cause more harm than good? Don't get me wrong - in general, I'm all for fixing bugs - but in this case, how many log-analysis scripts etc. (which expect uppercase CRON in the meantime) will we break? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c7 --- Comment #7 from Per Jessen <per@opensuse.org> 2012-09-14 19:23:17 UTC --- (In reply to comment #6)
(In reply to comment #2)
It's just taken us a little long to find this problem.
And this might be a problem in itsself ;-) In this case the question is: Does "fixing" this bug cause more harm than good?
Don't get me wrong - in general, I'm all for fixing bugs - but in this case, how many log-analysis scripts etc. (which expect uppercase CRON in the meantime) will we break?
It's a good question, but if we assume that the same amount of new scripts are written per release, it's easily answered: lowercase cron output in releases 7.x/8.x/9.x/10.x/11.x uppercase cron output in releases 11.4,12.1 There's no way of really answering the question, but probabilistically speaking, the change to uppercase in 11.4 broke more scripts than a change back now will break. 12.1 and 12.2 have not yet been put into production in many places. I think we should revert to lowercase, using the same argument that was applied whenever it was changed to lowercase. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
lowercase cron output in releases 7.x/8.x/9.x/10.x/11.x uppercase cron output in releases 11.4,12.1
There's no way of really answering the question, but probabilistically speaking, the change to uppercase in 11.4 broke more scripts than a change back now will break. 12.1 and 12.2 have not yet been put into production in many places. Well, the change to uppercase in 11.4 broke some scripts, but I believe most of
I think we should revert to lowercase, using the same argument that was applied whenever it was changed to lowercase. And what argument was that? I don't know because I didn't maintain cron back
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c8 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |WONTFIX --- Comment #8 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-09-21 11:23:40 UTC --- (In reply to comment #7) them have been adjusted to work with uppercase and now they would be broken again. then, and there is nothing about it in .changes files. So I believe this should be left as is (and not because I'm too lazy to fix it). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c9 --- Comment #9 from Per Jessen <per@computer.org> 2012-09-25 07:27:57 UTC --- (In reply to comment #8)
(In reply to comment #7)
lowercase cron output in releases 7.x/8.x/9.x/10.x/11.x uppercase cron output in releases 11.4,12.1
There's no way of really answering the question, but probabilistically speaking, the change to uppercase in 11.4 broke more scripts than a change back now will break. 12.1 and 12.2 have not yet been put into production in many places.
Well, the change to uppercase in 11.4 broke some scripts, but I believe most of them have been adjusted to work with uppercase and now they would be broken again.
Well, I _believe_ the exact opposite.
I think we should revert to lowercase, using the same argument that was applied whenever it was changed to lowercase.
And what argument was that?
See for instance http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=15258 That UNIX/Linux is case-sensitive and that logging /USR/BIN/CRON is simply wrong because there is no executable with that name. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c10 --- Comment #10 from Lars Müller <lmuelle@suse.com> 2012-10-06 23:30:39 CEST --- This issue also got discussed as part of a thread at the general openSUSE list. See http://lists.openSUSE.org/opensuse/2012-09/msg00930.html for the starting point. The main argument there is: Debian reverted the change. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=15258 But when you read this defect report you don't find a reason why they reverted it. See also the valid argument Christian provided with his comment #6 Therefore I suggested to discuss this upstream instead of reverting back to the behavior as it was with openSUSE 11.3. Vojtech explained the reasoning already in his reply with comment #1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780237 https://bugzilla.novell.com/show_bug.cgi?id=780237#c11 --- Comment #11 from Per Jessen <per@computer.org> 2012-10-07 08:06:50 UTC --- (In reply to comment #10)
This issue also got discussed as part of a thread at the general openSUSE list. See http://lists.openSUSE.org/opensuse/2012-09/msg00930.html for the starting point.
The main argument there is: Debian reverted the change. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=15258
But when you read this defect report you don't find a reason why they reverted it. See also the valid argument Christian provided with his comment #6
Therefore I suggested to discuss this upstream instead of reverting back to the behavior as it was with openSUSE 11.3.
I brought the issue up with upstream: https://lists.fedorahosted.org/pipermail/cronie-devel/2012-October.txt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com