Project

General

Profile

Actions

Bug #38866

closed

Always force manage_repos to be enabled in rhsm.conf as a part of subscription_manager_setup snippet execution

Added by Sayan Das 4 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-
Difficulty:
easy
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Right now, any AMIs launched for RHEL 8.4 and later have auto_registration enabled and hence, as they are not expected to consume content directly from redhat cdn or a satellite\katello\foreman, The manage_repos option is by default set to 0 or disabled.

If someone tries to register such a cloud-based system, with their Katello+foreman instance using global registration method, the registration part works, but the system fails to see any repos coming from satellite and hence the whole curl command fails at the end.

We need to make sure that as a part of https://github.com/theforeman/foreman/blob/develop/app/views/unattended/provisioning_templates/snippet/subscription_manager_setup.erb#L106-L113 i.e., reconfiguring the rhsm.conf, we are also forcing manage_repos to be 1.

Actions

Also available in: Atom PDF