Performing helm roll backs to DevOps Plan
You can roll back DevOps Plan to the previous release using the helm rollback command.
Before you begin
- Use Helm to install the DevOps Plan solution chart as described in Step 5 of Getting started with DevOps Plan Helm chart.
- Use Helm to upgrade the DevOps Plan chart to the new DevOps Plan release as described in Performing rolling upgrades to DevOps Plan Helm chart.
-
Note: When using DevOps Control, it is possible that a DevOps Control release includes an upgraded database schema. Performing a Helm rollback to an installation that includes a mismatch in database schema is not supported and the Helm rollback will fail. When using DevOps Control, it is recommended that you use backup and restore functionality with Velero. For more information, see Backup and Restore instructions for DevOps Plan. Performing Velero based rollback will lead to loss of newer data that is generated after upgrading.
Before upgrading to DevOps Plan version 3.0.7, it is recommended to use Velero to create a backup. If you downgrade to a previous release, you must restore the cluster state from a backup that was taken before the upgrade happened.
The recommended downgrade workflow is:
- Use Velero to create a backup of the DevOps Plan environment before performing an upgrade.
- Upgrade to DevOps Plan version 3.0.7.
- If you need to revert to a previous release, roll back the application version and restore the cluster resources and persistent volumes from the Velero backup that you created in step 1.
About this task
Procedure
-
Run the helm history command to see revision numbers of your
DevOps Plan helm chart
release.
You should have a minimum of two revision numbers: revision 1 for installation and revision 2 that you used to upgrade to. The following example illustrates a helm chart release named
with revision 1 installedhcl-devopsplanfor the DevOps Plan 3.0.6 release and revision 2 upgraded the helm charthcl-devopsplan3.0.5to the DevOps Plan 3.0.7 release.hcl-devopsplan3.0.7$ helm historyhcl-devopsplan--namespace dev REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Thu Jan 20 21:58:13 2022 supersededhcl-devopsplan1-3.0.6 Install complete 2 Thu Jan 20 22:13:56 2022 deployedhcl-devopsplan2-3.0.7 Upgrade complete -
Roll back the DevOps Plan helm
chart using the helm rollback command.
The following example will roll back the DevOps Plan helm chart release
hcl-devopsplanfrom revision 2 to revision 1.$ helm rollbackhcl-devopsplan--namespace dev Rollback was a success! Happy Helming! -
Run the helm history RELEASE command to see that
the new revision 3 has been created after roll back, and that it rolled back to revision 1
in the DevOps Plan helm chart
release
hcl-devopsplan1.$ helm historyhcl-devopsplan--namespace dev REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Thu Jan 20 21:58:13 2022 supersededhcl-devopsplan1-3.0.6 Install complete 2 Thu Jan 20 22:13:56 2022 deployedhcl-devopsplan2-3.0.7 Upgrade complete 3 Thu Jan 20 22:30:32 2022 deployedhcl-devopsplan1-3.0.6 Rollback to 1