AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080312110959.2a3815ba@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<kumarv@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E08D2A55A@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 12 Mar 2008 11:10:28 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Kumar Vakacharla (HCL)" <kumarv@onstor.com>
Subject: Re: Defect  TED00021741 [Cougar] user with CLUSTER,SECURITY in
 clustesr priveleges cannot find or view elog messages
Message-ID: <20080312111028.32589952@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E08D2A55A@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E08D2A078@onstor-exch02.onstor.net>
	<20080311155245.24cc6fab@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E08D2A105@onstor-exch02.onstor.net>
	<20080311164220.32f4c2ff@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E08D2A55A@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Go ahead and fix that bug then.  The 'weekly' means that it will be
rotated weekly or by size, whichever comes first.  I think that's fine.

On Wed, 12 Mar 2008 11:01:23 -0700 "Kumar Vakacharla (HCL)"
<kumarv@onstor.com> wrote:

> Andy, 
> 
> 	Yes, your approach is fine but I don't understand the need of
> creating a separate file for that purpose. Instead we can directly
> define the macro in /etc/cron.weekly/sysklogd itself. Please clarify??
> (we need to incorporate similar change in /etc/cron.daily/sysklogd as
> well)
> 
> I also found that command "logrotate /etc/logrotate.conf" is failing
> because of a syntax error in /etc/logrotate.d/onstor and
> /etc/logrotate.d/exim4-base files. We have used "K" instead of small
> letter "k" while specifying the size. 
> 
> Are we supposed to rotate elog messages weekly ?? Since I have seen it
> configured that manner in conf file /etc/logrotate.d/onstor .
> 
> /var/log/onstor/messages {
>         size 60K <-------------------------  should be small letter
> "k" rotate 5
>         weekly  <------------------------------
>         compress
>         delaycompress
>         create 644 root root
>         sharedscripts
>         postrotate
>                 /usr/bin/killall -HUP syslogd
>                 /onstor/bin/emrscron -s elog0 &
>         endscript
> }
> 
> I am planning to remove "weekly" property it as log may go very big.
> 
> Finally, I am unable to find the conf files
> "etc/cron.weekly/sysklogd", "etc/cron.daily/sysklogd" and
> "/etc/logrotate.d/exim4-base" in the branch. Will these files be
> generated during the build?? If so we need to change upgrade script
> to handle this..Is it right??
> 
> 
> Thanks,
> Kumar.
> 
> 
> 
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Tuesday, March 11, 2008 4:42 PM
> To: Kumar Vakacharla (HCL)
> Subject: Re: Defect TED00021741 [Cougar] user with CLUSTER,SECURITY in
> clustesr priveleges cannot find or view elog messages
> 
> OK, I'll assign 22673 to you as well.  Go ahead and send the changes
> you make to me for review as I am interested in this.
> 
> Here is a change I was thinking about for the savelog v. logrotate
> problem, but I'm not sure it's the only way or even the best way.  I
> don't know where /etc/syslog.conf currently comes from, but it's a
> sure bet we will have to modify it to fix 22673.
> 
> I have not coded it or tried to test it.
> 
> 
> Add a file /etc/default/sysklogd-listfiles to the release.  that would
> be <branch>/linux/rootfs/etc/default/sysklogd-listfiles
> The file should contain the line
> 
> SYSKLOGD_LIST_EXCLUDE_FILES=/var/log/onstor
> 
> 
> Then,
> 
> Change line 29 of file /etc/cron.weekly/sysklogd from
> 
> for LOG in `syslogd-listfiles --weekly`
> 
> to 
> 
> for LOG in `syslogd-listfiles $DONT_LIST --weekly`
> 
> 
> Then add code after the three test lines at the beginning similar to
> this:
> 
> if [ -r /etc/default/sysklogd-listfiles ] ; then
> 	. /etc/default/sysklogd-listfiles
> fi
> 
> DONT_LIST=
> if [ "$SYSKLOGD_LIST_EXCLUDE_FILES" ] ; then
> 	DONT_LIST="-s $SYSKLOGD_LIST_EXCLUDE_FILES"
> fi
> 
> 
> 
> On Tue, 11 Mar 2008 16:03:50 -0700 "Kumar Vakacharla (HCL)"
> <kumarv@onstor.com> wrote:
> 
> > Andy, 
> > 
> > 	Not a problem you can assign me other log related bugs also
> > as I am working on this. 
> > 
> > I might need your inputs if at all I am struck at some point of
> > time. 
> > 
> > Thanks,
> > Kumar.
> > 
> > -----Original Message-----
> > From: Andy Sharp 
> > Sent: Tuesday, March 11, 2008 3:53 PM
> > To: Kumar Vakacharla (HCL)
> > Subject: Re: Defect TED00021741 [Cougar] user with CLUSTER,SECURITY
> > in clustesr priveleges cannot find or view elog messages
> > 
> > Kumar,
> > 
> > Are you working on this?  I can throw it in with all the other
> > logging related bugs I'm working on if you haven't gotten too far.
> > Or, I can throw those bugs over to you ~:^)  There is at least
> > another bug which is related in that it probably will require some
> > fine tuning of syslog.conf. (TED00022673 - /var full on g5r204. log
> > files are taking all the space.)
> > 
> > Let me know.
> > 
> > On Tue, 11 Mar 2008 14:52:43 -0700 "Kumar Vakacharla (HCL)"
> > <kumarv@onstor.com> wrote:
> > 
> > > Andy, 
> > > 
> > >  
> > > 
> > >       This problem is related to permissions of the elog messages
> > > file. 
> > > 
> > >       In cougar, "/var/log/onstor/messages" files are being
> > > created with permission 0x640 and as a result any users who
> > > logged into to the system with their local useraccount are ending
> > > up with the error "Permission Denied" when they try to execute
> > > "elog show " or "elog find" command.
> > > 
> > > Only root login can execute these commands. 
> > > 
> > >  
> > > 
> > > I have found that this is happening because of the savelog program
> > > which is responsible for rotating files. 
> > > 
> > >  
> > > 
> > > File: /etc/cron.daily/sysklogd
> > > 
> > >  
> > > 
> > >   savelog -g adm -m 640 -u root -c 7 $LOG >/dev/null
> > > 
> > >  
> > > 
> > > So the savelog program is creating new files with 0x640
> > > permissions.
> > > 
> > >  
> > > 
> > >  
> > > 
> > > I think this problem should not be present now because you have
> > > changed log rotation mechanism in linux so that it uses logrotate.
> > > (change list :28107)
> > > 
> > > But in the latest submittals still I see that these files are
> > > getting created with 0x640 even though conf file says files should
> > > be created with 
> > > 
> > > 0x644. 
> > > 
> > >  
> > > 
> > > File: /etc/logrotate.d/onstor
> > > 
> > >  
> > > 
> > > /var/log/onstor/messages {
> > > 
> > >     size 60K
> > > 
> > >     rotate 5
> > > 
> > >     weekly
> > > 
> > >     compress
> > > 
> > >     delaycompress
> > > 
> > >     create 644 root root <-------------- 
> > > 
> > >     sharedscripts
> > > 
> > >     postrotate
> > > 
> > >         /usr/bin/killall -HUP syslogd
> > > 
> > >         /onstor/bin/emrscron -s elog0 &
> > > 
> > >     endscript
> > > 
> > > }
> > > 
> > >  
> > > 
> > > Please clarify me whether you have changed log rotation mechanism
> > > in cougar to use logrotate instead of default syslogd rotation  so
> > > that I can proceed further.
> > > 
> > >  
> > > 
> > > Please correct me if I am wrong. 
> > > 
> > >  
> > > 
> > > Thanks,
> > > 
> > > Kumar.
> > > 
> > >  
> > > 
> > >  
> > > 
> > > -----Original Message-----
> > > From: tim.gardner@onstor.com [mailto:tim.gardner@onstor.com] 
> > > Sent: Tuesday, March 11, 2008 12:17 AM
> > > To: Kumar Vakacharla (HCL); May Ma
> > > Cc: Sandrine Boulanger; Vikas Saini
> > > Subject: Defect TED00021741 [Cougar] user with CLUSTER,SECURITY in
> > > clustesr priveleges cannot find or view elog messages
> > > 
> > >  
> > > 
> > > id: TED00021741
> > > 
> > > Headline: [Cougar] user with CLUSTER,SECURITY in clustesr
> > > priveleges cannot find or view elog messages
> > > 
> > > State: Assigned
> > > 
> > > Submitter: maym
> > > 
> > > Severity: 2-Major
> > > 
> > > Note_Entry: 
> > > 
> > > Area_of_problem: SW-Privileges
> > > 
> > > Release_Project: Cougar
> > > 
> > >  
> > > 
> > >  
> > > 
