Bug 1915872

Summary: Satellite cannot deploy hosts when using content view due to kickstart repo id mismatching.
Product: Red Hat Satellite Reporter: Rudnei Bertol Jr. <rbertolj>
Component: Ansible CollectionAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: egolov, ehelms, zhunting
Target Milestone: 6.9.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: 2021-04-21 13:25:02 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 Rudnei Bertol Jr. 2021-01-13 15:43:39 UTC
Description of problem:

When creating a host using the host resource from the satellite collection and using a content view during the host creation, the host created is not using the kickstart repository from the content view, it is using the repository available on the 'Default Organization View'.


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

Satellite 6.8.2

How reproducible:

Create a host on the Satellite using a kickstart repo from a content view.

Steps to Reproduce:
1.
2.
3.

Actual results:

The repository used is from the Default Organization View, instead of the content view set on the playbook.


Expected results:

The repository used during the deployment would be the kickstart repository from the content view.

Additional info:

A complete troubleshoot will be provided.

Comment 3 Evgeni Golov 2021-01-25 10:54:30 UTC
There is a patch at https://github.com/theforeman/foreman-ansible-modules/pull/1132 which should fix the issue, I am just not yet totally happy with the patch itself :)

Comment 4 Evgeni Golov 2021-01-29 07:49:36 UTC
the patch has been merged upstream

Comment 5 Peter Ondrejka 2021-03-10 09:37:04 UTC
Verified on Satellite 6.9 snap 16 using playbook from comment 1, kickstart_repository_id is correctly assigned and host is successfully created

Comment 8 errata-xmlrpc 2021-04-21 13:25:02 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 (Moderate: Satellite 6.9 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-2021:1313