Red Hat Bugzilla – Bug 1324234
Capsule Upgrade Fails: foreman-installer --scenario capsule --upgrade throws error
Last modified: 2016-07-27 05:08:03 EDT
Created from redmine issue http://projects.theforeman.org/issues/13198
Note: this is also needed to be able to successfully run --upgrade on a capsule.
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>'
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]#
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