Red Hat Bugzilla – Bug 837866
RFE: katello-upgrade man page should provide info to stop and start all necessary services
Last modified: 2014-09-18 13:02:29 EDT
Description of problem:
When upgrading katello, the katello-upgrade script should handle stopping and starting all necessary services.
Currently I am doing:
* for i in katello katello-jobs pulp-server tomcat6 elasticsearch qpidd; do service $i stop; done
* for i in katello katello-jobs pulp-server tomcat6 elasticsearch qpidd; do service $i start; done
Version-Release number of selected component (if applicable):
Starting and stopping services is very fragile thing on production systems. The Satellite/Spacewalk approach is to ask to stop services manually and we are going to follow the same way. Additionally, there should be new katello-service command in master that only requires one simple command to stop everything.
I would recomend NOFIX for this one.
We should definitely document this how to stop and start services during upgrade. Changing the topic - doco only.
Well, it seems there is already an ongoing effort very close to be merged: https://github.com/Katello/katello/pull/331 I guess once it is merged this can be closed.
The functionality is now there to start and stop the services with katello-upgrade but the man page is missing this info:
katello-upgrade(1) Katello Reference katello-upgrade(1)
katello-upgrade - Katello upgrade tool
COMMAND LINE PARAMETERS
Answer yes to all prompts.
Print the upgrade steps without doing anything.
Skips the default upgrade steps.
Log file for the script output. Defaults to /var/log/katello/katello_upgrade.log. Set to
’stdout’ to print the output directly on the console.
Display short summary of all options.
So, this bug should be used to address the missing man page information.
NEEDINFOing mmccune -- Is this still relevant for Sat 6.0?
Reassigning bug because this is a man page issue/upgrade fix.
CLOSING as we do not currently have any upgrade routines as katello-upgrade is gone and we are now part of foreman.
when we build upgrade tooling for 6.0.5 we will take this into consideration.