foreman-installer fails on RHEL7 because of SCLo repository
After https://github.com/theforeman/puppet-foreman/pull/435 was merged, foreman-installer nightly fails on RHEL7 Server with errors like
# [ERROR 2016-05-11 07:31:35 verbose] Execution of '/usr/bin/yum -d 0 -e 0 -y list foreman-postgresql' returned 1: One of the configured repositories failed (CentOS-7Server - SCLo rh),
I believe this happens because we ship upstream centos-release-scl package copy from upstream which defines the repository as
The issue is with
$releasever which in this case is 7Server hence we get 404 on http://mirror.centos.org/centos/7Server/sclo/x86_64/sclo/repodata/repomd.xml
I'm not sure what would be the best fix, maybe repackaging the centos-release-scl or adding exception for RHEL platform in puppet-foreman module
#1 Updated by Ewoud Kohl van Wijngaarden over 4 years ago
https://github.com/Katello/katello-deploy/issues/223 is reporting the same issue.
#2 Updated by Dominic Cleal over 4 years ago
In the first instance, please try opening a ticket in the CentOS Buildsys project, they may be willing to create appropriate symlinks on the mirrors so the repos are usable for RHEL too.
There are also RHEL-specific builds of centos-release-scl at https://github.com/sclorg/centos-release-scl#how-to-install-sclo-packages-on-rhel-systems and in Copr, but that's an added complication because the package names are identical. If anything I'd prefer to rebuild it as you suggest.