Bug 1073715

Summary: directory-grouping configuration is not getting persisted via CLI when no servers defined.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jay SenSharma <jsenshar>
Component: Domain ManagementAssignee: Emanuel Muckenhuber <emuckenh>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: medium    
Version: 6.2.0CC: brian.stansberry, dandread, emuckenh, kkhan, sjadhav
Target Milestone: DR4   
Target Release: EAP 6.3.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-28 15:32:10 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 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