Hi,
I'm a newbie on Foreman and relatively new on Linux. I installed it today 
on CentOS 7. I play with the interface and I would like to add an EC2 
compute resource
For this, I created an account whitch if FullEC2Admin. So I have an access 
key and a secret key.
When I fill the form, and click on Load regions, I get a message : An error 
occurred while testing the connection: Internal Server Error and the 
production_log show an error 500.

The first line shows getaddrinfo: Name or service not known (SocketError)

As My foreman server is behind a firewall with authentication I tried 
without success to add : 

   - In Configure>Global Parameters:

http-password     
http-port    
http-proxy
http-user

   - Then I tried to add theses lines in  /etc/sysconfig/httpd

export http_proxy=http://proxyuser:proxypassw...@myproxy.company.com:1234/
export https_proxy=https://proxyuser:proxypassw...@myproxy.company.com:1234/
+ systemctl restart httpd

Do foreman support an http or https proxy to connect to AWS ? And how to 
setup it ?

Thank you
MLD


2017-12-11 18:36:22 951ba80a [app] [I] Processing by 
ComputeResourcesController#test_connection as */*
2017-12-11 18:36:22 951ba80a [app] [I]   Parameters: {"utf8"=>"✓", 
"authenticity_token"=>"lPBbTF/U3pcOVTRE6W2PZszvyO7GPmd32hzlH0kgMJo/FflA204r2u1JGvlgytKaYKsSRs9OazEwhXpGC88kgA==",
 
"compute_resource"=>{"name"=>"AWS Sandbox", "provider"=>"EC2", 
"description"=>"", "user"=>"xxxxxxxxxxxxxxxxxxxxxxxxxxx", 
"password"=>"[FILTERED]"}, "fakepassword"=>"[FILTERED]", "cr_id"=>""}
2017-12-11 18:36:22 951ba80a [app] [I] Current user: a067085 (administrator)
2017-12-11 18:36:22 951ba80a [app] [W] Action failed
 | Excon::Error::Socket: getaddrinfo: Name or service not known 
(SocketError)
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/socket.rb:101:in
 
`getaddrinfo'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/socket.rb:101:in
 
`connect'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/excon-0.58.0/lib/excon/ssl_socket.rb:154:in
 
`connect'
<...>
 | 
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in 
`main_loop'
 | /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block 
(3 levels) in start_threads'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
 
`call'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
 
`block in create_with_logging_context'
2017-12-11 18:36:22 951ba80a [app] [I]   Rendered common/500.html.erb 
(12.3ms)
2017-12-11 18:36:22 951ba80a [app] [I] Completed 500 Internal Server Error 
in 48ms (Views: 13.7ms | ActiveRecord: 1.2ms)

-- 
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.

Reply via email to