Bug 852632 - [as7] Cluster Connection property update renders AS7 configuration file invalid
Summary: [as7] Cluster Connection property update renders AS7 configuration file invalid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.5.0
Assignee: Stefan Negrea
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin 852666
TreeView+ depends on / blocked
 
Reported: 2012-08-29 07:47 UTC by Stefan Negrea
Modified: 2013-09-01 09:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 852666 (view as bug list)
Environment:
Last Closed: 2013-09-01 09:59:19 UTC
Embargoed:


Attachments (Terms of Use)

Description Stefan Negrea 2012-08-29 07:47:21 UTC
Description of problem:
Updates to [allow-direct-connections-only] property of cluster connection renders the configuration file for AS7 invalid. The server cannot be restarted/reloaded without manual updates to the configuration file.

The AS7 server writes the [allow-direct-connections-only] property as an XML attribute of [static-connectors] property. But the [static-connectors] and [discovery-group-name] cannot be both defined at the same time. So if the [discovery-group-name] is configured and the user updates [allow-direct-connections-only], the the two fields that should not be defined at the same time are now defined in the configuration file. 

The problem:
[discovery-group-name] is defined because the user set it non-null value, and 
[static-connectors] is defined because it has the attribute for the value of [allow-direct-connections-only]. 

This is not an RHQ plugin bug. This an AS7 bug and the only work-around until the application server is fixed is to remove [allow-direct-connections-only] property from cluster connections. 

Path of affected resources:
*/subsystem=messaging/hornetq-server=*/cluster-connection=*

How reproducible:
Every time.

Steps to Reproduce:
1. Discovery and import an AS7 standalone server
2. Find resources at the addresses mentioned above
3. Attempt to update [Allow Direct Connections Only] property
4. Update another property and save
5. Send a reload operation to the server

Expected results:
[Allow Direct Connections Only] property is not available for configuration. The configuration is updated and the server reloads successfully.

Comment 1 Stefan Negrea 2012-08-29 08:52:09 UTC
Remove allow-direct-connections-only property from configuration to prevent sending the value to the application server. If this property is not left undefined, the configuration file for the server becomes invalid if the user attempts to use discovery-group-name.

Comment 3 Heiko W. Rupp 2013-09-01 09:59:19 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


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