RHEL repository - No repositories available

Problem:

Im in the midst of adding RHEL 7 to the product list, however this step is stuck when Foreman is unable to retrieve repo information as stated in the subject.

I tried to troubleshoot by setting global proxy and http_proxies as well. However it still stuck at the same issue.

Expected outcome:

Foreman and Proxy versions:

  • foreman-2.3.5-1.el7.noarch
  • katello-3.18.3-1.el7.noarch
  • foreman-proxy-2.3.5-1.el7.noarch

Foreman and Proxy plugin versions:

Distribution and version:
CentOS Linux release 7.9.2009 (Core)
3.10.0-1160.31.1.el7.x86_64

Other relevant data:

2021-06-19T09:58:09 [I|app|] Completed 200 OK in 415ms (Views: 6.4ms | ActiveRecord: 11.4ms | Allocations: 31477)
2021-06-19T09:59:00 [I|app|4cfd6512] Started GET “/katello/api/v2/products/18/repository_sets/6516/available_repositories” for 192.168.173.254 at 2021-06-19 09:59:00 +0800
2021-06-19T09:59:00 [I|app|4cfd6512] Processing by Katello::Api::V2::RepositorySetsController#available_repositories as JSON
2021-06-19T09:59:00 [I|app|4cfd6512] Parameters: {“api_version”=>“v2”, “product_id”=>“18”, “id”=>“6516”}
2021-06-19T09:59:00 [I|bac|4cfd6512] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: fce13ada-4239-4d40-98f8-bdb701e1b097, execution_plan_id: 71105e95-7cf6-4b7e-bd1a-8cc4eabf67a0} state changed: planning
2021-06-19T09:59:00 [I|bac|] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: fce13ada-4239-4d40-98f8-bdb701e1b097, execution_plan_id: 71105e95-7cf6-4b7e-bd1a-8cc4eabf67a0} state changed: planned
2021-06-19T09:59:00 [I|bac|] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: fce13ada-4239-4d40-98f8-bdb701e1b097, execution_plan_id: 71105e95-7cf6-4b7e-bd1a-8cc4eabf67a0} state changed: running
2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: Connection reset by peer - SSL_connect
2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method resolve_substitutions' for nil:NilClass 2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method resolve_substitutions’ for nil:NilClass
2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method resolve_substitutions' for nil:NilClass 2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method resolve_substitutions’ for nil:NilClass
2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method resolve_substitutions' for nil:NilClass 2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method resolve_substitutions’ for nil:NilClass
2021-06-19T09:59:00 [E|app|] Failed at scanning for repository: undefined method `resolve_substitutions’ for nil:NilClass
2021-06-19T09:59:00 [I|bac|] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: fce13ada-4239-4d40-98f8-bdb701e1b097, execution_plan_id: 71105e95-7cf6-4b7e-bd1a-8cc4eabf67a0} state changed: stopped result: success
2021-06-19T09:59:01 [I|bac|] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: fce13ada-4239-4d40-98f8-bdb701e1b097, execution_plan_id: 71105e95-7cf6-4b7e-bd1a-8cc4eabf67a0} state changed: stopped result: success
2021-06-19T09:59:01 [I|app|] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.3.1/app/views/katello/api/v2/repository_sets/available_repositories.json.rabl within katello/api/v2/layouts/collection
2021-06-19T09:59:01 [I|app|] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.3.1/app/views/katello/api/v2/repository_sets/available_repositories.json.rabl within katello/api/v2/layouts/collection (Duration: 4.4ms | Allocations: 2884)
2021-06-19T09:59:01 [I|app|] Completed 200 OK in 400ms (Views: 7.2ms | ActiveRecord: 13.2ms | Allocations: 31511)