Bug 1497130 - --version is missing in foreman-maintain advanced procedure run repositories-setup -h
Summary: --version is missing in foreman-maintain advanced procedure run repositories-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Maintain
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Swapnil Abnave
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks: 1496794
TreeView+ depends on / blocked
 
Reported: 2017-09-29 09:14 UTC by Nikhil Kathole
Modified: 2019-09-26 15:38 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-19 17:22:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21186 0 None None None 2017-10-04 07:00:24 UTC
Red Hat Product Errata RHBA-2018:0330 0 normal SHIPPED_LIVE Satellite Maintenance bug fix update 2018-02-19 22:22:51 UTC

Description Nikhil Kathole 2017-09-29 09:14:03 UTC
Description of problem: We were trying to run foreman-maintain advanced procedure run repositories-setup. But it shows 

# foreman-maintain advanced procedure run repositories-setup
ERROR: option '--version' is required

See: 'foreman-maintain advanced procedure run repositories-setup --help'

and foreman-maintain advanced procedure run repositories-setup --help do not display any --version option.


Version-Release number of selected component (if applicable): Foreman-maintain 2.0


How reproducible: always


Steps to Reproduce:
1. # foreman-maintain advanced procedure run repositories-setup
ERROR: option '--version' is required

See: 'foreman-maintain advanced procedure run repositories-setup --help'

# foreman-maintain advanced procedure run repositories-setup -h
Usage:
    foreman-maintain advanced procedure run repositories-setup [OPTIONS]

Options:
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be ignored
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help


Actual results:
--version is missing in help.


Expected results:
--version option should be there.

Additional info:

Comment 2 Swapnil Abnave 2017-10-04 07:00:20 UTC
Created redmine issue http://projects.theforeman.org/issues/21186 from this bug

Comment 3 Satellite Program 2017-12-08 13:27:15 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21186 has been resolved.

Comment 4 Nikhil Kathole 2017-12-15 07:12:16 UTC
FailedQA

Version tested:
# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.1.1-1.el7sat.noarch

# foreman-maintain advanced procedure run repositories-setup -h
Usage:
    foreman-maintain advanced procedure run repositories-setup [OPTIONS]

Options:
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be ignored
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help

Comment 6 Mike McCune 2018-02-01 18:05:40 UTC
please re-test with rubygem-foreman_maintain-0.1.2-2.el7sat.noarch

Comment 7 Mike McCune 2018-02-01 18:23:04 UTC
VERIFIED

[root@ibm-x3250m4-05 ~]# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.1.3-1.el7sat.noarch
[root@ibm-x3250m4-05 ~]# foreman-maintain advanced procedure run repositories-setup -h
Usage:
    foreman-maintain advanced procedure run repositories-setup [OPTIONS]

Options:
    --version VERSION             Version for which repositories needs to be setup
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be ignored
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help

...
# foreman-maintain advanced procedure run repositories-setup --version 6.2
Running ForemanMaintain::Scenario
================================================================================
Setup repositories: 
| Configuring repositories for 6.2                                    [OK]      
--------------------------------------------------------------------------------

Comment 10 errata-xmlrpc 2018-02-19 17:22:26 UTC
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:0330


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