Bug 754917

Summary: logs per dir and log max disk space conflict
Product: [Retired] 389 Reporter: Moisés Barba Pérez <mbarper>
Component: Directory ConsoleAssignee: Rich Megginson <rmeggins>
Status: CLOSED WORKSFORME QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.2.5CC: benl, nhosoi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-22 00:55:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Moisés Barba Pérez 2011-11-18 08:19:14 UTC
Description of problem:If try to modify "nsslapd-<access/errors/audit>log-logmaxdiskspace" to -1 setting to unlimited the use of disk space, the dirsrv console say that the value is lower than "nsslapd-<access/errors/audit>log-maxlogsperdir" which can't have a value of -1. Using ldapmodify (for example) it is possible to modify it fine.


Version-Release number of selected component (if applicable): 
389-console-1.1.7-3.el5.noarch.rpm
389-ds-base-1.2.5-1.el5


How reproducible: Just try to change the values of any of the logs with the console.


Steps to Reproduce:
1.
2.
3.
  
Actual results:Not possible to change logmaxdiskspace to -1


Expected results: Be able to change the logmaxdiskspace to -1 and overrides maxlogsperdir


Additional info: Besides, if you can let all disk space for logs if they need it, should be possible to unset the maxlogperdir or overrides it.

Comment 1 Noriko Hosoi 2011-12-22 00:55:26 UTC
I'm using this combination. 
389-ds-console-1.2.6-1.fc15.noarch
389-ds-base-1.2.9.10-2.fc15.x86_64

I could put "-1" to "When totla log size exceeds:" box in Deletion policy on the DS Console log pane.  And it's verified that the value -1 is set to the config file:
  # egrep maxdiskspace /etc/dirsrv/slapd-ID/dse.ldif
  nsslapd-accesslog-logmaxdiskspace: -1
  nsslapd-errorlog-logmaxdiskspace: -1

Here are my maxlogsperdir values:
  # egrep maxlogsperdir /etc/dirsrv/slapd-kiki/dse.ldif
  nsslapd-accesslog-maxlogsperdir: 10
  nsslapd-errorlog-maxlogsperdir: 2

I can increase the value on the console ("Maximum number of logs" box) as needed.
  # egrep maxlogsperdir /etc/dirsrv/slapd-kiki/dse.ldif
  nsslapd-accesslog-maxlogsperdir: 10
  nsslapd-errorlog-maxlogsperdir: 4

We recommend to upgrade the Directory Server and Console to the latest.