Ubuntu upgrade tests are failing on sending the facts:
[2024-08-15T08:24:22.058Z] 2024-08-15 08:24:17 [ERROR ] [configure] Error making POST request to Foreman at https://pipe-up-foreman-nightly-ubuntu2004.example.com/api/v2/hosts/facts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on pipe-up-foreman-nightly-ubuntu2004.example.com for detailed information
[2024-08-15T08:24:22.058Z] 2024-08-15 08:24:17 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-pipe-up-foreman-nightly-ubuntu2004.example.com]/ensure: change from 'absent' to 'present' failed: Error making POST request to Foreman at https://pipe-up-foreman-nightly-ubuntu2004.example.com/api/v2/hosts/facts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on pipe-up-foreman-nightly-ubuntu2004.example.com for detailed information
[2024-08-15T08:24:22.058Z] 2024-08-15 08:24:21 [NOTICE] [configure] System configuration has finished.
The actual error is:
2024-08-15T08:18:31 [I|app|a749d9f5] Backtrace for 'Action failed' error (ActiveRecord::RecordInvalid): Validation failed: Name Operating system version already exists, Description has already been taken, Title has already been taken
Sending facts on upgrade was recently changed in to resolve Bug #37726: After an OS version upgrade, the GUI still shows the old/wrong Operating System version - Installer - Foreman via:
Allow forcing fact upload when host already exists by evgeni · Pull Request #1175 · theforeman/puppet-foreman · GitHub
Fixes #37726 - Force fact upload to update OS facts by evgeni · Pull Request #957 · theforeman/foreman-installer · GitHub
@evgeni have you had a look?