Project

General

Profile

Actions

Bug #15255

closed

Upgrade errors: migrate_content_hosts: uninitialized constant & can't modify frozen Hash

Added by Brad Buckingham almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Upgrades
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

During upgrade testing, a couple of additional errors were observed with the MigrateContentHosts migration.

Steps to Reproduce:
1. Install katello 2.3
2. Install a capsule
3. Sync a repo
4. Upgrade katello 3.0

Actual results:

Error 1:

...
uninitialized constant MigrateContentHosts::SmartProxy::MigrateContentHosts::ContentHost/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/inheritance.rb:133:in `compute_type'
...
...
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.38/db/migrate/20150930183738_migrate_content_hosts.rb:282:in `unregister_system'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.38/db/migrate/20150930183738_migrate_content_hosts.rb:347:in `block in up'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.38/db/migrate/20150930183738_migrate_content_hosts.rb:315:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.38/db/migrate/20150930183738_migrate_content_hosts.rb:315:in `up'

Once Error 1 is resolved, Error 2 was observed:

...
...
can't modify frozen Hash/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods/write.rb:91:in `write_attribute_with_type_cast'
...
...
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.38/db/migrate/20150930183738_migrate_content_hosts.rb:357:in `block in up'

Expected results:

upgrade succeeds

Actions #1

Updated by The Foreman Bot almost 8 years ago

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

Updated by Justin Sherrill almost 8 years ago

  • translation missing: en.field_release set to 86
Actions #3

Updated by Brad Buckingham almost 8 years ago

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

Updated by Brad Buckingham almost 8 years ago

  • Bugzilla link set to 1339682
Actions

Also available in: Atom PDF