[2024-08-14T23:04:24.637Z] 2024-08-14 23:03:43 [ERROR ] [configure] Error making POST request to Foreman at https://pipe-katello-server-nightly-almalinux8.example.com/api/v2/hosts/facts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on pipe-katello-server-nightly-almalinux8.example.com for detailed information
[2024-08-14T23:04:24.637Z] 2024-08-14 23:03:43 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-pipe-katello-server-nightly-almalinux8.example.com]/ensure: change from 'absent' to 'present' failed: Error making POST request to Foreman at https://pipe-katello-server-nightly-almalinux8.example.com/api/v2/hosts/facts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on pipe-katello-server-nightly-almalinux8.example.com for detailed information
The longer WTF is:
For some reason (probably because the fact upload influences the org taxonomy of the host) an empty SubscriptionFacet gets created and because the org id is flagged as “changed” Katello is super unhappy (rightfully, one should not move hosts between katello orgs that have subs).
The odd thing: when I patch out the “has sub facet” check – there are really no subs on that host, the host gets destroyed by some action which I couldn’t trace properly.
Interestingly, this doesn’t always happen as I did test the change yesterday on an EL8toEL9 upgrade and there it correctly updated the OS and just the OS.
Therefor I am going to revert that change for now: