Bug 2253618

Summary: Remove LCE option from host-registration generate-command in Hammer/API similar to WebUI
Product: Red Hat Satellite Reporter: Gaurav Talreja <gtalreja>
Component: RegistrationAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.15.0CC: chrobert, jlenz, lstejska, nalfassi, rlavi, zhunting
Target Milestone: 6.15.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: https://projects.theforeman.org/issues/37044
Whiteboard:
Fixed In Version: rubygem-katello-4.11.0.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-23 17:16:09 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 Gaurav Talreja 2023-12-08 08:56:12 UTC
Description of problem:
In 6.15 we've removed LCE field from Register Host page in WebUI, and added validation when user tries to register with any LCE other than selected CV, for example, non-library LCE with Default Org CV, which won't work.

Version-Release number of selected component (if applicable):
Satellite 6.15.0 Snap 1.0

How reproducible:
Always

Steps to Reproduce:
1. # hammer host-registration generate-command --help | grep lifecycle
 --lifecycle-environment[-id] VALUE/NUMBER Lifecycle environment for the host.

Actual results:
LCE option is still present in Hammer/API, and user will get validation errors when registered with command generated above

Expected results:
LCE option not present in Hammer/API

Additional info:
RE: https://github.com/Katello/katello/pull/10764#issuecomment-1846090408

Comment 2 Gaurav Talreja 2024-01-18 11:06:32 UTC
Verified.

Tested on Satellite 6.15.0 Snap 7.0

Steps:
1. # hammer host-registration generate-command --help
2. Check apidocs for "POST /api/registration_commands" 

Observation:
LCE option --lifecycle-environment[-id] not present in Hammer and "registration_command[lifecycle_environment_id]" parameter not present in API

Comment 5 errata-xmlrpc 2024-04-23 17:16:09 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 (Important: Satellite 6.15.0 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-2024:2010