Actions
Bug #15255
closedUpgrade errors: migrate_content_hosts: uninitialized constant & can't modify frozen Hash
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
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6092 added
Updated by Justin Sherrill over 8 years ago
- Translation missing: en.field_release set to 86
Updated by Brad Buckingham over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|6dcfd4d9d817a5c4e8c9f594a74b696c281fab2c.
Actions