Bug 1816526

Summary: restart instance after plugin enabled/disabled should depend on 'nsslapd-dynamic-plugins' status
Product: Red Hat Directory Server Reporter: sgouvern
Component: cockpit-389-dsAssignee: Simon Pichugin <spichugi>
Status: CLOSED CURRENTRELEASE QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 11.0CC: mreynolds, pasik, spichugi, tbordaz, tmihinto
Target Milestone: ---Keywords: Triaged
Target Release: dirsrv-11.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: When enabling/disabling a plugin, the popup message systematically indicates that the administrator should restart the instance, even if it's not required because 'nsslapd-dynamic-plugin' is on. Consequence: The administrator is misinformed. Fix: After the enabling/disabling plugin, show the "Please, restart the instance." message only when 'nsslapd-dynamic-plugin' is off. Result: The administrator has the correct information.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-13 14:57:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sgouvern 2020-03-24 08:39:43 UTC
Description of problem:
When enabing/disabling a plugin, the popup message systematically indicate to restart the instance, even if not required because 'nsslapd-dynamic-plugin' is on.


Version-Release number of selected component (if applicable):
cockpit-389-ds-1.4.2.9-1.module+el8dsrv+6001+1cbc6dcf.noarch

How reproducible:
always


Steps to Reproduce:
1. Set 'nsslapd-dynamic-plugins' to 'on' 
2. In the Web console, on the 'Plugins' tab, select a plugin
3. Change its status
3.

Actual results:
'xxxx plugin was successfully enabled. Please, restart the instance.'


Expected results:
Message adapted to nsslapd-dynamic-plugins status : 
if off : ask to restart the instance
if on : restart the instance is not required

Additional info: