Bug 1919922

Summary: [RFE] Global Registration: Need hammer module to generate commands
Product: Red Hat Satellite Reporter: Jaskaran Singh Narula <janarula>
Component: RegistrationAssignee: Leos Stejskal <lstejska>
Status: CLOSED ERRATA QA Contact: Omkar Khatavkar <okhatavk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahumbe, apatel, jbhatia, jcutter, kgaikwad, lstejska, ofedoren, okhatavk, pcreech, rabajaj
Target Milestone: 6.10.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.1.1.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:09:44 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 Jaskaran Singh Narula 2021-01-25 12:00:16 UTC
Description of problem:
[RFE] Need hammer module to generate global registration commands 

Version-Release number of selected component (if applicable):
- Satellite 6.9.0 Beta 

Additional info:
- Feature request if for the hammer commands to perform the same actions that are done using the global registration feature. 
Generate the registration command to register the systems to the satellite. 

- As of now, there is no hammer module or any set of commands that can be used. In order to automate the entire process where generation can be also done.

Comment 3 Leos Stejskal 2021-06-10 07:43:37 UTC
Hi,
this is indeed a bug, problem is that '--activation-keys' is required field, which shouldn't be. User can for example specify host group only and we can get the keys from the HG.

Comment 4 Patrick Creech 2021-07-21 18:32:37 UTC
Moving back to assigned as the attached upstream PR has not been merged yet

Comment 5 Leos Stejskal 2021-07-23 08:17:01 UTC
PR fixing activation_key(s):
- Foreman: https://github.com/theforeman/foreman/pull/8659
- Katello: https://github.com/Katello/katello/pull/9459

Comment 6 Omkar Khatavkar 2021-07-29 08:10:39 UTC
*** Bug 1978690 has been marked as a duplicate of this bug. ***

Comment 7 Leos Stejskal 2021-07-29 09:11:55 UTC
PR have been merged: https://github.com/Katello/katello/pull/9421

Comment 12 errata-xmlrpc 2021-11-16 14:09:44 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.10 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-2021:4702