Project

General

Profile

Actions

Bug #13679

closed

content facet migration fails

Added by Stephen Benjamin almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 ?

Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #12986: Facet migration fails with can't cast ActiveSupport::HashWithIndifferentAccess to stringDuplicateJustin Sherrill01/04/2016Actions
Actions

Also available in: Atom PDF