Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1324234 - Capsule Upgrade Fails: foreman-installer --scenario capsule --upgrade throws error
Capsule Upgrade Fails: foreman-installer --scenario capsule --upgrade throws ...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Installer (Show other bugs)
6.0.4
Unspecified Unspecified
unspecified Severity high (vote)
: Beta
: Unused
Assigned To: satellite6-bugs
Sachin Ghai
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-05 18:23 EDT by Brad Buckingham
Modified: 2016-07-27 05:08 EDT (History)
3 users (show)

See Also:
Fixed In Version: katello-installer-base-3.0.0.17-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-27 05:08:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 13198 None None None 2016-04-22 11:50 EDT
Red Hat Product Errata RHBA-2016:1500 normal SHIPPED_LIVE Red Hat Satellite 6.2 Base Libraries 2016-07-27 08:24:38 EDT

  None (edit)
Description Brad Buckingham 2016-04-05 18:23:21 EDT

    
Comment 1 Brad Buckingham 2016-04-05 18:23:24 EDT
Created from redmine issue http://projects.theforeman.org/issues/13198
Comment 2 Brad Buckingham 2016-04-05 18:24:27 EDT
Note: this is also needed to be able to successfully run --upgrade on a capsule.
Comment 4 Mike McCune 2016-04-05 18:50:00 EDT
We need the upstream PR from the Redmine linked above to resolve the following error:

# foreman-installer --upgrade --scenario capsule
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
/usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:63:in `block (4 levels) in load': undefined method `value' for nil:NilClass (NoMethodError)
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hooking.rb:34:in `instance_eval'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hook_context.rb:13:in `instance_exec'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hook_context.rb:13:in `execute'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hooking.rb:51:in `block in execute'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hooking.rb:49:in `each'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/hooking.rb:49:in `execute'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/kafo_configure.rb:365:in `run_installation'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/kafo_configure.rb:147:in `execute'
	from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
	from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
	from /usr/share/gems/gems/kafo-0.7.2/lib/kafo/kafo_configure.rb:154:in `run'
	from /usr/sbin/foreman-installer:12:in `<main>'
Comment 5 Sachin Ghai 2016-04-14 06:37:41 EDT
Verified with upgrading capsule from sat6.2 beta snap7 to snap8.1

capsule upgrade completed as below

Updated:
  foreman-debug.noarch 0:1.11.0.13-1.el7sat         foreman-installer.noarch 1:1.11.0.2-1.el7sat foreman-installer-katello.noarch 0:3.0.0.18-1.el7sat
  katello-installer-base.noarch 0:3.0.0.18-1.el7sat python-kombu.noarch 1:3.0.33-7.el7sat        satellite-capsule.noarch 0:6.2.0-8.0.beta.el7sat    

Complete!
[root@cloud-qe-7 yum.repos.d]# foreman-installer --scenario capsule --upgrade
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: migrate_pulp...
Upgrade Step: start_httpd...
Upgrade Step: remove_nodes_importers...
Upgrade Step: Running installer...
Installing             Done                                               [100%] [..................................................................]
  The full log is at /var/log/foreman-installer/capsule.log
Upgrade Step: restart_services...
Katello upgrade completed!
[root@cloud-qe-7 yum.repos.d]#
Comment 7 errata-xmlrpc 2016-07-27 05:08:03 EDT
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.

https://access.redhat.com/errata/RHBA-2016:1500

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