Katello-nightly-rpm-pipeline 2097 failed

Katello nightly pipeline failed:

https://ci.theforeman.org/job/katello-nightly-rpm-pipeline/2097/

foreman-pipeline-katello-rpm-nightly (failed) (remote job)

[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

I didn’t look at the details, but I’m going to guess it’s the same as Foreman-nightly-deb-pipeline 1558 failed - #2 by ekohl.

The TL;DR is: WTF

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:

On Matrix we traced it back to this change:

Both changes are needed to trigger the problem.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.