Bug 2218821

Summary: Hammer accepts non-existent LCE in host update
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Hosts - ContentAssignee: Lucy Fu <lufu>
Status: CLOSED ERRATA QA Contact: visawant
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: chrobert, jlenz, paji, rlavi, visawant
Target Milestone: 6.15.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-23 17:11:36 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 Vladimír Sedmík 2023-06-30 07:26:37 UTC
Description of problem:
Hammer host update accepts non-existent LCE id and says 'Host updated.', but it's not.


Version-Release number of selected component (if applicable):
6.14.0 snap 4


How reproducible:
always


Steps to Reproduce:
1. Have a host registered to the Satellite
2. Run `hammer host update --id <host_id> --lifecycle-environment-id 999999`


Actual results:
[root@sat ~]# hammer host update --id 24 --lifecycle-environment-id 999999
Host updated.


Expected results:
Should fail with proper message (like "LCE does not exist", "LCE is not assigned to the content source", etc.)

Comment 3 Lucy Fu 2023-08-09 22:05:23 UTC
Created redmine issue https://projects.theforeman.org/issues/36667 from this bug

Comment 4 Bryan Kearney 2023-08-10 16:02:58 UTC
Upstream bug assigned to lufu

Comment 5 Bryan Kearney 2023-08-10 16:03:01 UTC
Upstream bug assigned to lufu

Comment 6 Bryan Kearney 2023-08-17 00:03:02 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36667 has been resolved.

Comment 7 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 11 errata-xmlrpc 2024-04-23 17:11:36 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