Red Hat Bugzilla – Bug 1518848
tomcat doesn't update certificate after katello-change-hostname
Last modified: 2018-10-26 01:30:08 EDT
Description of problem: Tomcat doesn't change the change the server certificate to the new hostname after katello-change-hostname is run on a cloned 6.2 Satellite, leading to failure during 6.3 upgrade proccess. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Clone a 6.2 Satellite 2. run `katello-change-hostname new.example.com` 3. try to upgrade satellite to 6.3 using foreman-maintain. Actual results: Upgrade fails in stage `foreman-rake katello:clean_backend_objects` because katello refuses to connect to candlepin due to the fact candlepin provides an invalid server certificate. Expected results: Upgrade successful. Additional info: If upgrade failed, remove /etc/tomcat/keystore and /etc/pki/katello/keystore and rerun satellite-installer with no arguments to regenerate the correct keystores before rerunning the upgrade process. This may have to do with the fact that katello-change-hostname was run with satellite 6.2 so that its code and puppet-cert code is an older version than that shipped in 6.3.
This needs to go into 6.2.z as the katello-change-hostname is taking place on the prior version. It works fine in 6.3.
*** WORKAROUND *** 1) remove /etc/tomcat/keystore and /etc/pki/katello/keystore 2) rerun satellite-installer with no arguments