Project

General

Profile

Bug #11736

Migration error on upgrade from clean Katello

Added by Stephen Benjamin over 3 years ago. Updated 9 months ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Database
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

On el7, trying to upgrade a recent completely unused nightly to today's nightly;

==  CreatePuppetModules: migrating ============================================
-- create_table("katello_puppet_modules")
NOTICE:  CREATE TABLE will create implicit sequence "katello_puppet_modules_id_seq" for serial column "katello_puppet_modules.id" 
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "katello_puppet_modules_pkey" for table "katello_puppet_modules" 
   -> 0.1785s
-- add_index(:katello_puppet_modules, :uuid, {:unique=>true})
   -> 0.0249s
-- create_table("katello_repository_puppet_modules")
NOTICE:  CREATE TABLE will create implicit sequence "katello_repository_puppet_modules_id_seq" for serial column "katello_repository_puppet_modules.id" 
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "katello_repository_puppet_modules_pkey" for table "katello_repository_puppet_modules" 
   -> 0.0500s
-- add_index(:katello_repository_puppet_modules, [:puppet_module_id, :repository_id], {:unique=>true, :name=>"index_katello_repository_puppet_module_on_module_id_and_repo_id"})
   -> 0.0335s
-- add_foreign_key("katello_repository_puppet_modules", "katello_puppet_modules", {:name=>"katello_repository_puppet_modules_puppet_module_id_fk", :column=>"puppet_module_id"})
   -> 0.0011s
-- add_foreign_key("katello_repository_puppet_modules", "katello_repositories", {:name=>"katello_repository_puppet_modules_repo_id_fk", :column=>"repository_id"})
   -> 0.0010s
-- create_table("katello_content_view_puppet_environment_puppet_modules")
NOTICE:  CREATE TABLE will create implicit sequence "katello_content_view_puppet_environment_puppet_modules_id_seq" for serial column "katello_content_view_puppet_environment_puppet_modules.id" 
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "katello_content_view_puppet_environment_puppet_modules_pkey" for table "katello_content_view_puppet_environment_puppet_modules" 
   -> 0.0313s
-- add_index(:katello_content_view_puppet_environment_puppet_modules, [:puppet_module_id, :content_view_puppet_environment_id], {:unique=>true, :name=>"index_katello_cv_puppet_env_module_on_module_id_and_cvpe_id"})
   -> 0.0253s
-- add_foreign_key("katello_content_view_puppet_environment_puppet_modules", "katello_puppet_modules", {:name=>"katello_content_view_puppet_env_puppet_modules_puppet_module_id_fk", :column=>"puppet_module_id"})
rake aborted!
An error has occurred, this and all later migrations canceled:

Input string is longer than NAMEDATALEN-1 (63)


Related issues

Related to Katello - Feature #7889: Move Puppet Modules from Elasticsearch to DatabaseClosed2014-10-09

Associated revisions

Revision b2134a6a (diff)
Added by Eric Helms over 3 years ago

Fixes #11736: Shorten content view puppet env foreign key name

Revision 39001f3c
Added by Eric D Helms over 3 years ago

Merge pull request #5465 from ehelms/fixes-11736

Fixes #11736: Shorten content view puppet env foreign key name

History

#1 Updated by Stephen Benjamin over 3 years ago

  • Related to Feature #7889: Move Puppet Modules from Elasticsearch to Database added

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5465 added
  • Pull request deleted ()

#3 Updated by Eric Helms over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 70
  • Triaged changed from No to Yes

Also available in: Atom PDF