Hide Forgot
Description of problem: On running `pcs resource clear`, a wrong errormessage is shown. Version-Release number of selected component (if applicable): pcs-0.9.152-10.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. install package pcs 2. run `pcs resource clear` 3. Actual results: [root@vagrant-redhat7 ~]# pcs resource clear Error: must specify resource to move/unmove Expected results: [root@vagrant-redhat7 ~]# pcs resource clear Error: must specify resource to clear Additional info: calling `--help` works as expected [root@vagrant-redhat7 ~]# pcs resource clear --help Usage: pcs resource clear... clear <resource id> [node] [--master] [--wait[=n]] Remove constraints created by move and/or ban on the specified resource (and node if specified). If --master is used the scope of the command is limited to the master role and you must use the master id (instead of the resource id). If --wait is specified, pcs will wait up to 'n' seconds for the operation to finish (including starting and/or moving resources if appropriate) and then return 0 on success or 1 on error. If 'n' is not specified it defaults to 60 minutes.
Created attachment 1364943 [details] proposed fix + test
After Fix: [ant ~] $ rpm -q pcs pcs-snmp pcs-0.9.165-1.el7.x86_64 pcs-snmp-0.9.165-1.el7.x86_64 [ant ~] $ pcs resource move Error: must specify a resource to move [ant ~] $ pcs resource ban Error: must specify a resource to ban [ant ~] $ pcs resource clear Error: must specify a resource to clear
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3066