Bug 1278584

Summary: Share nsslapd-threadnumber in the case nunc-stans is enabled, as well.
Product: Red Hat Enterprise Linux 7 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: jkurik, msauton, nkinder, rmeggins
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.5.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1278729 (view as bug list) Environment:
Last Closed: 2016-11-03 20:37:13 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: 1278729    

Description Noriko Hosoi 2015-11-05 21:04:41 UTC
When nunc-stans is enabled, instead of getting the thread number from the environment variable:
{{{
  if (getenv("MAX_THREADS")) {
    maxthreads = atoi(getenv("MAX_THREADS"));
  }
}}}
use the value of config parameter nsslapd-threadnumber.

Comment 1 Marc Sauton 2015-11-05 22:39:12 UTC
added "Internal Whiteboard" set to GSSApproved for rhel-7.2.z

Comment 3 Mike McCune 2016-03-28 23:13:32 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Viktor Ashirov 2016-06-08 13:40:53 UTC
Build tested:
389-ds-base-1.3.5.4-1.el7.x86_64

# tail -n1 /etc/profile
export MAX_THREADS=100

nsslapd-threadnumber: 30
nsslapd-enable-nunc-stans: off

# ps huH p $(pidof ns-slapd) | wc -l
41

nsslapd-enable-nunc-stans: on
# ps huH p $(pidof ns-slapd) | wc -l
72

See also https://bugzilla.redhat.com/show_bug.cgi?id=1285901#c1 
Marking as VERIFIED

Comment 7 errata-xmlrpc 2016-11-03 20:37:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2594.html