Bug 817631 - [as7] Honor the "Configuration" plugin config property when starting or restarting the server
Summary: [as7] Honor the "Configuration" plugin config property when starting or resta...
Keywords:
Status: ON_QA
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin 801638
TreeView+ depends on / blocked
 
Reported: 2012-04-30 17:05 UTC by Lukas Krejci
Modified: 2024-03-04 13:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 818919 0 urgent CLOSED NPE occurs in BaseServerComponent.installManagementUser() 2021-02-22 00:41:40 UTC

Internal Links: 818919

Description Lukas Krejci 2012-04-30 17:05:42 UTC
Description of problem:
The "Configuration" property (config internally) specifies what configuration the AS7 server runs with. This property is writable and therefore setting it should have effect on the server.

Version-Release number of selected component (if applicable):
4.4.0-SNAPSHOT

How reproducible:
always

Steps to Reproduce:
1. Run AS7 with bin/standalone.sh
2. Let RHQ discover it, import it
3. In the connection settings of the server, change "Configuration" to standalone-ha.xml
4. Invoke the "restart" operation on the server
  
Actual results:
The server runs with the default configuration, not standalone-ha.xml
(this can be checked by examining output of):
grep 'sun.java.command' $AS7_HOME/standalone/log/boot.log

Expected results:
The configuration should be respected

Additional info:

Comment 1 Ian Springer 2012-05-03 21:26:49 UTC
[master http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commitdiff;h=a6ac574] removes the config, hostConfig, and domainConfig plugin config props, and replaces them with serverConfig, hostConfig, and domainConfig traits. Traits are more appropriate than plugin config props, because the values can change if the user restarts the server and specifies different config file names, and a plugin config cannot be updated by the plugin discovery component once a Resource has been imported.

To change a Server's config file name via the RHQ GUI:

1) Update the value of the 'startScriptArgs' conn prop (e.g. append --server-config=standalone-full.xml to it)
2) Execute the Restart operation to restart the server with the new args.

Within an hour, you should see the value of the serverConfig trait change to "standalone-full.xml".

Comment 2 Ian Springer 2012-05-05 16:46:57 UTC
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=26a25e8 fixes a bug where a null value was being returned for the "config-file" ("Server Config") trait.


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