-
Bug
-
Resolution: Done-Errata
-
Blocker
-
6.18.0
The following is reported from https://community.theforeman.org/t/upgrade-to-katello-4-17-katello-correct-repositories-fails/43512.
Upgrading from Katello 4.15 to 4.17 through 4.16 fails with the following:
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
The main issue is:
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='
It doesn't appear to be always reproducible, since I was able to upgrade from Katello 4.15 to 4.17 with repositories without error.
Pulp issue: https://github.com/pulp/pulp_rpm/issues/3995
- links to
-
RHBA-2025:155337
Important: Satellite 6.18.0 new version release