Bug #14785
closedUpdate from 2.3 to 2.4.1 fails
Description
We've attempted this a few times with the same results each time. We actually also can't upgrade to 3.0 from 2.3 either, we get similar errors. A lot of the issues are just complaints that certs aren't where they should be and none of them appear fatal, though after the upgrade some features such as looking up content hosts does not work (When accessing contents hosts is gets stuck in the loading splash indefinitely). We can't quite identify what's going wrong and was hoping someone here could point us in the right direction. There are two logs attached, the second one is from running the upgrade again immediately after the first time failed (without reverting back). The system is RHEL 7.2 running in VMWare.
Output from 'katello-installer --upgrade'
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: migrate_pulp...
Upgrade Step: start_httpd...
Upgrade Step: migrate_candlepin...
Upgrade Step: migrate_foreman...
Upgrade Step: migrate_gutterball...
Upgrade Step: Running installer...
/Stage[main]/Gutterball::Database/Postgresql::Server::Db[gutterball]/Postgresql::Server::Database[gutterball]/Exec[/usr/bin/createdb --port='5432' --owner='postgres' --template=template0 --encoding 'utf8' --locale=en_US.utf8 'gutterball']: Failed to call refresh: /usr/bin/createdb --port='5432' --owner='postgres' --template=template0 --encoding 'utf8' --locale=en_US.utf8 'gutterball' returned 1 instead of one of [0]
/Stage[main]/Gutterball::Database/Postgresql::Server::Db[gutterball]/Postgresql::Server::Database[gutterball]/Exec[/usr/bin/createdb --port='5432' --owner='postgres' --template=template0 --encoding 'utf8' --locale=en_US.utf8 'gutterball']: /usr/bin/createdb --port='5432' --owner='postgres' --template=template0 --encoding 'utf8' --locale=en_US.utf8 'gutterball' returned 1 instead of one of [0]
/Stage[main]/Certs::Qpid/Exec[add-broker-cert-to-nss-db]: Failed to call refresh: certutil -A -d '/etc/pki/katello/nssdb' -n 'broker' -t ',,' -a -i '/etc/pki/katello/certs/katello-clone.ctisl.gtri.org-qpid-broker.crt' returned 255 instead of one of [0]
/Stage[main]/Certs::Qpid/Exec[add-broker-cert-to-nss-db]: certutil -A -d '/etc/pki/katello/nssdb' -n 'broker' -t ',,' -a -i '/etc/pki/katello/certs/katello-clone.ctisl.gtri.org-qpid-broker.crt' returned 255 instead of one of [0]
/Stage[main]/Certs::Candlepin/Exec[candlepin-add-client-cert-to-nss-db]: Failed to call refresh: certutil -A -d '/etc/pki/katello/nssdb' -n 'amqp-client' -t ',,' -a -i '/etc/pki/katello/certs/java-client.crt' returned 255 instead of one of [0]
/Stage[main]/Certs::Candlepin/Exec[candlepin-add-client-cert-to-nss-db]: certutil -A -d '/etc/pki/katello/nssdb' -n 'amqp-client' -t ',,' -a -i '/etc/pki/katello/certs/java-client.crt' returned 255 instead of one of [0]
qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://katello-clone.ctisl.gtri.org:5671' add exchange topic event --durable returned 1 instead of one of [0]
/Stage[main]/Certs::Candlepin/Exec[create candlepin qpid exchange]/returns: change from notrun to 0 failed: qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://katello-clone.ctisl.gtri.org:5671' add exchange topic event --durable returned 1 instead of one of [0]
/Stage[main]/Certs::Candlepin/Exec[create candlepin qpid exchange]: Failed to call refresh: qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://katello-clone.ctisl.gtri.org:5671' add exchange topic event --durable returned 1 instead of one of [0]
/Stage[main]/Certs::Candlepin/Exec[create candlepin qpid exchange]: qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://katello-clone.ctisl.gtri.org:5671' add exchange topic event --durable 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]
/Stage[main]/Foreman::Service/Service[foreman]: Failed to call refresh: Could not restart Service[foreman]: Execution of '/usr/share/katello-installer/modules/service_wait/bin/service-wait restart foreman' returned 5: Restarting foreman (via systemctl): [ OK ]
/Stage[main]/Foreman::Service/Service[foreman]: Could not restart Service[foreman]: Execution of '/usr/share/katello-installer/modules/service_wait/bin/service-wait restart foreman' returned 5: Restarting foreman (via systemctl): [ OK ]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello-clone.ctisl.gtri.org]: Failed to call refresh: Proxy katello-clone.ctisl.gtri.org cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello-clone.ctisl.gtri.org]: Proxy katello-clone.ctisl.gtri.org cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
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
Upgrade Step: restart_services...
Upgrade Step: db_seed...
Upgrade Step: errata_import (this may take a while) ...
Upgrade Step: update_gpg_urls (this may take a while) ...
Upgrade step update_gpg_urls failed. Check logs for more information.
Files