Re: [foreman-users] Foreman install on large environment
Thank you very much, you helped a lot. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
[foreman-users] Foreman install on large environment
Hi, This is basically a puppet question with foreman as the manager. I am currently using foreman with puppet 3.6 on a large scale environment (over 500 servers) therefore installed it with passenger/Apache configuration (for the puppet master) to support overload due to simultaneous connections issue. I want to upgrade to puppet 4.8 with foreman and after reading a lot My understanding is that the new version comes with the web server embedded under jvm and it should be similar to the passenger/Apache configuration(at least performance and load wise), and could be adjusted with several jruby processes. Anyhow I have also tried to configure puppet 4.8 with the same Apache/ passenger configuration but no luck - even though puppet have this documented. Is the new jvm configuration sufficient or should I come with another solution? Can someone confirm/elaborate some more regarding the main differences between std puppet (webrick), Apache/passenger based and the new jvm? Thanks, Dor -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-users] Foreman remote execution fails
Thanks for the insight, i didn't knew it has separate logs. i have enabled debug log, and it seems like foreman-proxy is trying to access the remote host with different IP ( it resolves to the host secondary IP ) which results in connection error. i have tried it with several hosts which have the same issue. the good news are that there are other hosts now which works OK, so i guess the problem is within resolving the hosts ips. Thank you very much, your input regarding the debug logs helped a lot. On Wednesday, October 19, 2016 at 3:10:54 PM UTC+3, aruz...@redhat.com wrote: > > Hello, > from what you posted it seems that there is a problem with opening the > SSH connection from proxy to the target host. Could you please check > /var/log/foreman-proxy/smart_proxy_dynflow_core.log? There could be > something helpful there (it is a log file of a smart proxy helper > process which handles the ssh connections). It might help even more if > you could set the log level for this process (in > /etc/smart_proxy_dynflow_core/settings.yml) to DEBUG, rerun the job > invocation and check the logs afterwards. > > Hope this helps shed some light into what might be wrong > > -- Adam > > Dor Azoulay <doraz...@gmail.com > writes: > > > i have just installed the latest version of foreman (1.13.0) on Centos > 7.2. > > everything works well except when i am trying to run remote execution on > a > > machine (installed via foreman-installer) it fails with : > > > > 1: > > Error initializing command: Net::SSH::ConnectionTimeout - > > Net::SSH::ConnectionTimeout > > 2: > > Exit status: EXCEPTION > > > > basically it says "pending" on the job status and after about 2 minutes > it > > throws the above message on the host details. > > > > it seems the remote host doesn't get the request for some reason. > > > > all features are enabled on the smart proxy section. > > FW & Selinux are disabled. > > > > according to foreman-proxy logs there is nothing suspicious: > > > > accept: 192.168.249.222:49686 > > D, [2016-10-19T11:35:35.979099 #5730] DEBUG -- : Rack::Handler::WEBrick > is > > invoked. > > D, [2016-10-19T11:35:35.988823 #5730] DEBUG -- : verifying remote client > > 192.168.220.222 against trusted_hosts ["foreman.example.com"] > > D, [2016-10-19T11:35:35.991867 #5730] DEBUG -- : Proxy request from > > foreman.example.com:8443/dynflow/tasks/count to > https://foreman.example.com > > :8008/tasks/ > > count > > D, [2016-10-19T11:35:36.081274 #5730] DEBUG -- : Proxy request status > 200 - > > # > > I, [2016-10-19T11:35:36.082396 #5730] INFO -- : 192.168.220.222 - - > > [19/Oct/2016:11:35:36 +] "GET /dynflow/tasks/count?state=running > > HTTP/1.1" 200 29 0.0939 > > > > D, [2016-10-19T11:35:36.123514 #5730] DEBUG -- : close: > > 192.168.220.222:49686 > > D, [2016-10-19T11:35:36.343377 #5730] DEBUG -- : accept: > > 192.168.220.222:49688 > > D, [2016-10-19T11:35:36.349244 #5730] DEBUG -- : Rack::Handler::WEBrick > is > > invoked. > > D, [2016-10-19T11:35:36.350386 #5730] DEBUG -- : verifying remote client > > 192.168.220.222 against trusted_hosts ["foreman.example.com"] > > D, [2016-10-19T11:35:36.350751 #5730] DEBUG -- : Proxy request from > > foreman.example.com:8443/dynflow/tasks/ to > https://foreman.example.com:8008/tasks/ > > > > D, [2016-10-19T11:35:36.852074 #5730] DEBUG -- : Proxy request status > 200 - > > # > > I, [2016-10-19T11:35:36.852681 #5730] INFO -- : 192.168.220.222 - - > > [19/Oct/2016:11:35:36 +] "POST /dynflow/tasks/ HTTP/1.1" 200 50 > 0.5026 > > > > D, [2016-10-19T11:35:36.893861 #5730] DEBUG -- : close: > > 192.168.220.222:49688 > > D, [2016-10-19T11:36:36.346125 #5730] DEBUG -- : accept: > > 192.168.220.222:49697 > > D, [2016-10-19T11:36:36.352459 #5730] DEBUG -- : Rack::Handler::WEBrick > is > > invoked. > > D, [2016-10-19T11:36:36.353314 #5730] DEBUG -- : verifying remote client > > 192.168.220.222 against trusted_hosts ["foreman.example.com"] > > D, [2016-10-19T11:36:36.353691 #5730] DEBUG -- : Proxy request from > > > foreman.example.com:8443/dynflow/tasks/1063de40-3671-4a2d-9370-22068b642009/status > > > to http > > s:// > foreman.example.com:8008/tasks/1063de40-3671-4a2d-9370-22068b642009/status > > > > D, [2016-10-19T11:36:36.406618 #5730] DEBUG -- : Proxy request status > 200 - > > # > > I, [2016-10-19T11:36:36.407055 #5730] INFO
[foreman-users] Re: Foreman remote execution fails
Yes, the root user on the remote host has foreman-proxy ssh public key, anything else i might have missed ? On Wednesday, October 19, 2016 at 3:54:06 PM UTC+3, Duncan Innes wrote: > > Is the target host configured to accept the SSH connection from the proxy? > > > https://theforeman.org/plugins/foreman_remote_execution/0.3/index.html#2.2RemoteHostsConfiguration > > On Wednesday, 19 October 2016 13:00:17 UTC+1, Dor Azoulay wrote: >> >> >> i have just installed the latest version of foreman (1.13.0) on Centos >> 7.2. >> everything works well except when i am trying to run remote execution on >> a machine (installed via foreman-installer) it fails with : >> >> 1: >> Error initializing command: Net::SSH::ConnectionTimeout - >> Net::SSH::ConnectionTimeout >> 2: >> Exit status: EXCEPTION >> >> basically it says "pending" on the job status and after about 2 minutes >> it throws the above message on the host details. >> >> it seems the remote host doesn't get the request for some reason. >> >> all features are enabled on the smart proxy section. >> FW & Selinux are disabled. >> >> according to foreman-proxy logs there is nothing suspicious: >> >> accept: 192.168.249.222:49686 >> D, [2016-10-19T11:35:35.979099 #5730] DEBUG -- : Rack::Handler::WEBrick >> is invoked. >> D, [2016-10-19T11:35:35.988823 #5730] DEBUG -- : verifying remote client >> 192.168.220.222 against trusted_hosts ["foreman.example.com"] >> D, [2016-10-19T11:35:35.991867 #5730] DEBUG -- : Proxy request from >> foreman.example.com:8443/dynflow/tasks/count to https:// >> foreman.example.com:8008/tasks/ >> count >> D, [2016-10-19T11:35:36.081274 #5730] DEBUG -- : Proxy request status 200 >> - # >> I, [2016-10-19T11:35:36.082396 #5730] INFO -- : 192.168.220.222 - - >> [19/Oct/2016:11:35:36 +] "GET /dynflow/tasks/count?state=running >> HTTP/1.1" 200 29 0.0939 >> >> D, [2016-10-19T11:35:36.123514 #5730] DEBUG -- : close: >> 192.168.220.222:49686 >> D, [2016-10-19T11:35:36.343377 #5730] DEBUG -- : accept: >> 192.168.220.222:49688 >> D, [2016-10-19T11:35:36.349244 #5730] DEBUG -- : Rack::Handler::WEBrick >> is invoked. >> D, [2016-10-19T11:35:36.350386 #5730] DEBUG -- : verifying remote client >> 192.168.220.222 against trusted_hosts ["foreman.example.com"] >> D, [2016-10-19T11:35:36.350751 #5730] DEBUG -- : Proxy request from >> foreman.example.com:8443/dynflow/tasks/ to >> https://foreman.example.com:8008/tasks/ >> >> D, [2016-10-19T11:35:36.852074 #5730] DEBUG -- : Proxy request status 200 >> - # >> I, [2016-10-19T11:35:36.852681 #5730] INFO -- : 192.168.220.222 - - >> [19/Oct/2016:11:35:36 +] "POST /dynflow/tasks/ HTTP/1.1" 200 50 0.5026 >> >> D, [2016-10-19T11:35:36.893861 #5730] DEBUG -- : close: >> 192.168.220.222:49688 >> D, [2016-10-19T11:36:36.346125 #5730] DEBUG -- : accept: >> 192.168.220.222:49697 >> D, [2016-10-19T11:36:36.352459 #5730] DEBUG -- : Rack::Handler::WEBrick >> is invoked. >> D, [2016-10-19T11:36:36.353314 #5730] DEBUG -- : verifying remote client >> 192.168.220.222 against trusted_hosts ["foreman.example.com"] >> D, [2016-10-19T11:36:36.353691 #5730] DEBUG -- : Proxy request from >> foreman.example.com:8443/dynflow/tasks/1063de40-3671-4a2d-9370-22068b642009/status >> >> to http >> s://foreman.example.com:8008/tasks/1063de40-3671-4a2d-9370-22068b642009/status >> >> >> D, [2016-10-19T11:36:36.406618 #5730] DEBUG -- : Proxy request status 200 >> - # >> I, [2016-10-19T11:36:36.407055 #5730] INFO -- : 192.168.220.222 - - >> [19/Oct/2016:11:36:36 +] "GET >> /dynflow/tasks/1063de40-3671-4a2d-9370-22068b642009/status >> HTTP/1.1" 200 1882 0.0539 >> >> D, [2016-10-19T11:36:36.447722 #5730] DEBUG -- : close: >> 192.168.220.222:49697 >> >> >> any ideas what could be the reason ? is it possibly a bug ? >> > -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
[foreman-users] Foreman remote execution fails
i have just installed the latest version of foreman (1.13.0) on Centos 7.2. everything works well except when i am trying to run remote execution on a machine (installed via foreman-installer) it fails with : 1: Error initializing command: Net::SSH::ConnectionTimeout - Net::SSH::ConnectionTimeout 2: Exit status: EXCEPTION basically it says "pending" on the job status and after about 2 minutes it throws the above message on the host details. it seems the remote host doesn't get the request for some reason. all features are enabled on the smart proxy section. FW & Selinux are disabled. according to foreman-proxy logs there is nothing suspicious: accept: 192.168.249.222:49686 D, [2016-10-19T11:35:35.979099 #5730] DEBUG -- : Rack::Handler::WEBrick is invoked. D, [2016-10-19T11:35:35.988823 #5730] DEBUG -- : verifying remote client 192.168.220.222 against trusted_hosts ["foreman.example.com"] D, [2016-10-19T11:35:35.991867 #5730] DEBUG -- : Proxy request from foreman.example.com:8443/dynflow/tasks/count to https://foreman.example.com :8008/tasks/ count D, [2016-10-19T11:35:36.081274 #5730] DEBUG -- : Proxy request status 200 - # I, [2016-10-19T11:35:36.082396 #5730] INFO -- : 192.168.220.222 - - [19/Oct/2016:11:35:36 +] "GET /dynflow/tasks/count?state=running HTTP/1.1" 200 29 0.0939 D, [2016-10-19T11:35:36.123514 #5730] DEBUG -- : close: 192.168.220.222:49686 D, [2016-10-19T11:35:36.343377 #5730] DEBUG -- : accept: 192.168.220.222:49688 D, [2016-10-19T11:35:36.349244 #5730] DEBUG -- : Rack::Handler::WEBrick is invoked. D, [2016-10-19T11:35:36.350386 #5730] DEBUG -- : verifying remote client 192.168.220.222 against trusted_hosts ["foreman.example.com"] D, [2016-10-19T11:35:36.350751 #5730] DEBUG -- : Proxy request from foreman.example.com:8443/dynflow/tasks/ to https://foreman.example.com:8008/tasks/ D, [2016-10-19T11:35:36.852074 #5730] DEBUG -- : Proxy request status 200 - # I, [2016-10-19T11:35:36.852681 #5730] INFO -- : 192.168.220.222 - - [19/Oct/2016:11:35:36 +] "POST /dynflow/tasks/ HTTP/1.1" 200 50 0.5026 D, [2016-10-19T11:35:36.893861 #5730] DEBUG -- : close: 192.168.220.222:49688 D, [2016-10-19T11:36:36.346125 #5730] DEBUG -- : accept: 192.168.220.222:49697 D, [2016-10-19T11:36:36.352459 #5730] DEBUG -- : Rack::Handler::WEBrick is invoked. D, [2016-10-19T11:36:36.353314 #5730] DEBUG -- : verifying remote client 192.168.220.222 against trusted_hosts ["foreman.example.com"] D, [2016-10-19T11:36:36.353691 #5730] DEBUG -- : Proxy request from foreman.example.com:8443/dynflow/tasks/1063de40-3671-4a2d-9370-22068b642009/status to http s://foreman.example.com:8008/tasks/1063de40-3671-4a2d-9370-22068b642009/status D, [2016-10-19T11:36:36.406618 #5730] DEBUG -- : Proxy request status 200 - # I, [2016-10-19T11:36:36.407055 #5730] INFO -- : 192.168.220.222 - - [19/Oct/2016:11:36:36 +] "GET /dynflow/tasks/1063de40-3671-4a2d-9370-22068b642009/status HTTP/1.1" 200 1882 0.0539 D, [2016-10-19T11:36:36.447722 #5730] DEBUG -- : close: 192.168.220.222:49697 any ideas what could be the reason ? is it possibly a bug ? -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.