Actions
Bug #29389
closedMigration fails on 20200129172534_add_epoch_version_release_arch_to_katello_installed_packages.rb
Description
Migration fails with the following call stack:
Caused by: NoMethodError: undefined method `[]=' for nil:NilClass /home/vagrant/katello/db/migrate/20200129172534_add_epoch_version_release_arch_to_katello_installed_packages.rb:17:in `block in up' /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:70:in `block (2 levels) in find_each' /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:70:in `each' /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:70:in `block in find_each' /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:136:in `block in find_in_batches'
This is caused because a package:
#<Katello::InstalledPackage:0x000000001064ce58 id: 343, name: "gpg-pubkey", nvra: "gpg-pubkey-d4082792-5b32db75.">,
which does not return a valid nvrea.
Actions