Bug 1036960

Summary: cannot launch agent using rhqctl on linux if you need to enter a password
Product: [JBoss] JBoss Operations Network Reporter: John Mazzitelli <mazz>
Component: DocumentationAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: hrupp
Target Milestone: GA   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1034963 Environment:
Last Closed: 2014-05-10 03:42:08 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:
Bug Depends On: 1034963    
Bug Blocks:    

Description John Mazzitelli 2013-12-03 00:27:03 UTC
+++ This bug was initially created as a clone of Bug #1034963 +++

The agent launcher script lets you start the agent with your own custom command via RHQ_AGENT_START_COMMAND. If you set that to do a sudo, you can tell it to prompt the user for the password to sudo. for example:

RHQ_AGENT_START_COMMAND="su -m test -c '${RHQ_AGENT_HOME}/bin/rhq-agent.sh'"

If you want the user to be prompted, you can tell the launcher script to output the prompt on stdout via:

RHQ_AGENT_PASSWORD_PROMPT=true

However, if this is an agent running colocated on the server, you start the agent via rhqctl. This introduces the problem that stdin isn't redirected to the agent process so none of this prompting works. The user needs to make sure the start command does not require user input during startup.

This probably requires a release notes blurb and some additional documentation.

Comment 1 Deon Ballard 2014-05-10 03:42:08 UTC
Mass closure of bugs modified in 2013. All of these are in the currently-published docs.