Bug 1927051 - Changes in the "Tuning & Limits" are saved in LDAP but the Console shows the previous value.
Summary: Changes in the "Tuning & Limits" are saved in LDAP but the Console shows the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-09 23:31 UTC by Têko Mihinto
Modified: 2021-04-19 09:55 UTC (History)
4 users (show)

Fixed In Version: redhat-ds-11-8030020210304204141-0b92cc7b
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-19 09:54:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5790411 0 None None None 2021-02-10 00:12:10 UTC
Red Hat Product Errata RHSA-2021:1243 0 None None None 2021-04-19 09:55:08 UTC

Description Têko Mihinto 2021-02-09 23:31:03 UTC
Description of problem:
Any change made in "Tuning & Limits" under the "Server Settings" tab is saved in LDAP
after the user clicks on the "Save" button but the Console reloads the previous value.

The "Reload" icon doesn't trigger any action.

Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
$
$ rpm -qa | grep 389-ds
389-ds-base-libs-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
cockpit-389-ds-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.noarch
389-ds-base-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
$

How reproducible:
Always.

Steps to Reproduce:
1. Change any parameter and click on the "Save" button.
For instance, change the "Number Of Worker Threads" from 16 to 24.
The following command is launched to save the changed value in LDAP:

CMD: saveConfig: Saving Tuning configuration ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-<INSTANCE>.socket config replace nsslapd-threadnumber=24

2. Check the value:
$ sudo dsconf ldapi://%2fvar%2frun%2fslapd-<INSTANCE>.socket config get nsslapd-threadnumber
nsslapd-threadnumber: 24
$

3. The Console still shows the previous value ( 16 ).
The reload button doesn't help.
Reloading the page shows the new value.

Actual results:
The previous value is still shown.

Expected results:
The Console should show the new value.

Additional info:

Maybe
* either implement a reloadConfig() in tuning.jsx as in settings.jsx
* or update the state object once the change is successfully done in LDAP.

Comment 3 Gilbert Kimetto 2021-03-15 16:15:56 UTC
Replicated the issue as stated above with the following:

# rpm -qa | grep 389-ds
389-ds-base-libs-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
389-ds-base-devel-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
389-ds-base-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
389-ds-base-snmp-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
cockpit-389-ds-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.noarch
389-ds-base-legacy-tools-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64

-Launched console and created an instance
-Navigated to : Red Hat Directory Server --> Tuning & Limits
- Set the value in the "Number Of Worker Threads" from 16 to 24 as stated in the bug
- Hit "Save" and nothing happened still shows 16 in the UI. 

Updated to the fixed version of RHDS 
rpm -qa | grep 389
389-ds-base-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.x86_64
cockpit-389-ds-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.noarch
python3-lib389-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.noarch
389-ds-base-snmp-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.x86_64
389-ds-base-legacy-tools-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.x86_64
linux-firmware-20200619-99.git3890db36.el8.noarch
389-ds-base-libs-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.x86_64
389-ds-base-devel-1.4.3.21-2.module+el8dsrv+10309+dd9f990e.x86_64

Repeated the steps above and the value is updated from 16 --> 24

**NOTE 

I had to log out of my old session to get the fix to work.

Comment 4 mreynolds 2021-03-15 18:09:02 UTC
This does not sound like its working correctly.  After making the change, the UI should immediately reflect the new value...

Comment 5 mreynolds 2021-03-15 19:50:46 UTC
(In reply to mreynolds from comment #4)
> This does not sound like its working correctly.  After making the change,
> the UI should immediately reflect the new value...

I tested this, and it is working correctly for me.

Comment 7 errata-xmlrpc 2021-04-19 09:54:31 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 (Moderate: redhat-ds:11 security and bug fix update), 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-2021:1243


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