Bug 1073096 - 'rhqctl -h install' tries to install the components instead of showing a help
Summary: 'rhqctl -h install' tries to install the components instead of showing a help
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Installer, Usability
Version: 4.9
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: RHQ 4.11
Assignee: Jirka Kremser
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-05 18:36 UTC by Jirka Kremser
Modified: 2014-07-21 10:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-21 10:13:47 UTC
Embargoed:


Attachments (Terms of Use)

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.


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