Actions
Bug #13679
closedcontent facet migration fails
Description
2016-02-11T11:59:21 [app] [I] Creating content facet for host katello-centos7-devel.example.com. rake aborted! StandardError: An error has occurred, this and all later migrations canceled: uninitialized constant Katello::System::Katello::SystemErratum/home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/inheritance.rb:133:in `compute_type' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/reflection.rb:221:in `klass' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/reflection.rb:537:in `source_reflection' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/reflection.rb:697:in `check_validity!' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/associations/association.rb:25:in `initialize' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/associations/has_many_through_association.rb:9:in `initialize' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/associations.rb:155:in `new' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/associations.rb:155:in `association' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/associations/builder/association.rb:110:in `applicable_errata' /home/vagrant/katello/db/migrate/20150930183738_migrate_content_hosts.rb:51:in `create_content_facet' /home/vagrant/katello/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in up' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each' /home/vagrant/katello/db/migrate/20150930183738_migrate_content_hosts.rb:171:in `up' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate' /home/vagrant/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
This doesn't seem to exist: https://github.com/Katello/katello/blob/master/db/migrate/20150930183738_migrate_content_hosts.rb#L36
Creating Katello::SystemErratum in the migration fails with a different error:
ActiveRecord::HasManyThroughSourceAssociationNotFoundError: Could not find the source association(s) :erratum in model Katello::SystemErratum. Try 'has_many :applicable_errata, :through => :system_errata, :source => <name>'. Is it one of ?
Updated by Walden Raines almost 9 years ago
- Status changed from New to Assigned
- Assignee set to Walden Raines
Updated by The Foreman Bot almost 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5777 added
Updated by Eric Helms almost 9 years ago
- Translation missing: en.field_release set to 86
Updated by Walden Raines almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|040d7132601859f6fa9df976bf601115e4690eeb.
Updated by Eric Helms over 8 years ago
- Has duplicate Bug #12986: Facet migration fails with can't cast ActiveSupport::HashWithIndifferentAccess to string added
Actions