Bug 2035195

Summary: command "hammer full-help" gives error "Error: uninitialized constant HammerCLIForeman::CommandExtensions::PuppetEnvironment"
Product: Red Hat Satellite Reporter: sganar
Component: HammerAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: sganar
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: apatel, aruzicka, ehelms, gtalreja, kgaikwad, ofedoren, pcreech, rabajaj
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hammer-cli-foreman-dicovery-1.1.0, hammer-cli-foreman-puppet-0.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:31:12 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 sganar 2021-12-23 09:05:11 UTC
Description of problem:

command "hammer full-help" gives error "Error: uninitialized constant HammerCLIForeman::CommandExtensions::PuppetEnvironment"

Version-Release number of selected component (if applicable):
Satellite 7.0.0 Snap 3
tfm-rubygem-hammer_cli-3.1.0-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. hammer full-help


Actual results:
Gives error "Error: uninitialized constant HammerCLIForeman::CommandExtensions::PuppetEnvironment"

Expected results:
command "hammer full-help" should work fine

Additional info:
hammer (3.1.0)
 * hammer_cli_foreman (3.1.0)
 * hammer_cli_foreman_admin (1.1.0)
 * hammer_cli_foreman_ansible (0.3.4)
 * hammer_cli_foreman_azure_rm (0.2.2)
 * hammer_cli_foreman_bootdisk (0.3.0)
 * hammer_cli_foreman_discovery (1.0.2)
 * hammer_cli_foreman_openscap (0.1.13)
 * hammer_cli_foreman_remote_execution (unknown version)
 * hammer_cli_foreman_tasks (unknown version)
 * hammer_cli_foreman_templates (0.2.0)
 * hammer_cli_foreman_virt_who_configure (unknown version)
 * hammer_cli_foreman_webhooks (0.0.2)
 * hammer_cli_katello (1.3.1)

Comment 1 Oleh Fedorenko 2022-01-31 12:21:25 UTC
Created redmine issue https://projects.theforeman.org/issues/34352 from this bug

Comment 2 Bryan Kearney 2022-01-31 16:05:45 UTC
Upstream bug assigned to ofedoren

Comment 3 Bryan Kearney 2022-01-31 16:05:47 UTC
Upstream bug assigned to ofedoren

Comment 4 Bryan Kearney 2022-03-02 16:05:06 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34352 has been resolved.

Comment 5 Oleh Fedorenko 2022-03-14 15:33:11 UTC
*** Bug 2063864 has been marked as a duplicate of this bug. ***

Comment 6 Patrick Creech 2022-03-15 20:30:29 UTC
We need an upstream release of hammer_cli_foreman_discovery with this fix in it, if possible

Comment 9 sganar 2022-04-27 10:53:24 UTC
Verified.

Tested on Satellite 6.11.0 Snap 17.0

Steps followed: 
1. # hammer full-help

Observation: 

`hammer full-help` works perfect and lists all available help options.

Comment 12 errata-xmlrpc 2022-07-05 14:31:12 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 (Moderate: Satellite 6.11 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/RHSA-2022:5498