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 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