Bug 1915872 - Satellite cannot deploy hosts when using content view due to kickstart repo id mismatching.
Summary: Satellite cannot deploy hosts when using content view due to kickstart repo i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible Collection
Version: 6.8.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.9.0
Assignee: Evgeni Golov
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-13 15:43 UTC by Rudnei Bertol Jr.
Modified: 2021-04-21 13:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:25:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman-ansible-modules issues 1090 0 None closed kickstart_repository (field "synced content") is not correctly set when creating a host via the ansibel module redhat.sa... 2021-02-16 20:22:42 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:25:42 UTC

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


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