Roll Back a TimesTen Operator Upgrade

You can use Helm to roll back a TimesTen Operator upgrade.

Let's assume you upgraded the TimesTen Operator as discussed in Upgrade the TimesTen Operator. However, you now want to roll back the upgrade. Here's how to perform the rollback using Helm.

This example downgrades from TimesTen release 22.1.1.20.0 to 22.1.1.19.0. For more information about TimesTen releases, see Overview of release numbers in the Oracle TimesTen In-Memory Database Installation, Migration, and Upgrade Guide.

  1. Review the current release of the ttoperator chart that is deployed in your namespace.
    helm list

    Output.

    
    NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
    samplettc       mynamespace     3               2023-10-23 21:31:06.740512897 +0000 UTC deployed        ttclassic-2211190.1.0   22.1.1.19.0
    samplettop      mynamespace     2               2023-10-24 16:15:21.79683595 +0000 UTC  deployed        ttoperator-2211200.1.0  22.1.1.20.0
    ttcrd           mynamespace     2               2023-10-24 16:00:21.530832896 +0000 UTC deployed        ttcrd-2211200.1.0       22.1.1.20.0

    The samplettop release that is deployed is revision 2. The ttoperator chart version is 2211200.1.0 corresponding to the 22.1.1.20.0 TimesTen release.

  2. Review the ttoperator chart's revision history.
    helm history samplettop

    Output.

    REVISION        UPDATED                         STATUS          CHART                   APP VERSION     DESCRIPTION
    1               Mon Oct 23 23:04:40 2023        superseded      ttoperator-2211190.1.0  22.1.1.19.0     Install complete
    2               Tue Oct 24 16:15:21 2023        deployed        ttoperator-2211200.1.0  22.1.1.20.0     Upgrade complete
    

    Revision 2 of the samplettop ttoperator chart is currently deployed. The ttoperator chart version for revision 1 is 2211190.1.0 corresponding to TimesTen release 22.1.1.19.0.

  3. Roll back to revision 1.
    helm rollback samplettop 1

    Output.

    Rollback was a success! Happy Helming!
  4. Review the revision history.
    helm history samplettop

    Output.

    REVISION        UPDATED                         STATUS          CHART                   APP VERSION     DESCRIPTION
    1               Mon Oct 23 23:04:40 2023        superseded      ttoperator-2211190.1.0  22.1.1.19.0     Install complete
    2               Tue Oct 24 16:15:21 2023        superseded      ttoperator-2211200.1.0  22.1.1.20.0     Upgrade complete
    3               Tue Oct 24 22:31:06 2023        deployed        ttoperator-2211190.1.0  22.1.1.19.0     Rollback to 1
    

    Revision 3 of the samplettop release is now deployed in your namespace. The ttoperator chart version is 2211190.1.

  5. Verify the new TimesTen Operator is running in your namespace.
    kubectl get pods

    Output.

    NAME                                  READY   STATUS    RESTARTS   AGE
    samplettc-0                           3/3     Running   0          17h
    samplettc-1                           3/3     Running   0          17h
    timesten-operator-65ddf9cfbb-cplhl    1/1     Running   0          3m26s
  6. Verify the TimesTen Operator is running the original image.
    kubectl get pod timesten-operator-65ddf9cfbb-cplhl -o yaml | grep image

    Output.

        image: phx.ocir.io/youraccount/tt2211190image:1
        imagePullPolicy: Always
    ...

    The TimesTen Operator is running the original image.

Congratulations! You successfully completed the rollback. The TimesTen Operator that is running in your namespace is using the original image.