Yet another Issue Adding Smart Proxy (foreman-proxy) to Foreman

Good day!

I cannot add a smart-proxy to foreman

Started POST "/smart_proxies" for 192.168.10.239 at 2014-11-28 13:18:05
+0300
Processing by SmartProxiesController#create as /
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"zWyVN77oHzcZSqJOAC4phPgADX6oW5wXmhdOHcBkAys=",
"smart_proxy"=>{"name"=>"puppetca.caravan.dmz",
"url"=>"https://puppetca.caravan.dmz:8443"}}
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1
LIMIT 1 [["id", 3]]
Setting current user thread-local variable to admin
AuthSource Load (0.3ms) SELECT "auth_sources".* FROM "auth_sources"
WHERE "auth_sources"."id" = 1 LIMIT 1
(0.1ms) BEGIN
SmartProxy Exists (0.1ms) SELECT 1 AS one FROM "smart_proxies" WHERE
"smart_proxies"."name" = 'puppetca.caravan.dmz' LIMIT 1
SmartProxy Exists (0.2ms) SELECT 1 AS one FROM "smart_proxies" WHERE
"smart_proxies"."url" = 'https://puppetca.caravan.dmz:8443' LIMIT 1
Feature Load (0.4ms) SELECT "features".* FROM "features"
Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE
"features"."name" IS NULL
(0.1ms) ROLLBACK
Failed to save:
Rendered taxonomies/_loc_org_tabs.html.erb (0.0ms)
Rendered smart_proxies/_form.html.erb (3.7ms)
Rendered smart_proxies/new.html.erb (4.2ms)
Completed 200 OK in 165ms (Views: 5.2ms | ActiveRecord: 1.6ms)

foreman=# select * from features;
id | name | created_at | updated_at

··· ----+------------+----------------------------+---------------------------- 1 | TFTP | 2014-11-28 10:13:26.455266 | 2014-11-28 10:13:26.455266 2 | DNS | 2014-11-28 10:13:26.464241 | 2014-11-28 10:13:26.464241 3 | DHCP | 2014-11-28 10:13:26.47049 | 2014-11-28 10:13:26.47049 4 | Puppet | 2014-11-28 10:13:26.473089 | 2014-11-28 10:13:26.473089 5 | Puppet CA | 2014-11-28 10:13:26.478425 | 2014-11-28 10:13:26.478425 6 | BMC | 2014-11-28 10:13:26.480797 | 2014-11-28 10:13:26.480797 7 | Chef Proxy | 2014-11-28 10:13:26.485969 | 2014-11-28 10:13:26.485969 8 | Realm | 2014-11-28 10:13:26.488331 | 2014-11-28 10:13:26.488331 (8 rows)

foreman-proxy-1.6.3-1.el6.noarch
foreman-1.6.3-1.el6.noarch

I enabled two features:

grep -v ‘#’ /etc/foreman-proxy/settings.yml

:ssl_ca_file: /var/lib/puppet/ssl/certs/ca.pem
:ssl_certificate: /var/lib/puppet/ssl/certs/puppet.caravan.dmz.pem
:ssl_private_key: /var/lib/puppet/ssl/private_keys/puppet.caravan.dmz.pem

:daemon: true
:daemon_pid: /var/run/foreman-proxy/foreman-proxy.pid

:port: 8443

:tftp: true
:tftproot: /var/lib/tftpboot/
:tftp_servername: 10.3.3.75

:dns: false
:dns_provider: nsupdate
:dns_key: /etc/rndc.key
:dns_server: 127.0.0.1
:dns_ttl: 86400

:dhcp: false
:dhcp_vendor: isc

:virsh_network: default

:puppetca: true
:ssldir: /var/lib/puppet/ssl
:puppetdir: /etc/puppet

:puppet: true
:puppet_conf: /etc/puppet/puppet.conf

:customrun_cmd: /bin/false
:customrun_args: -ay -f -s

:puppetssh_sudo: false
:puppetssh_command: /usr/bin/puppet agent --onetime --no-usecacheonfailure

:bmc: false
:bmc_default_provider: ipmitool

:realm: false

:realm_provider: freeipa

:realm_keytab: /etc/foreman-proxy/freeipa.keytab
:realm_principal: realm-proxy@EXAMPLE.COM

:freeipa_remove_dns: true

:log_file: /var/log/foreman-proxy/proxy.log

in foreman-proxy logs I observe no errors:
10.2.12.179 - - [28/Nov/2014 13:17:20] “GET /features HTTP/1.1” 200 9 0.0035
10.2.12.179 - - [28/Nov/2014 13:18:07] “GET /features HTTP/1.1” 200 9 0.0009

Thanks for help in advance)

I switched to 1.5 for foreman-proxy

