Bug 2216461

Summary: undefined method `each' for #<Katello::ContentViewEnvironment when running hammer host subscription register
Product: Red Hat Satellite Reporter: Peter Ondrejka <pondrejk>
Component: Hosts - ContentAssignee: Lucy Fu <lufu>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: jlenz, ofedoren, pcreech, rlavi
Target Milestone: 6.14.0Keywords: EasyFix, Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-katello-4.9.0.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:19:51 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:
Attachments:
Description Flags
production log none

Description Peter Ondrejka 2023-06-21 13:49:19 UTC
Created attachment 1971890 [details]
production log

Description of problem:
running

hammer host subscription register --name 'Hp5yExlKsv' --organization-id 20 --content-view-id 19 --lifecycle-environment-id 19 

fails with:

Failed to register host:
  undefined method `each' for #<Katello::ContentViewEnvironment:0x00007efec2e62cc0>

Expected results:
successful registration

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

How reproducible:
Always

Additional info:
Found by tests/foreman/endtoend/test_cli_endtoend.py -k test_positive_end_to_end

reproducer available

Comment 2 Jeremy Lenz 2023-06-21 16:30:00 UTC
Created redmine issue https://projects.theforeman.org/issues/36524 from this bug

Comment 3 Bryan Kearney 2023-06-29 20:03:24 UTC
Upstream bug assigned to lufu

Comment 4 Bryan Kearney 2023-06-29 20:03:26 UTC
Upstream bug assigned to lufu

Comment 5 Bryan Kearney 2023-07-03 16:03:15 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36524 has been resolved.

Comment 7 Peter Ondrejka 2023-07-14 11:19:42 UTC
Verified on Sat 6.14 sn 7 using QE automation

Comment 10 errata-xmlrpc 2023-11-08 14:19:51 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.14 security and bug fix update), 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-2023:6818