Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 874768 - [1.0.1 to 1.1 UPGRADE] Katello database failed
[1.0.1 to 1.1 UPGRADE] Katello database failed
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.0.0
Unspecified Unspecified
high Severity high (vote)
: Unspecified
: Unused
Assigned To: Lukas Zapletal
Og Maciel
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-08 14:55 EST by Og Maciel
Modified: 2013-03-27 16:05 EDT (History)
6 users (show)

See Also:
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 14:58:03 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
katello_upgrade.log (27.46 KB, text/x-log)
2012-11-08 14:55 EST, Og Maciel
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1543 normal SHIPPED_LIVE Important: CloudForms System Engine 1.1 update 2012-12-04 19:39:57 EST

  None (edit)
Description Og Maciel 2012-11-08 14:55:19 EST
Created attachment 641058 [details]
katello_upgrade.log

Description of problem:

Upgrading CFSE 1.0.1 to latest 1.1 code breaks while upgrading katello DB. See full upgrade.log attached.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install CFSE 1.0.1
2. Add Orgs, users, custom content, upload manifests, promote content, register systems
3. Upgrade to latest 1.1 following https://fedorahosted.org/katello/wiki/Upgrade
  
Actual results:


Expected results:


Additional info:

# katello-upgrade
================================================================================
 Katello upgrade
================================================================================

1/4: Update Pulp MongoDB database (0002_update_pulp.sh)
 Actions that need to be taken to upgrade Pulp subsystem

Do you want to proceed? (y/n): y

Update Pulp MongoDB database OK.

================================================================================

2/4: Update Candlepin (0003_update_candlepin.sh)
 Updates Candlepin database schema to the latest version

Do you want to proceed? (y/n): y

Update Candlepin OK.

================================================================================

3/4: Migrate Katello database (0004_migrate_katello_db.sh)
 Updates Katello database schema to the latest version

Do you want to proceed? (y/n): y

Migrate Katello database FAILED.
================================================================================
Finished 2 of 4 upgrade steps
Comment 1 Lukas Zapletal 2012-11-09 03:43:12 EST
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
Comment 2 Ivan Necas 2012-11-09 04:03:24 EST
It probably fails because the migrations are not successful, doesn't it?
Comment 3 Lukas Zapletal 2012-11-09 04:14:44 EST
https://github.com/Katello/katello/pull/1027
Comment 7 Og Maciel 2012-11-09 13:24:37 EST
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
Comment 10 errata-xmlrpc 2012-12-04 14:58:03 EST
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

Note You need to log in before you can comment on or make changes to this bug.