Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1147140[details]
foreman-debug logs
Description of problem:
I was trying to install satellite 6.2 beta snap8.1 on a VM having 16G memory and around 10 vcpus. Installer failed with below error:
[root@dhcp-8-59-189 ~]# foreman-installer --scenario katello --foreman-admin-password changeme
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_cert' -v '/etc/pki/katello/certs/pulp-client.crt'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/Stage[main]/Katello::Config::Pulp_client/Foreman_config_entry[pulp_client_cert]/value: change from to /etc/pki/katello/certs/pulp-client.crt failed: Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_cert' -v '/etc/pki/katello/certs/pulp-client.crt'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: Failed to call refresh: /usr/sbin/foreman-rake apipie:cache:index returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: /usr/sbin/foreman-rake apipie:cache:index returned 1 instead of one of [0]
Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_key' -v '/etc/pki/katello/private/pulp-client.key'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/Stage[main]/Katello::Config::Pulp_client/Foreman_config_entry[pulp_client_key]/value: change from to /etc/pki/katello/private/pulp-client.key failed: Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_key' -v '/etc/pki/katello/private/pulp-client.key'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/usr/share/foreman/script/foreman-rake config -- -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem' -k ssl_certificate -v '/etc/foreman/client_cert.pem' -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
/Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/returns: change from notrun to 0 failed: /usr/share/foreman/script/foreman-rake config -- -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem' -k ssl_certificate -v '/etc/foreman/client_cert.pem' -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com]: Could not evaluate: Proxy dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com cannot be registered (Could not load data from https://dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com]: Failed to call refresh: Proxy dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com cannot be registered (Could not load data from https://dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com]: Proxy dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com cannot be registered (Could not load data from https://dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com
Version-Release number of selected component (if applicable):
Satellite 6.2 beta snap8.1
How reproducible:
always on my setup
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Installer should succeed
Additional info:
Later I re-ran the installer with dns/dhcp/tftp options and again it failed with same error:
[root@dhcp-8-59-189 ~]# foreman-installer --scenario katello --capsule-parent-fqdn $(hostname) --foreman-proxy-dns true --foreman-proxy-dns-interface eno33559296 --foreman-proxy-dns-zone $(hostname -d) --foreman-proxy-dhcp true --foreman-proxy-dhcp-interface eno33559296 --foreman-proxy-dhcp-range '192.168.100.10 192.168.100.250' --foreman-proxy-dhcp-gateway 192.168.100.1 --foreman-proxy-tftp true --foreman-proxy-tftp-servername $(hostname) --capsule-puppet true --foreman-proxy-puppetca true --foreman-proxy-register-in-foreman true --foreman-proxy-dns-forwarders 10.11.5.19
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_cert' -v '/etc/pki/katello/certs/pulp-client.crt'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/Stage[main]/Katello::Config::Pulp_client/Foreman_config_entry[pulp_client_cert]/value: change from to /etc/pki/katello/certs/pulp-client.crt failed: Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_cert' -v '/etc/pki/katello/certs/pulp-client.crt'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_key' -v '/etc/pki/katello/private/pulp-client.key'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/Stage[main]/Katello::Config::Pulp_client/Foreman_config_entry[pulp_client_key]/value: change from to /etc/pki/katello/private/pulp-client.key failed: Execution of '/usr/sbin/foreman-rake -- config -k 'pulp_client_key' -v '/etc/pki/katello/private/pulp-client.key'' returned 1: /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/usr/share/foreman/script/foreman-rake config -- -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem' -k ssl_certificate -v '/etc/foreman/client_cert.pem' -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
/Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/returns: change from notrun to 0 failed: /usr/share/foreman/script/foreman-rake config -- -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem' -k ssl_certificate -v '/etc/foreman/client_cert.pem' -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com]: Could not evaluate: Proxy dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com cannot be registered (Could not load data from https://dhcp-8-59-189.cfme.lab.eng.rdu2.redhat.com
Installing Done [100%] [..................................................................]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/katello.log
Please note that I tried to re-install satellite 6.2 snap8.2 on same vm and this time installer was completed successfully. So moving the blocker flag for now. But would like to keep this bz open for sometime.
Comment 10Stephen Benjamin
2016-08-01 18:25:13 UTC
Underlying cause of the db:seed failure seems to be:
[ WARN 2016-04-14 06:53:59 main] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: ArgumentError: some permissions were not found
[ WARN 2016-04-14 06:53:59 main] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/models/role.rb:136:in `add_permissions'
And since it worked in the next snap, i think it's fixed. Going to close this for now, reopen if you have more details, thanks.