Bug 1054360 - RFE: let users run an AS7/EAP6 CLI script with an operation on Standalone or Host Controller resources
Summary: RFE: let users run an AS7/EAP6 CLI script with an operation on Standalone or ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.10
Assignee: Libor Zoubek
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-16 17:05 UTC by Thomas Segismont
Modified: 2015-11-02 00:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-23 12:29:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Thomas Segismont 2014-01-16 17:05:58 UTC
Description of problem:
If a user as a set of AS7/EAP6 CLI scripts, he cannot re-use those when monitoring its servers with JON. It would be nice to be able to run an AS7/EAP6 CLI script with an operation on Standalone or Host Controller resources

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

Additional info:
-Needs to know the management interface host (already in plugin config) and remoting port (can be in operation params now and later-on in plugin config)

-Needs to know the management credentials (already in plugin config)

-Two operations: Execute CLI commands, Execute CLI script 

-Common field: remoting port (with default value of http management port +9)

-Required fields: Commands string or file string

Output fields: process output longtext

Example CLI commands:
./jboss-cli.sh -c --commands="cd subsystem=web,ls" --user="rhqadmin" --password="rhqadmin" --controller="127.0.0.25:9999"

./jboss-cli.sh -c --file="test.cli" --user="rhqadmin" --password="rhqadmin" --controller="127.0.0.25:9999"

Comment 1 Libor Zoubek 2014-02-19 12:12:32 UTC
in master
commit 275832167d4969404896875eb418bdfa8468fa24
Author: Libor Zoubek <lzoubek>
Date:   Wed Feb 19 12:50:02 2014 +0100

    [BZ 1054360] - RFE: let users run an AS7/EAP6 CLI script with an operation
    on Standalone or Host Controller resources

    Adding 2 new operations for AS7 DomainController and Standalone servers.
    executeCommands and executeScript. The latter expects script exists on
    target host with as7 cli commands. Both operations run jboss-cli executable
    in the end. Currently there is hard-coded timeout waiting to jboss-cli
    process to 60s. This should be improved so operation timeout is used
    instead. Both operations has 2 additional parameters. If user runs a script
    wich changes AS state, he might need to trigger discovery or availability
    after right operation success. Plugin config was extended by nativeHost and
    nativePort simple properties
    - those are required to run jboss-cli and are discovered same way as
      management host and port. Both operations could work even if plugin does
    not yet know credentials to AS7, since jboss-cli uses magic local
    authentication and if it succeeds it ignores supplied user and password
    parameters.

Comment 2 Libor Zoubek 2014-02-24 16:57:22 UTC
commit 2b36795891d0708ed49a35222b057bd122e6b90b
Author: Libor Zoubek <lzoubek>
Date:   Mon Feb 24 16:50:07 2014 +0100

    [BZ 1054360] RFE: let users run an AS7/EAP6 CLI script with an operation on
    Standalone or Host Controller resources

    Remove hard-coded timeout when waiting for jboss-cli process. Exposed
    another 2 operation parameters to handle process timeout or killing it when
    timeout occurs.

Comment 3 Heiko W. Rupp 2014-04-23 12:29:58 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.


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