Downgrade Ondat from 2.7.0 to 2.6.0
This guide will walk you through how to downgrade from Ondat v2.7.0 to v2.6.0. You can use this procedure should you decide that you need to roll back after upgrading to 2.7.0.
As part of the 2.7.0 release we are implementing a new design for mapping your Kubernetes volumes to the underlying data storage containers on disk. There will be a one time step to upgrade the deployment blob files and their metadata to the new format.
As part of any operational upgrade plans, we want to provide simple steps should you need to roll back in case of issues. The procedure below has been validated, however it is not usual operation, so it is necessary to raise a proactive support case here and work with the customer success team as part of the downgrade process.
For those curious, in the past Ondat supported other Container Orchestrators (CO) and therefore used an internal UUID reference for these blob files. With the focus on only K8s now, we are removing this abstraction layer and the naming will reflect the K8s objects.
⚠️ Make sure all workloads using Ondat volumes are scaled down to zero.
⚠️ Recommended: While the procedure is safe, it is recommended that a backup of important stateful application is kept before performing the downgrade.
⚠️ Update the CLI_TOOL variable if you do not have access to kubectl.
💡 The tool is idempotent so in the case of interruption it can be safely run multiple times.
Step 1 - Uninstall Ondat v2.7.0, as if you are starting an upgrade
- Delete your storageoscluster CR
- Delete your storageos operator deployment
- Make sure to leave your Ondat etcd alone
Step 2 - Run our downgrade script
Download the following script and edit it to match your cluster’s specifications.
curl -sO https://github.com/ondat/documentation/blob/main/sh/downgrade-db-2-7-to-2-6.sh
Run the script below, with your Kubernetes CLI tool’s context set to target your cluster:
This will create a DaemonSet to downgrade our internal data store on each of your nodes. The Daemonset will delete itself afterwards.
Step 3 - Install Ondat v2.6.0
You will now be able to use Ondat v2.6.0.