Project

General

Profile

Actions

Bug #18240

closed

foreman-proxy reports an error about the mcollective certificate

Added by Vincent Lamers about 7 years ago. Updated about 7 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Steps to reproduce:
su - foreman-proxy
mco choria request_cert

Sign the csr in foreman.

Everythings works fine. So initiating a puppet run from the GUI etc. But also mcollective commands on the CLI. Only this error appears after clicking Infrastructure -> smart proxies - puppet CA -> certificates

I'm running foreman 1.13.3

Oops, we're sorry but something went wrong No route matches {:action=>"update", :controller=>"puppetca", :id=>#<SmartProxies::PuppetCACertificate:0x00000009e98078 @name="foreman-proxy.mcollective/OU=mcollective", @state=nil, @fingerprint=nil, @valid_from=2017-01-24 08:56:28 UTC, @expires_at=2022-01-24 08:56:28 UTC, @status_object=#<ProxyStatus::PuppetCA:0x00000009d204c0 @proxy=#<SmartProxy id: 1, name: "puppet4.wrt-nm.internl.net", url: "https://puppet4.wrt-nm.internl.net:8443&quot;, created_at: "2016-11-18 14:42:25", updated_at: "2016-11-18 14:42:25", expired_logs: "0">, @cache_duration=180 seconds, @cache=true, @api=#<ProxyAPI::Puppetca:0x00000009dc6cf8 @url="https://puppet4.wrt-nm.internl.net:8443/puppet/ca&quot;, @connect_params={:timeout=>60, :open_timeout=>10, :headers=>{:accept=>:json}, :user=>nil, :password=>nil, :ssl_client_cert=>#<OpenSSL::X509::Certificate: subject=#<OpenSSL::X509::Name:0x007eff967e7880>, issuer=#<OpenSSL::X509::Name:0x007eff967e78a8>, serial=#<OpenSSL::BN:0x007eff967e78d0>, not_before=2016-11-17 14:39:50 UTC, not_after=2021-11-17 14:39:50 UTC>, :ssl_client_key=>#<OpenSSL::PKey::RSA:0x00000009de1a80>, :ssl_ca_file=>"/etc/puppetlabs/puppet/ssl/certs/ca.pem", :verify_ssl=>1}, @resource=#<RestClient::Resource:0x00000009de1828 @url="https://puppet4.wrt-nm.internl.net:8443/puppet/ca&quot;, @block=nil, @options={:timeout=>60, :open_timeout=>10, :headers=>{:accept=>:json}, :user=>nil, :password=>nil, :ssl_client_cert=>#<OpenSSL::X509::Certificate: subject=#<OpenSSL::X509::Name:0x007eff967e7088>, issuer=#<OpenSSL::X509::Name:0x007eff967e70b0>, serial=#<OpenSSL::BN:0x007eff967e70d8>, not_before=2016-11-17 14:39:50 UTC, not_after=2021-11-17 14:39:50 UTC>, :ssl_client_key=>#<OpenSSL::PKey::RSA:0x00000009de1a80>, :ssl_ca_file=>"/etc/puppetlabs/puppet/ssl/certs/ca.pem", :verify_ssl=>1}>>>>, :smart_proxy_id=>"1-puppet4-wrt-nm-internl-net"} missing required keys: [:id]Oops, we're sorry but something went wrong No route matches {:action=>"update", :controller=>"puppetca", :id=>#<SmartProxies::PuppetCACertificate:0x00000009e98078 @name="foreman-proxy.mcollective/OU=mcollective", @state=nil, @fingerprint=nil, @valid_from=2017-01-24 08:56:28 UTC, @expires_at=2022-01-24 08:56:28 UTC, @status_object=#<ProxyStatus::PuppetCA:0x00000009d204c0 @proxy=#<SmartProxy id: 1, name: "puppet4.wrt-nm.internl.net", url: "https://puppet4.wrt-nm.internl.net:8443&quot;, created_at: "2016-11-18 14:42:25", updated_at: "2016-11-18 14:42:25", expired_logs: "0">, @cache_duration=180 seconds, @cache=true, @api=#<ProxyAPI::Puppetca:0x00000009dc6cf8 @url="https://puppet4.wrt-nm.internl.net:8443/puppet/ca&quot;, @connect_params={:timeout=>60, :open_timeout=>10, :headers=>{:accept=>:json}, :user=>nil, :password=>nil, :ssl_client_cert=>#<OpenSSL::X509::Certificate: subject=#<OpenSSL::X509::Name:0x007eff967e7880>, issuer=#<OpenSSL::X509::Name:0x007eff967e78a8>, serial=#<OpenSSL::BN:0x007eff967e78d0>, not_before=2016-11-17 14:39:50 UTC, not_after=2021-11-17 14:39:50 UTC>, :ssl_client_key=>#<OpenSSL::PKey::RSA:0x00000009de1a80>, :ssl_ca_file=>"/etc/puppetlabs/puppet/ssl/certs/ca.pem", :verify_ssl=>1}, @resource=#<RestClient::Resource:0x00000009de1828 @url="https://puppet4.wrt-nm.internl.net:8443/puppet/ca&quot;, @block=nil, @options={:timeout=>60, :open_timeout=>10, :headers=>{:accept=>:json}, :user=>nil, :password=>nil, :ssl_client_cert=>#<OpenSSL::X509::Certificate: subject=#<OpenSSL::X509::Name:0x007eff967e7088>, issuer=#<OpenSSL::X509::Name:0x007eff967e70b0>, serial=#<OpenSSL::BN:0x007eff967e70d8>, not_before=2016-11-17 14:39:50 UTC, not_after=2021-11-17 14:39:50 UTC>, :ssl_client_key=>#<OpenSSL::PKey::RSA:0x00000009de1a80>, :ssl_ca_file=>"/etc/puppetlabs/puppet/ssl/certs/ca.pem", :verify_ssl=>1}>>>>, :smart_proxy_id=>"1-puppet4-wrt-nm-internl-net"} missing required keys: [:id]


Related issues 2 (0 open2 closed)

Is duplicate of Foreman - Bug #18040: Certificates with OU= give an error when listing smart-proxy cert list.ClosedDaniel Lobato Garcia01/12/2017Actions
Has duplicate Foreman - Bug #21095: Puppet CA Certificate - ActionController::UrlGenerationErrorDuplicate09/25/2017Actions
Actions #1

Updated by Dominic Cleal about 7 years ago

  • Is duplicate of Bug #18040: Certificates with OU= give an error when listing smart-proxy cert list. added
Actions #2

Updated by Dominic Cleal about 7 years ago

  • Status changed from New to Duplicate

Thanks for the report, this is being addressed under ticket #18040.

Actions #3

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

  • Has duplicate Bug #21095: Puppet CA Certificate - ActionController::UrlGenerationError added
Actions

Also available in: Atom PDF