Project

General

Profile

Bug #22299

Smart Proxy with Puppet 3 and katello 3.4 fail upgrade to 3.5

Added by Mario Gamboa over 4 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

The proxy fail to upgrade because is require puppet 4 in the smartproxy but is not any instructions to do this

History

#1 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) deleted (329)
  • Status changed from New to Need more information

The katello 3.5 install/upgrade docs state:

Katello 3.5 supports upgrades from version 3.4 and Puppet version 4. For users transitioning from versions prior to 3.4, first upgrade to Katello 3.4, upgrade Puppet to version 4, and then proceed to upgrade to Katello 3.5 following the instructions below.

https://www.theforeman.org/plugins/katello/3.4/upgrade/puppet.html

Does that solve your question?

#2 Updated by Mario Gamboa over 4 years ago

No at all as per documentation try

foreman-installer --upgrade-puppet
And is comes back with this for the smart-proxy the katello server was upgrade without issues
Puppet 3 to 4 upgrade is not currently supported for the chosen scenario.

#4 Updated by Mario Gamboa over 4 years ago

Justin Sherrill wrote:

Mario, Can you try this patch: https://github.com/Katello/katello-installer/pull/551/files

from http://projects.theforeman.org/issues/21321

Hi Team

Apply the patch but the installer can't finish just give me the following error

Success!
katello-service start --only httpd finished successfully!
Puppet 3 to 4 upgrade initialization complete, continuing with installation
[ INFO 2018-01-25 10:19:28 verbose] Executing hooks in group pre_migrations
[ INFO 2018-01-25 10:19:28 verbose] All hooks in group pre_migrations finished
[ INFO 2018-01-25 10:19:28 verbose] Executing hooks in group boot
[ INFO 2018-01-25 10:19:28 verbose] All hooks in group boot finished
[ INFO 2018-01-25 10:19:28 verbose] Executing hooks in group init
[ INFO 2018-01-25 10:19:28 verbose] Upgrading puppet...
[ INFO 2018-01-25 10:19:28 verbose] Upgrade Step: upgrade_puppet_package...
[ INFO 2018-01-25 10:19:28 verbose] Upgrade Step: stop_services...
[ INFO 2018-01-25 10:19:28 verbose] Upgrade Step: copy_data...
[ INFO 2018-01-25 10:19:28 verbose] Upgrade Step: remove_puppet_port_httpd...
[ INFO 2018-01-25 10:19:28 verbose] Upgrade Step: start_httpd...
[ INFO 2018-01-25 10:19:28 verbose] Puppet 3 to 4 upgrade initialization complete, continuing with installation
[ INFO 2018-01-25 10:19:28 verbose] All hooks in group init finished
[ INFO 2018-01-25 10:19:28 verbose] Loading default values from puppet modules...
[ INFO 2018-01-25 10:19:28 verbose] ... finished
[ INFO 2018-01-25 10:19:28 verbose] Executing hooks in group pre_values
[ INFO 2018-01-25 10:19:28 verbose] All hooks in group pre_values finished
[ INFO 2018-01-25 10:19:28 verbose] Running installer with args "--upgrade-puppet", "-v"
[ INFO 2018-01-25 10:19:28 verbose] Executing hooks in group pre_validations
Resetting puppet params...
[ INFO 2018-01-25 10:19:28 verbose] Resetting puppet params...
[ INFO 2018-01-25 10:19:28 verbose] Installer finished in 0.913510699 seconds
/usr/share/katello-installer-base/hooks/boot/01-helpers.rb:59:in `reset_value': undefined method `unset_value' for nil:NilClass (NoMethodError)
from /usr/share/katello-installer-base/hooks/pre_validations/31-upgrade-puppet.rb:19:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hooking.rb:34:in `instance_eval'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hook_context.rb:15:in `instance_exec'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hook_context.rb:15:in `execute'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hooking.rb:51:in `block in execute'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hooking.rb:49:in `each'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/hooking.rb:49:in `execute'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/kafo_configure.rb:140:in `execute'
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/kafo_configure.rb:119:in `run'
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
from /usr/share/gems/gems/kafo-2.0.0/lib/kafo/kafo_configure.rb:163:in `run'
from /sbin/foreman-installer:8:in `<main>'

#5 Updated by Mario Gamboa over 4 years ago

With this error the installation fail and is not finish the upgrade correctly

#6 Updated by Andrew Kofink over 4 years ago

  • Legacy Backlogs Release (now unused) set to 295

#7 Updated by Mario Gamboa over 4 years ago

  • Status changed from Need more information to Feedback

Also available in: Atom PDF