Bug 1526928

Summary: search with CoS attribute is getting slower after modifying/adding CosTemplate [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: urgent    
Version: 7.4CC: bsingley, gparente, hmiura, knakai, msauton, nkinder, rmeggins, thirayam, tkubota, wibrown
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.6.1-25.el7_4 Doc Type: Bug Fix
Doc Text:
Due to a bug, using a large number of Class of Service (CoS) templates in Directory Server increased the virtual attribute processing time. This update improves the structure of the CoS storage. As a result, using a large number of CoS templates no longer increases the virtual attribute processing time.
Story Points: ---
Clone Of: 1523183 Environment:
Last Closed: 2018-01-25 12:22:50 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: 1523183    
Bug Blocks:    

Description Oneata Mircea Teodor 2017-12-18 08:17:34 UTC
This bug has been copied from bug #1523183 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 4 Viktor Ashirov 2018-01-05 13:31:57 UTC
Build tested:
389-ds-base-1.3.6.1-25.el7_4.x86_64

CoS test suite from acceptance tests passes 100% without a crash.

CoS scale stress test passes:

===================================================================== test session starts =====================================================================
platform linux -- Python 3.6.3, pytest-3.3.2, py-1.5.2, pluggy-0.6.0 -- /opt/rh/rh-python36/root/usr/bin/python3
cachedir: .cache
metadata: {'Python': '3.6.3', 'Platform': 'Linux-3.10.0-693.el7.x86_64-x86_64-with-redhat-7.4-Maipo', 'Packages': {'pytest': '3.3.2', 'py': '1.5.2', 'pluggy': '0.6.0'}, 'Plugins': {'metadata': '1.5.1', 'html': '1.16.1'}}
389-ds-base: 1.3.6.1-25.el7_4
nss: 3.28.4-8.el7
nspr: 4.13.1-1.0.el7_3
openldap: 2.4.44-5.el7
svrcore: 4.1.3-2.el7

rootdir: /export/tests, inifile:
plugins: metadata-1.5.1, html-1.16.1
collected 1 item                                                                                                                                              

stress/cos/cos_scale_template_test.py::test_indirect_template_scale PASSED                                                                              [100%]

------------------------------------------------ generated xml file: /mnt/tests/rhds/tests/upstream/report.xml ------------------------------------------------
----------------------------------------------- generated html file: /mnt/tests/rhds/tests/upstream/report.html -----------------------------------------------
================================================================== 1 passed in 46.32 seconds ==================================================================

Marking as VERIFIED.

Comment 8 errata-xmlrpc 2018-01-25 12:22:50 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://access.redhat.com/errata/RHSA-2018:0163