Bug 1132475
Summary: | installer do not reports failure in pulp-manage-db: "Could not evaluate: 500 Internal Server Error" | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jan Hutař <jhutar> | |
Component: | Installation | Assignee: | Mike McCune <mmccune> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Tazim Kolhar <tkolhar> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.0.3 | CC: | bkearney, cwelton, mmccune, tkolhar | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1132480 (view as bug list) | Environment: | ||
Last Closed: | 2015-08-12 13:57:57 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1132480 | |||
Bug Blocks: |
Description
Jan Hutař
2014-08-21 12:13:40 UTC
I changed pulp-manage-db to fail and return a non-zero exit code. This causes the installer to fail: # katello-installer --reset pulp-manage-db && touch /var/lib/pulp/init.flag returned 231 instead of one of [0] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change from notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag returned 231 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] Installing Done [100%] [..................................] Something went wrong! Check the log for ERROR-level output The full log is at /var/log/katello-installer/katello-installer.log full logs: [ INFO 2015-05-07 18:11:38 main] RESOURCE File[/var/lib/pulp/packages] [DEBUG 2015-05-07 18:11:38 main] Exec[migrate_pulp_db](provider=posix): Executing 'pulp-manage-db && touch /var/lib/pulp/init.flag' [DEBUG 2015-05-07 18:11:38 main] Executing 'pulp-manage-db && touch /var/lib/pulp/init.flag' [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ WARN 2015-05-07 18:11:38 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: ERROR - TEST [ERROR 2015-05-07 18:11:38 main] pulp-manage-db && touch /var/lib/pulp/init.flag returned 231 instead of one of [0] QE: You can test this by editing: /usr/bin/pulp-manage-db to just contain: #!/bin/bash exit 999 and re-run the installer to see if it fails. VERIFIED : # rpm -qa | grep foreman ruby193-rubygem-foreman_docker-1.2.0.11-1.el7sat.noarch rubygem-hammer_cli_foreman-0.1.4.11-1.el7sat.noarch foreman-1.7.2.19-1.el7sat.noarch ruby193-rubygem-foreman_discovery-2.0.0.13-1.el7sat.noarch rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-foreman-proxy-1.0-2.noarch foreman-debug-1.7.2.19-1.el7sat.noarch foreman-compute-1.7.2.19-1.el7sat.noarch foreman-vmware-1.7.2.19-1.el7sat.noarch rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch foreman-libvirt-1.7.2.19-1.el7sat.noarch ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch foreman-ovirt-1.7.2.19-1.el7sat.noarch ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch ruby193-rubygem-foreman-tasks-0.6.12.5-1.el7sat.noarch rubygem-hammer_cli_foreman_discovery-0.0.1.9-1.el7sat.noarch foreman-postgresql-1.7.2.19-1.el7sat.noarch ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch foreman-selinux-1.7.2.13-1.el7sat.noarch foreman-gce-1.7.2.19-1.el7sat.noarch foreman-proxy-1.7.2.4-1.el7sat.noarch ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch steps # katello-installer --foreman-admin-email 'root@localhost' --foreman-admin-username 'admin' --foreman-admin-password 'changeme' Installing Info: START 668 [0%] [Installing Debug: /Stage[main]/Qpid::Config/notify: subscribe [0%] [Installing Debug: /Stage[main]/Apache::Default_mods/Apache::M [0%] [Installing Debug: /Stage[main]/Apache::Mod::Wsgi/Apache::Mod[ [0%] [Installing Debug: /Stage[main]/Certs::Qpid/Privkey[/etc/pki/k [0%] [Installing Debug: /Stage[main]/Pulp::Config/File[/etc/httpd/c [0%] [Installing Debug: /Stage[main]/Puppet::Server::Config/File[/e [0%] [Installing Debug: /Stage[main]/Foreman::Database/Foreman::Rak [0%] [Installing Info: Applying configuration version '1431071692' [0%] [Installing Info: RESOURCE File[/var/lib/puppet/concat] [0%] [Installing Info: RESOURCE File[/var/lib/puppet/concat/bin/con [0%] [Installing Info: RESOURCE Package[mongodb_client] [0%] [Installing Info: RESOURCE Apache::Mod[setenvif] [1%] [Installing Info: RESOURCE Kafo_configure::Yaml_to_class[forem [2%] [Installing Info: RESOURCE Apache::Mod[access_compat] [3%] [Installing Info: RESOURCE Package[mongodb_server] [7%] [Installing Info: RESOURCE Kafo_configure::Yaml_to_class[capsu [7%] [Installing Info: RESOURCE Ca[katello-default-ca] [8%] [Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [9%] [Installing Info: RESOURCE Ca[katello-server-ca] [9%] [Installing Info: RESOURCE File[/usr/local/bin/validate_postgr [11%] Installing Info: RESOURCE Package[elasticsearch] [12%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [14%] Installing Info: RESOURCE Package[postgresql-server] [16%] Installing Info: RESOURCE Exec[create-rndc.key] [19%] Installing Info: RESOURCE File[/etc/named.conf] [20%] Installing Debug: Executing '/usr/bin/systemctl is-active nam [20%] Installing Info: RESOURCE Apache::Mod[passenger] [21%] Installing Info: RESOURCE Package[xinetd] [23%] Installing Info: RESOURCE Apache::Mod[wsgi] [25%] Installing Info: RESOURCE File[setenvif.conf] [29%] Installing Info: RESOURCE Apache::Mod[wsgi] [33%] Installing Info: RESOURCE File[ext_filter.load] [34%] Installing Info: RESOURCE Apache::Mod[substitute] [38%] Installing Debug: Executing '/usr/bin/systemctl is-enabled xi [39%] Installing Info: RESOURCE Postgresql_conf[data_directory] [41%] Installing Debug: /Stage[main]/Postgresql::Server::Config/Con [42%] Installing Info: RESOURCE File[/etc/elasticsearch/elasticsear [44%] Installing Info: RESOURCE File[ssl.load] [45%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [46%] Installing Debug: Class[Certs::Qpid_router]: The container St [46%] Installing Info: RESOURCE User[tomcat] [50%] Installing Info: RESOURCE Exec[concat_/etc/candlepin/candlepi [52%] Installing Debug: /File[/var/lib/puppet/concat/_etc_httpd_con [53%] Installing Info: RESOURCE File[proxy_http.load] [56%] Installing Info: RESOURCE Apache::Mod[authz_host] [58%] Installing Info: RESOURCE Pubkey[/etc/pki/katello/certs/katel [61%] Installing Info: RESOURCE File[/var/lib/puppet/concat/_var_li [62%] Installing Info: RESOURCE File[mime_magic.conf] [66%] Installing Debug: /Stage[main]/Postgresql::Server::Service/Po [66%] Installing Debug: /Stage[main]/Gutterball::Database/Postgresq [67%] Installing Debug: /Stage[main]/Foreman::Database::Postgresql/ [68%] Installing Debug: /Stage[main]/Foreman::Database::Postgresql/ [68%] Installing Debug: /Stage[main]/Candlepin::Database::Postgresq [69%] Installing Debug: /Stage[main]/Candlepin::Database::Postgresq [69%] Installing Debug: /Stage[main]/Gutterball::Database/Postgresq [69%] Installing Debug: /Stage[main]/Foreman::Database::Postgresql/ [70%] Installing Debug: /Stage[main]/Candlepin::Database::Postgresq [70%] Installing Debug: /Stage[main]/Candlepin::Database::Postgresq [71%] Installing Info: RESOURCE File[/etc/mongodb.conf] [73%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [74%] Installing Debug: /Stage[main]/Gutterball::Database/Postgresq [75%] Installing Debug: /Stage[main]/Gutterball::Database/Postgresq [76%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [78%] Installing Info: RESOURCE File[/etc/gutterball/certs] [78%] Installing Info: RESOURCE Cert[gutterball-certs] [79%] Installing Info: RESOURCE Service[dhcpd] [80%] Installing Debug: /Stage[main]/Foreman::Database::Postgresql/ [80%] Installing Info: RESOURCE File[/etc/qpid/qpidd.conf] [82%] Installing Debug: /File[/etc/httpd/conf.d/03-crane.conf]/selu [84%] Installing Debug: /File[/etc/httpd/conf.d/passenger_extra.con [84%] Installing Debug: /File[/etc/httpd/conf.d/logio.load]/selrole [84%] Installing Debug: /File[/etc/httpd/conf.d/alias.load]/seluser [84%] Installing Debug: /File[/etc/httpd/conf.d/autoindex.load]/sel [84%] Installing Debug: /File[/etc/httpd/conf.d/05-foreman-ssl.d/ka [85%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [86%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [86%] Installing Info: RESOURCE Pubkey[/etc/foreman-proxy/ssl_cert. [86%] Installing Info: RESOURCE File[/etc/puppet/rack/public] [89%] Installing Info: RESOURCE Anchor[foreman::config::passenger_e [90%] Installing Info: RESOURCE File[/etc/sysconfig/foreman] [92%] Installing Info: RESOURCE File[/etc/foreman/settings.yaml] [92%] Installing Info: RESOURCE Foreman_config_entry[db_pending_mig [95%] Installing Info: RESOURCE Exec[puppet_server_config-generate_ [97%] Installing Info: RESOURCE Foreman_proxy::Settings_file[puppet [98%] Installing Info: RESOURCE File[/etc/foreman-proxy/settings.d/ [99%] Installing Debug: Executing '/usr/bin/systemctl is-enabled pu [99%] Installing Info: RESOURCE File[/var/www/html/pub] [99%] Installing Info: RESOURCE File[/etc/httpd/conf.d/05-foreman.d [99%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [99%] Installing Info: RESOURCE Certs::Ssltools::Keytool::Import_ca [99%] Installing Debug: /Stage[main]/Certs::Gutterball/Certs::Sslto [99%] Installing Info: RESOURCE File[/etc/pki/katello/keystore_pass [99%] Installing Info: RESOURCE Cert[java-client] [99%] Installing Debug: /Stage[main]/Certs::Candlepin/Exec[create c [99%] Installing Debug: /Stage[main]/Certs::Candlepin/Exec[import c [99%] Installing Notice: /Stage[main]/Certs::Candlepin/Exec[import [99%] Installing Debug: Class[Certs::Candlepin]: The container Stag [99%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [99%] Installing Info: RESOURCE Cert[ibm-x3655-02.ovirt.rhts.eng.bo [99%] Installing Info: RESOURCE Package[pulp-selinux] [99%] Installing Info: RESOURCE File[/etc/httpd/conf.d/pulp_rpm.con [99%] Installing Info: RESOURCE File[/etc/httpd/conf.d/pulp_nodes.c [99%] Installing Info: RESOURCE File[/etc/default/pulp_workers] [99%] Installing Debug: Executing '/usr/bin/systemctl is-enabled pu [99%] Installing Debug: Executing '/usr/bin/systemctl is-active htt [99%] Installing Info: RESOURCE Qpid::Router::Listener[clients] [99%] Installing Info: RESOURCE Qpid::Router::Connector[broker] [99%] Installing Debug: Executing '/usr/bin/systemctl is-active qdr [99%] Installing Debug: /Stage[main]/Katello::Qpid/Exec[create kate [99%] Installing Debug: /Stage[main]/Katello::Qpid/Exec[bind katell [99%] Installing Notice: /Stage[main]/Katello::Qpid/Exec[bind katel [99%] Installing Info: RESOURCE Package[ruby193-rubygem-foreman-tas [99%] Installing Debug: Executing '/usr/bin/systemctl is-active for [99%] Installing Debug: Executing '/usr/bin/systemctl is-enabled fo [99%] Installing Debug: Executing '/usr/bin/systemctl is-enabled fo [99%] Installing Debug: /Stage[main]/Certs::Foreman/Exec[foreman_ce [99%] Installing Info: RESOURCE Foreman_smartproxy[ibm-x3655-02.ovi [99%] Installing Debug: Stored state in 0.37 seconds [99%] Installing Done [100%]Installing Done [100%] [] Success! * Katello is running at https://ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com Initial credentials are admin / changeme * Capsule is running at https://ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com:9090 * To install additional capsule on separate machine continue by running:" capsule-certs-generate --capsule-fqdn "$CAPSULE" --certs-tar "~/$CAPSULE-certs.tar" The full log is at /var/log/katello-installer/katello-installer.log This bug is slated to be released with Satellite 6.1. This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015. |