Hello!
Can I ask for some support with SSL?
Problem:
Foreman and most of the components cannot connect to QPID and this case different problems.
- pulp_auth stays in error state with
SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca
- Thousands of failed tasks ‘Listen on candlepin events’ with traces like:
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:inblock in assigns' /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in
tap’
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:inassigns' /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in
match_value’
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:inblock in match?' /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in
each’
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:inmatch?' /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in
match’
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.2.3/lib/dynflow/execution_plan/steps/error.rb:12:in `new’
So, I’ve replaced /etc/pki/katello/qpid_client_striped.crt to correct one and now foreman-debug start showing qpid stats. But rest of the stuff still doesn’t work.
Expected outcome:
All related tasks are working
Foreman and Proxy versions:
Foreman 1.22.2
Foreman and Proxy plugin versions:
katello 3.12.3-1.el7
candlepin 2.6.8-1.el7
pulp-katello 1.0.2-1.el7
qpid-proton-c.x86_64 0.29.0-1.el7
Distribution and version:
CentOS Linux release 7.6.1810 (Core)
Other relevant data:
Console:
foreman-rake console
Loading production environment (Rails 5.2.1)
irb(main):001:0> conn = Qpid::Messaging::Connection.new(:url => “amqp:ssl:localhost:5671”, :options => {:transport => ‘ssl’})
=> #<Qpid::Messaging::Connection:0x00000000099a5638 @url=“amqp:ssl:localhost:5671”, @options={“transport”=>“ssl”}, @connection_impl=#<Cqpid::Connection:0x00000000099a54a8 @swigtype="_p_qpid__messaging__Connection">>
irb(main):002:0> conn.open
terminate called after throwing an instance of ‘qpid::types::Exception’
what(): Failed to initialise SSL: Failed: NSS error [-8015] (/builddir/build/BUILD/qpid-cpp-1.39.0/src/qpid/sys/ssl/util.cpp:100) (/builddir/build/BUILD/qpid-cpp-1.39.0/src/qpid/client/SslConnector.cpp:149)
/tmp/tmp.udui85xPle: line 1: 29196 Aborted rake console
[root@bdapmgmtsbx01 private]# foreman-debug
Foreman logs:
Starting Rails environment
Starting dynflow with the following options: {:rails_root=>"/usr/share/foreman", :process_name=>“dynflow_executor”, :pid_dir=>"/usr/share/foreman/tmp/pids", :log_dir=>"/usr/share/foreman/log", :wait_attempts=>300, :wait_sleep=>1, :executors_count=>1, :memory_limit=>0, :memory_init_delay=>7200, :memory_polling_interval=>60}
Everything ready for world: 16338e89-ac72-43a1-9b42-07d733011383
terminate called after throwing an instance of ‘qpid::types::Exception’
what(): Failed to initialise SSL: Failed: NSS error [-8015] (/builddir/build/BUILD/qpid-cpp-1.39.0/src/qpid/sys/ssl/util.cpp:100) (/builddir/build/BUILD/qpid-cpp-1.39.0/src/qpid/client/SslConnector.cpp:149)
Starting Rails environment
Starting dynflow with the following options: {:rails_root=>"/usr/share/foreman", :process_name=>“dynflow_executor”, :pid_dir=>"/usr/share/foreman/tmp/pids", :log_dir=>"/usr/share/foreman/log", :wait_attempts=>300, :wait_sleep=>1, :executors_count=>1, :memory_limit=>0, :memory_init_delay=>7200, :memory_polling_interval=>60}