Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1712914

Summary: command "hammer full-help" gives error "Error: undefined method `action' for false:FalseClass"
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: HammerAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: low Docs Contact:
Priority: medium    
Version: 6.6.0CC: apatel, egolov, kgaikwad, mbacovsk, mshira, ofedoren, pcreech, rabajaj
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman-0.17.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:51:06 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 Jameer Pathan 2019-05-22 13:14:14 UTC
Description of problem:
command "hammer full-help" gives error "Error: undefined method `action' for false:FalseClass"

Version-Release number of selected component (if applicable):
@Satellite 6.6.0 snap 3
@tfm-rubygem-hammer_cli-0.17.1-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Run # hammer full-help


Actual results:
- gives full-help output till "hammer > docker > container > info" command after that shows error "Error: undefined method `action' for false:FalseClass"

Expected results:
- command 'hammer full-help' should run without any error and provide complete full-help output.

Additional info:

Comment 3 Oleh Fedorenko 2019-05-23 17:41:59 UTC
The problem is in hammer-cli-foreman-docker plugin which is being installed alongside with hammer-cli-katello.

Since foreman_docker is not maintained anymore [1] I guess we should drop support for it in the future hammer versions as well (hammer-cli-katello has hammer-cli-foreman-docker as dependency [2]). Removing it from there should remove all the docker commands hence this bug will not reproducible.

[1] https://github.com/theforeman/foreman_docker
[2] https://github.com/Katello/hammer-cli-katello/blob/1eb1b7948377760e26ecc69030a5cba387e8bc90/hammer_cli_katello.gemspec#L53

Comment 4 Oleh Fedorenko 2019-05-23 18:10:17 UTC
Created redmine issue https://projects.theforeman.org/issues/26865 from this bug

Comment 5 Bryan Kearney 2019-05-28 10:05:57 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26865 has been resolved.

Comment 6 Jameer Pathan 2019-07-08 12:49:17 UTC
Verified 

verified with:
- Satellite 6.6.0 snap 10
- tfm-rubygem-hammer_cli-0.17.1-2.el7sat.noarch

Test Steps:
- Run # hammer full-help

Observation:
- command 'hammer full-help' prints help for all hammer commands.

Comment 7 Bryan Kearney 2019-10-22 19:51:06 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/RHSA-2019:3172