Bug 874768
| Summary: | [1.0.1 to 1.1 UPGRADE] Katello database failed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Og Maciel <omaciel> | ||||
| Component: | Content Management | Assignee: | Lukas Zapletal <lzap> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Og Maciel <omaciel> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.0 | CC: | cpelland, dmacpher, gkhachik, inecas, lzap, mmccune | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Upgrading from System Engine 1.0.1 to 1.1 fails at the database migration stage. This is due to label processing for environments set to nil. This fix corrects this issue.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-12-04 19:58:03 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: | |||||||
| Attachments: |
|
||||||
|
Description
Og Maciel
2012-11-08 19:55:19 UTC
The reindex step fails: undefined local variable or method `label' for #<Organization:0x7f36f02cbce8> /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.10/lib/active_model/attribute_methods.rb:392:in `method_missing' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/attribute_methods.rb:46:in `method_missing' /usr/share/katello/app/models/glue/candlepin/owner.rb:28:in `included' /usr/share/katello/app/models/lazy_accessor.rb:135:in `instance_eval' /usr/share/katello/app/models/lazy_accessor.rb:135:in `run_initializer' /usr/share/katello/app/models/lazy_accessor.rb:74:in `service_levels' /usr/share/katello/app/models/indexed_model.rb:136:in `send' /usr/share/katello/app/models/indexed_model.rb:136:in `to_indexed_json' /usr/share/katello/app/models/indexed_model.rb:135:in `each' /usr/share/katello/app/models/indexed_model.rb:135:in `to_indexed_json' /usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/index.rb:296:in `convert_document_to_json' /usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/index.rb:76:in `bulk_store' /usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/index.rb:68:in `map' /usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/index.rb:68:in `bulk_store' /usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/index.rb:118:in `import' /usr/share/katello/lib/tasks/reindex.rake:11 /usr/share/katello/lib/tasks/reindex.rake:8:in `each' /usr/share/katello/lib/tasks/reindex.rake:8 It probably fails because the migrations are not successful, doesn't it? Verified: * candlepin-0.7.8.1-1.el6cf.noarch * candlepin-selinux-0.7.8.1-1.el6cf.noarch * candlepin-tomcat6-0.7.8.1-1.el6cf.noarch * katello-1.1.12-22.el6cf.noarch * katello-all-1.1.12-22.el6cf.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.1.8-1.el6cf.noarch * katello-cli-1.1.8-12.el6cf.noarch * katello-cli-common-1.1.8-12.el6cf.noarch * katello-common-1.1.12-22.el6cf.noarch * katello-configure-1.1.9-12.el6cf.noarch * katello-glue-candlepin-1.1.12-22.el6cf.noarch * katello-glue-foreman-0.1.318-1.el6cf.noarch * katello-glue-pulp-1.1.12-22.el6cf.noarch * katello-qpid-broker-key-pair-1.0-1.noarch * katello-qpid-client-key-pair-1.0-1.noarch * katello-selinux-1.1.1-2.el6cf.noarch * pulp-1.1.14-1.el6cf.noarch * pulp-common-1.1.14-1.el6cf.noarch * pulp-selinux-server-1.1.14-1.el6cf.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-1543.html |