Bug 816633
| Summary: | [as7] add support for specifying a start script prefix in the plugin configs for AS7 servers | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Ian Springer <ian.springer> | ||||
| Component: | Plugins | Assignee: | Charles Crouch <ccrouch> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 4.3 | CC: | ccrouch, hbrock, hrupp, skondkar | ||||
| Target Milestone: | --- | ||||||
| Target Release: | JON 3.1.0, RHQ 4.4.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-08-31 10:09:32 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 707223 | ||||||
| Attachments: |
|
||||||
|
Description
Ian Springer
2012-04-26 14:52:43 UTC
Note, we support this in the as4 and as5 plugins, so we'll need it for feature parity in the as7 plugin. We should do this for RHQ4.4 Done in master: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=4afaad5 Note, if an AS7 instance is running as a different user and/or group than the Agent, we detect this in autodiscovery and prepopulate the 'startScriptPrefix' prop with the appropriate sudo command line. Verified on Version: 3.1.0.CR1 Build Number: 4bc4270:1b85993 Started EAP6 instance with a different user than the agent (sudo -u skondkar). The instance is detected in autodiscovery and the 'Start Script Prefix' property in 'Inventory->Connection Settings' prepopulated with the value '/usr/bin/nohup /usr/bin/sudo -u skondkar -g skondkar'. Please refer the attached screenshot. Created attachment 588429 [details]
Screenshot
Sunil, Did you also then try running the Start and Restart operations and verify that they worked and that the AS7 instance was running as skondkar:skondkar ? Hi Ian, I Started agent with user 'testuser' and EAP6 instance with user 'skondkar'. The operations start and restart worked and AS7 instance is running as skondkar:skondkar when I inserted below line in /etc/sudoers file: testuser ALL=(skondkar:skondkar) NOPASSWD: /store/EAP/EAP6/EAP6-ER8/jboss-eap-6.0/bin/standalone.sh Bulk close of old bugs in VERIFIED state. |