Bug 754917 - logs per dir and log max disk space conflict
Summary: logs per dir and log max disk space conflict
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: 389
Classification: Retired
Component: Directory Console
Version: 1.2.5
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-18 08:19 UTC by Moisés Barba Pérez
Modified: 2015-01-04 23:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-22 00:55:26 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.