Bug 1915347

Summary: foreman-proxy-certs-generate fails with custom certificates
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahumbe, jpasqual, jyejare, tbrisker
Target Milestone: 6.9.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-installer-2.3.1.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:25:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1899108    

Description Eric Helms 2021-01-12 13:41:38 UTC
See report https://community.theforeman.org/t/foreman-proxy-certs-generate-error-with-katello-3-18-1/21943

<pre>
[root@foreman ~]# foreman-proxy-certs-generate --foreman-proxy-fqdn "foreman-proxy.example.com"         --certs-tar  "~/foreman-proxy.example.com-certs.tar"         --server-cert "/root/foreman-proxy.crt"         --server-key "/root/foreman-proxy.key"         --server-ca-cert "/etc/pki/tls/certs/example-bundle-g2.crt"         --certs-update-all
Traceback (most recent call last):
	13: from /sbin/foreman-proxy-certs-generate:31:in `<main>'
	12: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/kafo_configure.rb:50:in `run'
	11: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
	10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/kafo_configure.rb:169:in `run'
	 9: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
	 8: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/kafo_configure.rb:199:in `execute'
	 7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hooking.rb:51:in `execute'
	 6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hooking.rb:51:in `each'
	 5: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hooking.rb:53:in `block in execute'
	 4: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hook_context.rb:19:in `execute'
	 3: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hook_context.rb:19:in `instance_eval'
	 2: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hooking.rb:35:in `block (4 levels) in load'
	 1: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.2/lib/kafo/hooking.rb:35:in `instance_eval'
/usr/share/foreman-installer/katello-certs/hooks/pre_commit/20-certs_update.rb:17:in `block (4 levels) in load': undefined method `execute!' for #<Kafo::HookContext:0x0000000002d94278> (NoMethodError)
</pre>

Comment 1 Eric Helms 2021-01-12 13:41:41 UTC
Created from redmine issue https://projects.theforeman.org/issues/31611

Comment 2 Eric Helms 2021-01-12 13:41:43 UTC
Upstream bug assigned to ehelms

Comment 4 Brad Buckingham 2021-01-14 15:16:54 UTC
*** Bug 1915346 has been marked as a duplicate of this bug. ***

Comment 7 Devendra Singh 2021-01-25 16:41:38 UTC
Verified on 6.9 Snap 10.

Comment 10 errata-xmlrpc 2021-04-21 13:25:02 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 (Moderate: Satellite 6.9 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-2021:1313

Comment 11 Eric Helms 2021-05-18 12:28:26 UTC
*** Bug 1938278 has been marked as a duplicate of this bug. ***