Roll Back a TimesTen Operator Upgrade

You can use Helm to roll back an upgrade of the TimesTen Operator.

  1. Before the rollback, do the following:
    1. 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.

    2. 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
  2. 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.

  3. 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 the ttoper chart is running release 22.1.1.35.0. Revision 1 is running release 22.1.1.34.0.

  4. Roll back to revision 1.
    helm rollback ttoper 1

    Output.

    Rollback was a success! Happy Helming!
  5. After the downgrade, do the following:
    1. 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.

    2. 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.

    3. 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.

  6. 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 release 2211340.

  7. 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.

Congratulations! You successfully completed the rollback. The TimesTen Operator is using the downgraded image and is functioning properly. It has resumed management and monitoring of TimesTenClassic objects.