Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1831066 - hammer full-help returns misleading output
Summary: hammer full-help returns misleading output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.8.0
Assignee: Oleh Fedorenko
QA Contact: Akhil Jha
URL:
Whiteboard:
Depends On:
Blocks: 1826495
TreeView+ depends on / blocked
 
Reported: 2020-05-04 14:46 UTC by Sergei Petrosian
Modified: 2020-10-27 13:32 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-hammer_cli-0.20.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 13:32:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29697 0 Normal Closed hammer full-help returns misleading output 2020-10-19 13:36:33 UTC
Red Hat Product Errata RHBA-2020:4367 0 None None None 2020-10-27 13:32:24 UTC

Description Sergei Petrosian 2020-05-04 14:46:03 UTC
Description of problem:
At the output of the `hammer full-help --md` command, some hammer commands have the note `Unfortunately the server does not support such operation.`

The note is misleading because the commands are supported.

There are 8 of such commands:
hammer content-view purge
hammer host errata 
hammer host package
hammer host package-group
hammer host subscription
hammer host-collection erratum
hammer host-collection package
hammer host-collection package-group

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

How reproducible:
Always

Steps to Reproduce:
1. hammer full-help --md
2. In the output, locate "Unfortunately the server does not support such operation."

Actual results:
The note should note be displayed for the commands.

Expected results:
The note is displayed and is misleading

Additional information:
At the same time, running these individual commands with `--help` does not show this message in the output. For example:
~~~
[root@dell-r430-7 ~]# hammer content-view purge --help
Usage:
    hammer content-view purge [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --count COUNT                           Count of unused versions to keep
                                         Default: 3
 --id ID                                 Content View numeric identifier
 --name NAME                             Content View name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help
~~~

Comment 3 Oleh Fedorenko 2020-05-05 08:37:15 UTC
Created redmine issue https://projects.theforeman.org/issues/29697 from this bug

Comment 4 Bryan Kearney 2020-05-05 11:55:48 UTC
Upstream bug assigned to ofedoren

Comment 5 Bryan Kearney 2020-05-05 11:55:53 UTC
Upstream bug assigned to ofedoren

Comment 6 Bryan Kearney 2020-05-12 16:05:59 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29697 has been resolved.

Comment 7 Akhil Jha 2020-06-05 10:58:37 UTC
Verified.

Version Tested:  Satellite-6.8.0 Snap 3.0

Steps followed:
1. hammer full-help --md > /dev/null (To check stderr)
2. hammer full-help --md | sed -n '/Unfortunately the server does not support such operation/p'

Observation:
Both commands resulted in warnings for command deprecation only

Comment 10 errata-xmlrpc 2020-10-27 13:32:10 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 (Satellite 6.8 Satellite Tools Release), 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-2020:4367


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