Hello
It seems the real problem was caused by katello-agent, not yum after all.
Bug 1505286 - katello-agent disables repos when katello is unreachable
katello-agent disables repos when katello is unreachable — https://access.redhat.com/solutions/3222091
Docs will be updated in this bug:
Bug 1536843 - self registered satellite update steps are incorrect