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 - Remove LCE option from host-registration generate-command in Hammer/API similar to WebUI
Summary: Remove LCE option from host-registration generate-command in Hammer/API simil...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.15.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.15.0
Assignee: Chris Roberts
QA Contact: Gaurav Talreja
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-08 08:56 UTC by Gaurav Talreja
Modified: 2024-04-23 17:16 UTC (History)
6 users (show)

Fixed In Version: rubygem-katello-4.11.0.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:16:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 37044 0 Normal Ready For Testing Remove LCE option from host-registration generate-command in Hammer/API similar to WebUI 2024-01-11 16:02:28 UTC
Github Katello katello pull 10844 0 None open Fixes #37044 - Remove LCE option from registration API 2024-01-11 16:02:28 UTC
Red Hat Issue Tracker SAT-21791 0 None None None 2023-12-08 08:57:55 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:16:10 UTC

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


Note You need to log in before you can comment on or make changes to this bug.