Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2173570 - Installer fails in upgrade with "No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman/manifests/compute/gce.pp is available"
Summary: Installer fails in upgrade with "No Puppet module parser is installed and no ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.13.0
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: 6.13.0
Assignee: Eric Helms
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks: 2163425
TreeView+ depends on / blocked
 
Reported: 2023-02-27 09:35 UTC by Gaurav Talreja
Modified: 2023-05-03 13:25 UTC (History)
2 users (show)

Fixed In Version: satellite-installer-6.13.0.7-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:25:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-16152 0 None None None 2023-02-27 13:00:24 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:25:23 UTC

Description Gaurav Talreja 2023-02-27 09:35:04 UTC
Description of problem:


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

How reproducible:


Steps to Reproduce:
1. Setup 6.12 with ohsnap repos of 6.13 and update rubygem-foreman_maintain
2. # foreman-maintain upgrade run --target-version 6.13 --whitelist="repositories-validate,repositories-setup"
...
--------------------------------------------------------------------------------
Procedures::Installer::Upgrade: /usr/share/gems/gems/kafo-6.5.0/lib/kafo/puppet_module.rb:70:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman/manifests/compute/gce.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/configuration.rb:133:in `block in modules'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/configuration.rb:133:in `map'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/configuration.rb:133:in `modules'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/kafo_configure.rb:253:in `modules'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/kafo_configure.rb:257:in `module'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hook_context.rb:113:in `module_present?'
	from /usr/share/foreman-installer/hooks/boot/20-certs_update.rb:2:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hooking.rb:36:in `instance_eval'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hooking.rb:36:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hook_context.rb:19:in `instance_eval'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hook_context.rb:19:in `execute'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hooking.rb:67:in `block in execute'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hooking.rb:65:in `each'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/hooking.rb:65:in `execute'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/kafo_configure.rb:140:in `initialize'
	from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
	from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
	from /usr/share/gems/gems/kafo-6.5.0/lib/kafo/kafo_configure.rb:50:in `run'
	from /usr/sbin/satellite-installer:8:in `<main>'
                                      [FAIL]
Failed executing satellite-installer, exit status 1
--------------------------------------------------------------------------------
...

Actual results:
Upgrade fails with mentioned error

Expected results:
Upgrade to 6.13 complete successfully

Additional info:

Comment 3 Lukas Pramuk 2023-02-27 10:04:02 UTC
Workaround:

# /opt/puppetlabs/puppet/bin/gem install puppet-strings

And re-running satellite-maintain again

Comment 4 Evgeni Golov 2023-02-27 10:12:32 UTC
Workaround:

# sed -i '/gce/d' /etc/foreman-installer/scenarios.d/satellite-answers.yaml

Comment 6 Gaurav Talreja 2023-03-02 17:37:56 UTC
Verified.

Tested upgrade from Satellite 6.12.2 to 6.13.0 Snap 13.0
Version: 
satellite-installer-6.13.0.7-1.el8sat.noarch
rubygem-foreman_maintain-1.2.6-1.el8sat.noarch

Steps:
1. # foreman-maintain upgrade run --target-version 6.13 --whitelist="repositories-validate,repositories-setup"

Observation:
Upgrade to Satellite 6.13 completed successfully, Post-upgrade, GCE CR is working as before.

Comment 9 errata-xmlrpc 2023-05-03 13:25:13 UTC
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 (Important: Satellite 6.13 Release), 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/RHSA-2023:2097


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