Bug 504803

Summary: Not possible to set nsslapd-*-logmaxdiskspace to -1 through fedora-idm-console
Product: [Retired] 389 Reporter: tamarinp
Component: Directory ConsoleAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: low    
Version: 1.2.0CC: amsharma, jgalipea
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 682897 (view as bug list) Environment:
Last Closed: 2015-12-07 16:43:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 434915, 495079, 682897    
Attachments:
Description Flags
ds-console patch
nkinder: review?, rmeggins: review+, nhosoi: review+
ds patch nhosoi: review+

Description tamarinp 2009-06-09 14:43:45 UTC
Description of problem:
It's not possible to set log max total diskspace to -1 in fedora-idm-console. The console states this must be at least equal to the log size, even when the docs state -1 is a valid setting. See
http://www.redhat.com/docs/manuals/dir-server/8.1/admin/Monitoring_Server_and_Database_Activity.html#Viewing_and_Configuring_Log_Files-Defining_a_Log_File_Deletion_Policy under "The maximum size of the combined archived logs".

Seems to work as documented when you set it in dse.ldif directly.

Version-Release number of selected component (if applicable):
fedora-ds-base-1.2.0-3
fedora-idm-console-1.1.3-1


How reproducible:
Always. 

Steps to Reproduce:
1. Start fedora-idm-console 
2. Navigate to instance and select the Logs/Access Log node.
3. Enter -1 for the "When total log size exceeds:" field under deletion policy
  
Actual results:
File size per log field become red and it's impossible to save. 


Expected results:
Should be possible to enter -1 for "infinite".

Additional info:
If -1 has been set by direct dse.ldif editing for one of the log types it becomes impossible to save changes for the others through the console as well. For instance, if you try to change error log settings in the console while -1 has been set in dse.ldif for the access log, then when attempting to save settings an error box will pop up.

Comment 2 Nathan Kinder 2011-03-07 19:29:40 UTC
Created attachment 482772 [details]
ds-console patch

Comment 3 Nathan Kinder 2011-03-07 19:57:10 UTC
Created attachment 482778 [details]
ds patch

Additional patch needed for the directory server code.

Comment 4 Nathan Kinder 2011-03-07 22:16:38 UTC
Thanks to Rich and Noriko for their reviews!  Pushed ds-console patch to master:

Counting objects: 17, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (9/9), 1.01 KiB, done.
Total 9 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds-console.git
   c8566da..d55444d  master -> master

Pushed ds patch to master:

Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.06 KiB, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
   df575d3..d79ff62  master -> master

Comment 5 Nathan Kinder 2011-03-07 22:38:47 UTC
Pushed ds patch to 389-ds-base-1.2.8 branch.

Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.06 KiB, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
   c1bfc3e..235e3a6  128-local -> 389-ds-base-1.2.8

Comment 6 Amita Sharma 2011-07-29 12:12:32 UTC
Tested on Red hat DS console, Working fine for me Hence marking VERIFIED

Followed
===========
1. Start fedora-idm-console 
2. Navigate to instance and select the Logs/Access Log node.
3. Enter -1 for the "When total log size exceeds:" field under deletion policy