Project

General

Profile

Actions

Support #15565

closed

foreman installer fails to create and configure smart proxy

Added by Matt Darcy almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

installing 1.12RC2 on a Centos 7.2 x86_64 host using Puppet 4.

this has failed on multiple installs, for this test iptables is disabled and selinux is disabled.

installer command

foreman-installer --enable-foreman-plugin-ansible --enable-foreman-plugin-dhcp-browser --enable-foreman-plugin-docker --enable-foreman-plugin-hooks --enable-foreman-plugin-remote-execution --enable-foreman-plugin-salt --enable-foreman-plugin-setup --enable-foreman-plugin-tasks --enable-foreman-plugin-templates --enable-foreman-compute-ec2 --enable-foreman-compute-libvirt --enable-foreman-compute-openstack --enable-foreman-compute-ovirt --enable-foreman-compute-rackspace --enable-foreman-compute-vmware --enable-foreman-proxy-plugin-discovery --enable-foreman-proxy-plugin-dynflow --enable-foreman-proxy-plugin-pulp --enable-foreman-proxy-plugin-remote-execution-ssh --enable-foreman-proxy-plugin-salt --foreman-configure-epel-repo --foreman-configure-scl-repo --foreman-db-database=prod_foreman --foreman-db-host=localhost --foreman-db-manage --foreman-db-password=[removed] --foreman-db-username=[removed] --foreman-db-type=mysql

foreman installer completes with warnings

/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[lcars.no-dns.co.uk]: Failed to call refresh: Proxy lcars.no-dns.co.uk cannot be refreshed: unknown error (response 500)
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[lcars.no-dns.co.uk]: Proxy lcars.no-dns.co.uk cannot be refreshed: unknown error (response 500)

Error log shows

[snip]
[ INFO 2016-07-01 17:11:53 main] RESOURCE Service[foreman]
[DEBUG 2016-07-01 17:11:53 main] Executing: '/bin/systemctl is-active foreman'
[DEBUG 2016-07-01 17:11:53 main] /Stage[main]/Foreman::Service/Service[foreman]: Skipping restart; service is not running
[ WARN 2016-07-01 17:11:53 main] /Stage[main]/Foreman::Service/Service[foreman]: Triggered 'refresh' from 1 events
[DEBUG 2016-07-01 17:11:53 main] /Stage[main]/Foreman::Service/Service[foreman]: The container Class[Foreman::Service] will propagate my refresh event
[DEBUG 2016-07-01 17:11:53 main] Class[Foreman::Service]: The container Stage[main] will propagate my refresh event
[DEBUG 2016-07-01 17:11:53 main] Failed to load library 'foreman_api' for feature 'foreman_api'
[DEBUG 2016-07-01 17:11:53 main] Puppet::Type::Foreman_smartproxy::ProviderRest: feature foreman_api is missing
[DEBUG 2016-07-01 17:11:53 main] Failed to load library 'apipie_bindings' for feature 'apipie_bindings'
[DEBUG 2016-07-01 17:11:53 main] Puppet::Type::Foreman_smartproxy::ProviderRest_v2: feature apipie_bindings is missing
[DEBUG 2016-07-01 17:11:53 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Making get request to https://lcars.no-dns.co.uk/api/v2/smart_proxies?search=name=%22lcars.no-dns.co.uk%22
[DEBUG 2016-07-01 17:12:07 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Received response 200 from request to https://lcars.no-dns.co.uk/api/v2/smart_proxies?search=name=%22lcars.no-dns.co.uk%22
[DEBUG 2016-07-01 17:12:07 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Making post request to https://lcars.no-dns.co.uk/api/v2/smart_proxies
[DEBUG 2016-07-01 17:12:08 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Received response 201 from request to https://lcars.no-dns.co.uk/api/v2/smart_proxies
[ WARN 2016-07-01 17:12:08 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[lcars.no-dns.co.uk]/ensure: created
[ INFO 2016-07-01 17:12:08 main] RESOURCE Foreman_smartproxy[lcars.no-dns.co.uk]
[DEBUG 2016-07-01 17:12:08 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[lcars.no-dns.co.uk]: The container Class[Foreman_proxy::Register] will propagate my refresh event
[DEBUG 2016-07-01 17:12:08 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Making get request to https://lcars.no-dns.co.uk/api/v2/smart_proxies?search=name=%22lcars.no-dns.co.uk%22
[DEBUG 2016-07-01 17:12:08 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Received response 200 from request to https://lcars.no-dns.co.uk/api/v2/smart_proxies?search=name=%22lcars.no-dns.co.uk%22
[DEBUG 2016-07-01 17:12:08 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Making put request to https://lcars.no-dns.co.uk/api/v2/smart_proxies/1/refresh
[DEBUG 2016-07-01 17:12:08 main] Foreman_smartproxy[lcars.no-dns.co.uk](provider=rest_v3): Received response 500 from request to https://lcars.no-dns.co.uk/api/v2/smart_proxies/1/refresh
[ERROR 2016-07-01 17:12:08 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[lcars.no-dns.co.uk]: Failed to call refresh: Proxy lcars.no-dns.co.uk cannot be refreshed: unknown error (response 500)
[ERROR 2016-07-01 17:12:08 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[lcars.no-dns.co.uk]: Proxy lcars.no-dns.co.uk cannot be refreshed: unknown error (response 500)
[ INFO 2016-07-01 17:12:08 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:44:in `refresh_features!'
[ INFO 2016-07-01 17:12:08 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/type/foreman_smartproxy.rb:54:in `refresh'
[ INFO 2016-07-01 17:12:08 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:147:in `process_callback'
[ INFO 2016-07-01 17:12:08 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:34:in `block in process_events'
[ INFO 2016-07-01 17:12:08 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:119:in `block in queued_events'
[ INFO 2016-07-01 17:12:08 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:118:in `each'
[ INFO 2016-07-01 17:12:08 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:118:in `queued_events'
[ INFO 2016-07-01 17:12:08 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:33:in `process_events'
[/snip]

attached full installer log to the bug.


Files

foreman.log foreman.log 1.56 MB Matt Darcy, 07/01/2016 12:27 PM
foreman-install2.log foreman-install2.log 1.56 MB Matt Darcy, 07/03/2016 03:25 AM
Actions

Also available in: Atom PDF