Rajesh
July 3, 2018, 2:18pm
#1
Problem: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([OpenSSL::SSL::SSLError]: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unsupported protocol) for proxy
Expected outcome: version /feature would b displayed
Foreman and Proxy versions: 1.17.1
Foreman and Proxy plugin versions: 1.17.1
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
lzap
July 3, 2018, 6:39pm
#2
Hello, the error says it all. Entered correct port? Note 8448 is HTTP and 8443 is HTTPS. If you installed katello scenario then HTTPS is 9090 actually.
Rajesh
July 4, 2018, 5:42am
#3
Hi , Thanks for response , I used Https communication with port 8443, I have configured the path as same of puppet ssl ./etc/puppetlabs/puppet/ssl/.
top of the log I got below error message as well.
([OpenSSL::SSL::SSLError]: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unsupported protocol) for proxy
difficult to trace where i did the mistake
Regards,
lzap
July 4, 2018, 8:53am
#4
Certificates deployed by our installer work out of box. Show us your foreman-installer command and output from it. Both from Foreman and Smart Proxy.
Rajesh
July 4, 2018, 9:51am
#5
Hi , PFB the installer command is foreman-installer . PFB output on command
[ERROR 2018-07-03 19:33:38 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[192.168.60.201]: Could not evaluate: Exception 504 "Unknown Host" in get request to: https://coedev-saltmaster.labomnicube.com/api/v2/smart_proxies?search=name=%22192.168.60.201%22
[ERROR 2018-07-03 19:33:38 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:89:in `rescue in request'
[ERROR 2018-07-03 19:33:38 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:71:in `request'
[ERROR 2018-07-03 19:33:38 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:6:in `proxy'
[ERROR 2018-07-03 19:33:38 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
[ERROR 2018-07-03 19:33:38 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1070:in `retrieve'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1098:in `retrieve_resource'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:302:in `from_resource'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:257:in `apply'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:277:in `eval_resource'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `call'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `block (2 levels) in evaluate'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:513:in `block in thinmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:512:in `thinmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `block in evaluate'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:in `traverse'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in `evaluate'
[ERROR 2018-07-03 19:33:38 main] /usr/share/gems/gems/kafo-2.1.0/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:in `block (2 levels) in apply'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:513:in `block in thinmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:512:in `thinmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in `block in apply'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:156:in `with_destination'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in `as_logging_destination'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `apply'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in `block (2 levels) in apply_catalog'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:513:in `block in thinmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:512:in `thinmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in `block in apply_catalog'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in `block in benchmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:in `benchmark'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:184:in `apply_catalog'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:369:in `run_internal'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:237:in `block in run'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
[ERROR 2018-07-03 19:33:38 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:211:in `run'
lzap
July 9, 2018, 12:20pm
#6
Rajesh:
%22192.168.60.201%22
You have some weird characters around your IP address. Clean that.
Rajesh
July 10, 2018, 9:00pm
#7
Hi ,
I could not see weird characters in any of the conf file, like /etc/hosts, foreman-answers.yaml, foreman.yaml,foreman-proxy.yaml,it is strange , is there any conf files , am I missed out
%22 is just url-encoded "
lzap
July 11, 2018, 8:32am
#9
Looks like someone was not lazy to run urldecoder or knows those guys out of his head
@Rajesh you apparently have incorrect input, fix that. Copy and paste installer commands you have performed. Or YAML files. This is tested, working and in real-world deployment, I’d be very surprised if this was a bug.