Bug 1340614
| Summary: | Upgrades: db_migrate fails with undefined method `org' for #<MigrateContentHosts (rhel6) | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> |
| Component: | Upgrades | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | bbuckingham |
| Target Milestone: | Unspecified | ||
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-31 12:30:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1335807 | ||
|
Description
Lukas Pramuk
2016-05-28 21:18:01 UTC
/var/log/foreman-installer/satellite.log: ... [ INFO 2016-05-27 19:47:26 main] Upgrade Step: migrate_foreman... [DEBUG 2016-05-27 19:47:52 main] true [ERROR 2016-05-27 19:48:19 main] rake aborted! StandardError: An error has occurred, this and all later migrations canceled: undefined method `org' for #<MigrateContentHosts::Host:0x0000000d9901d0>/opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/a ttribute_methods.rb:435:in `method_missing' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.35/db/migrate/20150930183738_migrate_content_hosts.rb:328:in `block in up' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.35/db/migrate/20150930183738_migrate_content_hosts.rb:304:in `each' ... Tasks: TOP => db:migrate (See full trace by running task with --trace) == 20150930183738 MigrateContentHosts: migrating ============================== [DEBUG 2016-05-27 19:48:42 main] false [ INFO 2016-05-27 19:48:42 main] Upgrade Step: migrate_gutterball... ... db_migrate.log: ... == 20150114210634 RenameScaptimonyArfReportRawRaw: migrating ================== -- rename_column(:scaptimony_arf_report_raws, :raw, :bzip_data)rake aborted! StandardError: An error has occurred, this and all later migrations canceled: undefined method `org' for #<MigrateContentHosts::Host:0x000000021dd4e8>/opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:in `method_missing' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.35/db/migrate/20150930183738_migrate_content_hosts.rb:328:in `block in up' ... Tasks: TOP => db:migrate (See full trace by running task with --trace) -> 0.0047s == 20150114210634 RenameScaptimonyArfReportRawRaw: migrated (0.0049s) ========= ... == 20150930183738 MigrateContentHosts: migrating ============================== (END) # foreman-rake db:migrate == 20150930183738 MigrateContentHosts: migrating ============================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled: undefined method `org' for #<MigrateContentHosts::Host:0x007fc5c809ac00>/opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:in `method_missing' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing' ... |