Red Hat Bugzilla – Bug 837110
[Agent RPM] Upgrade/Downgrade does not kill the old version of process before installation
Last modified: 2012-07-03 18:40:39 EDT
Description of problem:
the agent rpm does not have a script to kill the old running process before upgrade/downgrade the agent.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. running the old version of agent, such as 3.0.0
2. upgrade the agent to version 3.1.0
3. run the new version of agent
The agent will restart after the upgrade / downgrade.
"Agent will be restarted soon to see if the failure condition cleared up
but after that, it still runs the old version.
The old version of running agent should be kill before upgrade or downgrade
In addtition to the actual result, both of two agents (old and new) will running.
We should investigate level of effort here at least.
JON 3.1.0 agent RPM has the service shutdown command as part of the pre-uninstall script. This is a non-issue since 3.1.0 would the first release to be published and the script would be there from the first version.
It is not advisable to have support for mixed environments (regular agent installs then RPM installs on the same system) because the extra added complexity. The general guidelines are that RPM installations and upgrade paths are the only supported within the context of RPMs. Having special code that handles cases where software is already on the system but installed outside of the RPM process is not advisable.