See https://bugzilla.redhat.com/show_bug.cgi?id=1789654#c4 for other details.
Thanks @jkalchik. I had the joy of running into and troubleshooting this issue. The solution works like a charm.
Thank @taylor1 for bringing the solution in. Glad you didn’t have to spend too much time digging in.
I have the same issue - the /etc/yum.repos.d/redhat.repo is missed on CentOS 7 after registering on Foreman server, the versiona are Foreman-3.1.2 and Katello-4.3.1.