Problem:
I have just upgraded our katello server from 4.15 → 4.16 → 4.17
The foreman-installer step produces this error:
2025-06-11 10:28:49 [DEBUG ] [root] Upgrade Step 1/2: katello:correct_repositories. This may take a long while.
2025-06-11 10:28:49 [DEBUG ] [root] Processing Repository 1/962: BaseOS x86_64 os (1)
2025-06-11 10:28:49 [DEBUG ] [root] Failed upgrade task: katello:correct_repositories, see logs for more information.
There is no other information in the log about the error. The system seems to be running fine but i’m concerned about future effects of this error and potential future upgrade problems
Expected outcome:
foreman-installer completes without errors
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Foreman: 3.15.0
Katello: 4.17.0
Distribution and version:
Other relevant data:
Running foreman-rake katello:correct_repositories manually gives this error:
All operations will be skipped. Re-run with COMMIT=true to perform corrections.
Processing Repository 1/962: BaseOS x86_64 os (1)
rake aborted!
NoMethodError: undefined method `code' for #<ArgumentError: package_signing_fingerprint cannot be nil>
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:101:in `rescue in repo_exists?'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:91:in `repo_exists?'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:41:in `block (3 levels) in <top (required)>'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:71:in `each'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:71:in `block in find_each'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:138:in `block in find_in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:245:in `block in in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:229:in `loop'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:229:in `in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:137:in `find_in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:70:in `find_each'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:39:in `with_index'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:39:in `block (2 levels) in <top (required)>'
/usr/share/gems/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Caused by:
ArgumentError: package_signing_fingerprint cannot be nil
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb:393:in `package_signing_fingerprint='
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb:276:in `initialize'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb:509:in `new'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb:509:in `build_from_hash'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/api_client.rb:328:in `convert_to_type'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/api_client.rb:288:in `deserialize'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/api_client.rb:86:in `call_api'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/api/repositories_rpm_api.rb:726:in `read_with_http_info'
/usr/share/gems/gems/pulp_rpm_client-3.29.2/lib/pulp_rpm_client/api/repositories_rpm_api.rb:672:in `read'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:95:in `repo_exists?'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:41:in `block (3 levels) in <top (required)>'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:71:in `each'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:71:in `block in find_each'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:138:in `block in find_in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:245:in `block in in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:229:in `loop'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:229:in `in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:137:in `find_in_batches'
/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/batches.rb:70:in `find_each'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:39:in `with_index'
/usr/share/gems/gems/katello-4.17.0/lib/katello/tasks/repository.rake:39:in `block (2 levels) in <top (required)>'
/usr/share/gems/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => katello:correct_repositories