Project

General

Profile

Bug #31611

foreman-proxy-certs-generate fails with custom certificates

Added by Eric Helms 8 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman-installer script
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

See report https://community.theforeman.org/t/foreman-proxy-certs-generate-error-with-katello-3-18-1/21943

[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)

Associated revisions

Revision 89c71062 (diff)
Added by Eric Helms 8 months ago

Fixes #31611: execute methods missing in certs-generate hooks

History

#1 Updated by Eric Helms 8 months ago

  • Bugzilla link set to 1915347

#2 Updated by The Foreman Bot 8 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-installer/pull/637 added

#3 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 2.4.0 added

#4 Updated by Eric Helms 8 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 8 months ago

  • Fixed in Releases 2.3.2 added

#6 Updated by Amit Upadhye 6 months ago

  • Category set to Foreman modules

#7 Updated by Ewoud Kohl van Wijngaarden 6 months ago

  • Triaged changed from No to Yes
  • Category changed from Foreman modules to foreman-installer script

Also available in: Atom PDF