Bug 1073096

Summary: 'rhqctl -h install' tries to install the components instead of showing a help
Product: [Other] RHQ Project Reporter: Jirka Kremser <jkremser>
Component: Installer, UsabilityAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.11   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-21 10:13:47 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:

Description Jirka Kremser 2014-03-05 18:36:11 UTC
Description of problem:
Command line tool rhqctl doesn't work as expected: 'rhqctl --help install' not showing help


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

How reproducible:
always

Steps to Reproduce:
1. run rhqclt --help install

Actual results:
runs the installation process


Expected results:
displays a help


Additional info:
In the help there should be a mention about the possible '--start' switch.

Comment 1 Jirka Kremser 2014-03-05 18:37:33 UTC
rhqctl -h says:

usage: rhqctl <cmd> [options]

where <cmd> is one of:
 console <[options]>   Starts an RHQ service in the foreground. Only
                       --server or --storage is supported. To start the
                       agent in the foreground, use the
                       <RHQ_AGENT_HOME>/bin/rhq-agent.(sh|bat) script.
 install <[options]>   Installs RHQ services.
 restart <[options]>   Restarts RHQ services.
 start <[options]>     Starts RHQ services.
 status <[options]>    Check status of RHQ services
 stop <[options]>      Stops RHQ services
 upgrade <[options]>   Upgrades RHQ services from an earlier installed
                       version

* For help on a specific command: rhqctl <cmd> --help
* Limit commands to a single component with one of: --storage, --server,
--agent

Comment 2 Jirka Kremser 2014-03-05 18:39:06 UTC
Same issue for 'rhqctl -h upgrade'. Instead of showing help, it tries to upgrade the system.

Comment 3 Jirka Kremser 2014-03-07 18:01:54 UTC
Actually the help is printed eventually, I just wasn't patient enough. The issue was that I had installed agent by rpm in the past so there was a warning displayed and 30s sleeping interval for a user to have a chance to read the message (I had no idea about that). So the help was printed after those 30 seconds of waiting.

I would like to add a check if user wants to print only help, the warning about rpm agent will not displayed.

Comment 4 Jirka Kremser 2014-04-07 23:51:37 UTC
bb6f4c87b
705dca8bf
589b486d6
491fb0481
5367acfe1
9458df431
9bd875794

Comment 5 Heiko W. Rupp 2014-07-21 10:13:47 UTC
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out.

If you find an issue with those, please open a new BZ, linking to the old one.