Roll Back a TimesTen Operator Upgrade
You can use Helm to roll back an upgrade of the TimesTen Operator.
- Before the rollback, do the following:
- Confirm the TimesTen Operator is running in your namespace.
kubectl get pods
The output is similar to the following:NAME READY STATUS RESTARTS AGE ... timesten-operator-57b7949f97-xdlwl 1/1 Running 0 15h
The TimesTen Operator is running in your namespace.
- Verify the image.
kubectl describe deployment timesten-operator | grep Image
The output is similar to the following:Image: container-registry.oracle.com/timesten/timesten:22.1.1.35.0
- Confirm the TimesTen Operator is running in your namespace.
- Review the current release of the TimesTen Operator chart.
helm list
The output is similar to the following:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION ... ttoper default 2 2025-01-16 00:20:34.757004974 +0000 UTC deployed ttoperator-2211350.1.0 22.1.1.35.0
The chart's release is
22.1.1.35.0.1.0
. - Review the revision history.
helm history ttoper
The output is similar to the following:REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Thu Jan 16 02:54:39 2025 superseded ttoperator-2211340.1.0 22.1.1.34.0 Install complete 2 Fri Jan 17 00:20:34 2025 deployed ttoperator-2211350.1.0 22.1.1.35.0 Upgrade complete
Revision
2
of thettoper
chart is running release22.1.1.35.0
. Revision1
is running release22.1.1.34.0
. - Roll back to revision
1
.helm rollback ttoper 1
Output.
Rollback was a success! Happy Helming!
- After the downgrade, do the following:
- Verify that the TimesTen Operator is running.
kubectl get pods
The output is similar to the following:NAME READY STATUS RESTARTS AGE ... timesten-operator-55c6f99-2djfr 1/1 Running 0 4m13s
There is a new TimesTen Operator running.
- Confirm the TimesTen Operator is running the downgraded image.
kubectl describe deployment timesten-operator | grep Image
The output is the following:
Image: container-registry.oracle.com/timesten/timesten:22.1.1.34.0
The TimesTen Operator is running the downgraded release.
- Confirm the state of the TimesTenClassic objects.
kubectl get ttc
The output is similar to the following:
NAME STATE ACTIVE AGE norepsamplehelm AllReplicasReady N/A 22h repsamplehelm Normal repsamplehelm-0 25h
The TimesTen Operator resumes the management and monitoring of the TimesTenClassic objects. The objects and the associated TimesTen databases are functioning properly.
- Verify that the TimesTen Operator is running.
- Confirm the revision history.
helm history ttoper
The output is similar to the following:REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Thu Jan 16 02:54:39 2025 superseded ttoperator-2211340.1.0 22.1.1.34.0 Install complete 2 Fri Jan 16 00:20:34 2025 superseded ttoperator-2211350.1.0 22.1.1.35.0 Upgrade complete 3 Fri Jan 17 16:11:37 2025 deployed ttoperator-2211340.1.0 22.1.1.34.0 Rollback to 1
Revision
3
of the chart is running release2211340
. - Confirm the chart's release is downgraded.
helm list
The output is similar to the following:NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION ... ttoper default 3 2025-01-17 16:11:37.408437395 +0000 UTC deployed ttoperator-2211340.1.0 22.1.1.34.0
The chart contains the correct release.