Bug 1073715 - directory-grouping configuration is not getting persisted via CLI when no servers defined.
Summary: directory-grouping configuration is not getting persisted via CLI when no ser...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management
Version: 6.2.0
Hardware: All
OS: All
medium
medium
Target Milestone: DR4
: EAP 6.3.0
Assignee: Emanuel Muckenhuber
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-07 02:22 UTC by Jay SenSharma
Modified: 2018-12-04 17:43 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:32:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-3078 0 Major Closed directory-grouping configuration is not getting persisted via CLI when no servers defined 2018-02-08 07:20:36 UTC

Description Jay SenSharma 2014-03-07 02:22:20 UTC
Description of problem:
=======================
If none of the servers are defined in "host.xml" (means <servers></servers> empty tag is present) and if the user tries to run the following CLI command to change the "directory-grouping" to  "by-type"  then the value is not persisted in the configuration file (host.xml) and the <servers></servers>  tag is also removed from the host.xml

/host=master/:write-attribute(name=directory-grouping,value=by-type)

The value of "directory-grouping" is stored "in memory" so this change does not survive the host restart.



Version-Release number of selected component (if applicable):
JBoss Enterprise Application Platform 6.2.0

How reproducible:
===============
Steps to Reproduce:
1). Take a defaule JBoss EAP 6.2 installation and Start JBoss in domain mode. 

2). Remove the default servers. 

/host=master/server-config=server-one/:stop
/host=master/server-config=server-one/:remove
/host=master/server-config=server-two/:stop
/host=master/server-config=server-two/:remove
/host=master/server-config=server-three/:stop
/host=master/server-config=server-three/:remove

3). Check the "host.xml" file the empty <servers></servers> tag is present.

4) Apply the directory-grouping configuration.

/host=master/:write-attribute(name=directory-grouping,value=by-type)

5). Check the "host.xml", It can be seen that the <servers></servers> tag is removed.  As the "directory-grouping" information is not persisted in the XML file hence it is lost when we restart the Host controller.


Actual results:
==================
In "host.xml" file the "directory-grouping" should have persisted so that it could survive the host restart.



Expected results:


Additional info:

Comment 2 Kabir Khan 2014-03-11 09:43:28 UTC
https://github.com/jbossas/jboss-eap/pull/1036

Comment 3 Petr Kremensky 2014-03-12 13:04:37 UTC
This didn't make it into DR3.

Comment 4 Petr Kremensky 2014-03-13 07:40:59 UTC
Verified on EAP 6.3.0.DR4

Comment 5 JBoss JIRA Server 2014-03-13 10:43:07 UTC
Emanuel Muckenhuber <emuckenh> updated the status of jira WFLY-3078 to Resolved


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