Bug 805209 - [as7] If plugin detects wrong server mode it should indicate so
Summary: [as7] If plugin detects wrong server mode it should indicate so
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.4.0
Assignee: Libor Zoubek
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin
TreeView+ depends on / blocked
 
Reported: 2012-03-20 16:40 UTC by Heiko W. Rupp
Modified: 2015-11-02 00:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-01 10:09:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2012-03-20 16:40:27 UTC
Both as7 domain and standalone mode have the management port on 9990.
So it is possible to start a server in standalone mode, have it detected by RHQ and then shut the server down and boot it in domain mode.
As the plugin expects standalone mode it will e.g. run any operation against subsystems against an address of /subsystem=*  which is not present, as those live in domain mode below /profile=*/subsystem=* 

So the as should check (at least in ResourceComponent.start) for the running mode and throw a ResourceError if the mode detected at discovery does not match the mode at component start time,

Actually as getAvailability() is calling into the server, the check could be done there, but there is no way to convey the wrong start mode back to the user.

Comment 1 Heiko W. Rupp 2012-03-21 19:58:20 UTC
master  bf612201cbd5


This is opposed to the previous comment done via getAvailability(). If the server is not reachable,
down is returned. If it is up and the launch-type attribute matches the discovered mode, up is returned, 
otherwise an exception is thrown, that shows up in the UI in the ResourceError area (yellow triangle)

Comment 2 Heiko W. Rupp 2013-09-01 10:09:27 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.