Bug 1915347 - foreman-proxy-certs-generate fails with custom certificates
Summary: foreman-proxy-certs-generate fails with custom certificates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.9.0
Assignee: Eric Helms
QA Contact: Devendra Singh
URL:
Whiteboard:
: 1915346 1938278 (view as bug list)
Depends On:
Blocks: 1899108
TreeView+ depends on / blocked
 
Reported: 2021-01-12 13:41 UTC by Eric Helms
Modified: 2021-05-18 12:28 UTC (History)
4 users (show)

Fixed In Version: foreman-installer-2.3.1.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:25:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31611 0 Normal Closed foreman-proxy-certs-generate fails with custom certificates 2021-01-25 12:39:21 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:25:42 UTC

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. ***


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