handle smart proxy refresh with missing pulp3 capabilities
If a smart proxy refresh occurs while pulp3 is down (or in the process of coming up), the capabilities list is empty. This seems to be happening automatically at install time for the latest pipelines.
Fixes #29650 - detect and fix pulpcore missing capabilities
There is a condition where a smart proxy is running and
tries to either register or refresh from the foreman server
but the pulpcore server is not up yet. This results in a
pulpcore feature, but no capabilities. Since apache has been
configured by the installer to point to pulpcore for serving content
and katello thinks pulpcore cant support that plugin, it falls back to
pulp2 and clients get a 404.
To solve it, this hooks into pulp selector and does a smart proxy
refresh if this condition is found to be true.