Project

General

Profile

Actions

Bug #25344

closed

DisownForemanTemplates db:migrate failing

Added by Sean O'Keeffe almost 6 years ago. Updated almost 6 years ago.

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

Description

20141209103005 DisownForemanTemplates: migrating =========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Invalid single-table inheritance type: ProvisioningTemplate is not a subclass of DisownForemanTemplates::FakeConfigTemplate
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/inheritance.rb:233:in `find_sti_class'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/inheritance.rb:207:in `discriminate_class_for_record'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/persistence.rb:69:in `instantiate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:52:in `block (2 levels) in find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/result.rb:57:in `block in each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/result.rb:57:in `each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/result.rb:57:in `each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:52:in `map'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:52:in `block in find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:51:in `find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/bullet-5.8.1/lib/bullet/active_record52.rb:18:in `find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/statement_cache.rb:108:in `execute'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/core.rb:207:in `find_by'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:24:in `block in update_templates_attributes'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `each'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `update_templates_attributes'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:11:in `up'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:817:in `exec_migration'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:797:in `block in migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:414:in `with_connection'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:796:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:977:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1343:in `ddl_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1262:in `each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1210:in `block in migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1363:in `with_advisory_lock'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1210:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1036:in `up'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1011:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/vagrant/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

Caused by:
ActiveRecord::SubclassNotFound: Invalid single-table inheritance type: ProvisioningTemplate is not a subclass of DisownForemanTemplates::FakeConfigTemplate
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/inheritance.rb:233:in `find_sti_class'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/inheritance.rb:207:in `discriminate_class_for_record'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/persistence.rb:69:in `instantiate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:52:in `block (2 levels) in find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/result.rb:57:in `block in each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/result.rb:57:in `each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/result.rb:57:in `each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:52:in `map'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:52:in `block in find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/querying.rb:51:in `find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/bullet-5.8.1/lib/bullet/active_record52.rb:18:in `find_by_sql'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/statement_cache.rb:108:in `execute'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/core.rb:207:in `find_by'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:24:in `block in update_templates_attributes'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `each'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `update_templates_attributes'
/home/vagrant/katello/db/migrate/20141209103005_disown_foreman_templates.rb:11:in `up'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:817:in `exec_migration'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:797:in `block in migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:414:in `with_connection'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:796:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:977:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1343:in `ddl_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1262:in `each'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1210:in `block in migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1363:in `with_advisory_lock'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1210:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1036:in `up'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1011:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/vagrant/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7792 added
Actions #2

Updated by Anonymous almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Jonathon Turel almost 6 years ago

  • Target version set to Katello 3.9.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF