Project

General

Profile

Actions

Bug #30746

closed

cannot communicate with pulpcore if foreman_azure_rm is installed "no implicit conversion of OpenSSL::X509::Certificate into String (TypeError) (Faraday::ConnectionFailed)"

Added by Justin Sherrill about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

foreman_azure_rm sets Farday.default_adapter to :excon, which is a different http backend. Sadly it seems that these backends are not compatible wrt to ssl client cert/key.

2020-08-11T20:04:23 [E|bac|] no implicit conversion of OpenSSL::X509::Certificate into String (TypeError) (Faraday::ConnectionFailed)
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/ssl_socket.rb:144:in `read'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/ssl_socket.rb:144:in `client_cert_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/ssl_socket.rb:68:in `initialize'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/connection.rb:404:in `new'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/connection.rb:404:in `socket'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/connection.rb:101:in `request_call'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/middlewares/base.rb:16:in `request_call'
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/connection.rb:250:in `request'
/usr/share/foreman/lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
/opt/theforeman/tfm/root/usr/share/gems/gems/faraday-0.15.4/lib/faraday/adapter/excon.rb:52:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/faraday-0.15.4/lib/faraday/rack_builder.rb:143:in `build_response'
/opt/theforeman/tfm/root/usr/share/gems/gems/faraday-0.15.4/lib/faraday/connection.rb:387:in `run_request'
/opt/theforeman/tfm/root/usr/share/gems/gems/faraday-0.15.4/lib/faraday/connection.rb:175:in `post'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.5.0/lib/pulp_rpm_client/api_client.rb:67:in `public_send'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.5.0/lib/pulp_rpm_client/api_client.rb:67:in `call_api'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.5.0/lib/pulp_rpm_client/api/repositories_rpm_api.rb:79:in `create_with_http_info'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.5.0/lib/pulp_rpm_client/api/repositories_rpm_api.rb:28:in `create'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/services/katello/pulp3/repository.rb:169:in `create'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/lib/actions/pulp3/repository/create.rb:11:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/action.rb:563:in `block (3 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware.rb:32:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/models/katello/concerns/user_extensions.rb:21:in `cp_config'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/lib/actions/middleware/remote_action.rb:16:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/action/progress.rb:31:in `with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/action/progress.rb:17:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.6/lib/dynflow/middleware/stack.rb:23:in `call'

https://community.theforeman.org/t/cannot-sync-repos-no-implicit-conversion-of-openssl/19926/26


Related issues 1 (0 open1 closed)

Related to Katello - Bug #34070: Cannot pull container content - TypeError: wrong argument type String (expected OpenSSL/X509)ClosedJustin SherrillActions
Actions

Also available in: Atom PDF