04 Jan 2023 07:46 AM - last edited on 05 Jan 2023 12:31 AM by MaciejNeumann
I've been tasked with coming up with an automation that would roll-back the current version of OneAgent (on RHEL) to a previous version. Is a rollback mostly a matter of running the /opt/dynatrace/oneagent/agent/uninstall.sh and then performing an installation of previous version? I understand that the new versions of configuration files might not be compatible with an older version of software, but I don't really see any good way around that.
Solved! Go to Solution.
Your assumption is right. In the really rare case that a rollback is needed, the way to go is first Uninstall (with the uninstall.sh) and then install the previous version.
What about process/container restarts in between? If you just uninstall + reinstall, wouldn't you still have the new code modules injected into the application processes?
You are right, you would need the process/container restart as it's a new version of the OneAgent code module which is injected into the application processes. So using the Dynatrace UI to validate which all processes would need the restart will help the respective team to know the specific entities to restart and not the entire application.