··· On Friday, 28 November 2014 13:29:22 UTC+3, Александр Костырев wrote: > > Good day! > > I cannot add a smart-proxy to foreman > > Started POST "/smart_proxies" for 192.168.10.239 at 2014-11-28 13:18:05 > +0300 > Processing by SmartProxiesController#create as */* > Parameters: {"utf8"=>"✓", > "authenticity_token"=>"zWyVN77oHzcZSqJOAC4phPgADX6oW5wXmhdOHcBkAys=", > "smart_proxy"=>{"name"=>"puppetca.caravan.dmz", "url"=>" > https://puppetca.caravan.dmz:8443"}} > User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 > LIMIT 1 [["id", 3]] > Setting current user thread-local variable to admin > AuthSource Load (0.3ms) SELECT "auth_sources".* FROM "auth_sources" > WHERE "auth_sources"."id" = 1 LIMIT 1 > (0.1ms) BEGIN > SmartProxy Exists (0.1ms) SELECT 1 AS one FROM "smart_proxies" WHERE > "smart_proxies"."name" = 'puppetca.caravan.dmz' LIMIT 1 > SmartProxy Exists (0.2ms) SELECT 1 AS one FROM "smart_proxies" WHERE > "smart_proxies"."url" = 'https://puppetca.caravan.dmz:8443' LIMIT 1 > Feature Load (0.4ms) SELECT "features".* FROM "features" > Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE > "features"."name" IS NULL > (0.1ms) ROLLBACK > Failed to save: > Rendered taxonomies/_loc_org_tabs.html.erb (0.0ms) > Rendered smart_proxies/_form.html.erb (3.7ms) > Rendered smart_proxies/new.html.erb (4.2ms) > Completed 200 OK in 165ms (Views: 5.2ms | ActiveRecord: 1.6ms) > > > foreman=# select * from features; > id | name | created_at | updated_at > ----+------------+----------------------------+---------------------------- > 1 | TFTP | 2014-11-28 10:13:26.455266 | 2014-11-28 10:13:26.455266 > 2 | DNS | 2014-11-28 10:13:26.464241 | 2014-11-28 10:13:26.464241 > 3 | DHCP | 2014-11-28 10:13:26.47049 | 2014-11-28 10:13:26.47049 > 4 | Puppet | 2014-11-28 10:13:26.473089 | 2014-11-28 10:13:26.473089 > 5 | Puppet CA | 2014-11-28 10:13:26.478425 | 2014-11-28 10:13:26.478425 > 6 | BMC | 2014-11-28 10:13:26.480797 | 2014-11-28 10:13:26.480797 > 7 | Chef Proxy | 2014-11-28 10:13:26.485969 | 2014-11-28 10:13:26.485969 > 8 | Realm | 2014-11-28 10:13:26.488331 | 2014-11-28 10:13:26.488331 > (8 rows) > > > foreman-proxy-1.6.3-1.el6.noarch > foreman-1.6.3-1.el6.noarch > > I enabled two features: > > grep -v '\#' /etc/foreman-proxy/settings.yml > --- > > :ssl_ca_file: /var/lib/puppet/ssl/certs/ca.pem > :ssl_certificate: /var/lib/puppet/ssl/certs/puppet.caravan.dmz.pem > :ssl_private_key: /var/lib/puppet/ssl/private_keys/puppet.caravan.dmz.pem > > :daemon: true > :daemon_pid: /var/run/foreman-proxy/foreman-proxy.pid > > :port: 8443 > > :tftp: true > :tftproot: /var/lib/tftpboot/ > :tftp_servername: 10.3.3.75 > > :dns: false > :dns_provider: nsupdate > :dns_key: /etc/rndc.key > :dns_server: 127.0.0.1 > :dns_ttl: 86400 > > :dhcp: false > :dhcp_vendor: isc > > :virsh_network: default > > :puppetca: true > :ssldir: /var/lib/puppet/ssl > :puppetdir: /etc/puppet > > :puppet: true > :puppet_conf: /etc/puppet/puppet.conf > > :customrun_cmd: /bin/false > :customrun_args: -ay -f -s > > :puppetssh_sudo: false > :puppetssh_command: /usr/bin/puppet agent --onetime --no-usecacheonfailure > > > :bmc: false > :bmc_default_provider: ipmitool > > :realm: false > > :realm_provider: freeipa > > :realm_keytab: /etc/foreman-proxy/freeipa.keytab > :realm_principal: realm-proxy@EXAMPLE.COM > > :freeipa_remove_dns: true > > :log_file: /var/log/foreman-proxy/proxy.log > > in foreman-proxy logs I observe no errors: > 10.2.12.179 - - [28/Nov/2014 13:17:20] "GET /features HTTP/1.1" 200 9 > 0.0035 > 10.2.12.179 - - [28/Nov/2014 13:18:07] "GET /features HTTP/1.1" 200 9 > 0.0009 > > Thanks for help in advance) > > >