Hi @mindo, thanks for the issue report (and thanks @gvde for jumping in). I have a few questions to better understand
-
What is the exact candlepin version installed?
-
Are the missing repositories all associated with the same custom product? Multiple custom products?
-
For the custom product(s) affected, are there any foreman tasks specifically related to these products, from the time period where the issue may have occurred?
-
Can you find any requests referencing those affected productions in the candlepin logs, within the time/date range after the repos were known working, and before they were known broken?
If it is indeed https://bugzilla.redhat.com/show_bug.cgi?id=1931027 then you can remediate by getting the ID of the affected product in Katello, in this example it’s 37, then running this short script:
cat << EOF |foreman-rake console
root = Katello::RootRepository.find(37);
ForemanTasks.async_task(::Actions::Candlepin::Product::ContentAdd, owner: root.product.organization.label, product_id: root.product.cp_id, content_id: root.content_id)
EOF
Wait for the task the complete, then try subscription-manager refresh
on the affected content hosts.
Please let us know if that resolves it, and additionally, let us know if you can find anything referencing that candlepin product or content in Candlepin’s logs, or in the history for foreman-tasks, in the date range when the issue could have occurred.
Looking forward to hearing from you,