Infoworks Rollback from Azure Kubernetes Service (AKS) 5.4.0 to 5.3.1

Prerequisites

  • Before executing the rollback script, ensure that IW_HOME variable is set.

  • Assuming Infoworks home directory is /opt/infoworks, run the below command to set the IW_HOME variable.

  • Validate that the version of the old chart is 5.4.0.

export IW_HOME=/opt/infoworks
  • Ensure the current deployment’s chart is present in /opt/infoworks.

  • Execute the below command to check the appVersion.

cat $IW_HOME/iw-k8s-installer/infoworks/Chart.yaml | grep appVersion
appVersion: 5.4.0
Important

Ensure to restore MongoDB Atlas and PostgresDB PaaS. In case you don't take the backup, jobs will fail after the restore operation. For more information, refer to the MongoDB Restore and PostgresDB Restore

Rollback Instructions

NOTE Since IW_HOME has been exported in the Prerequisites section mentioned above, the following steps can be executed from any location for users with read/write access to the aforementioned IW_HOME.

Step 1: Download the rollback script.

wget https://iw-saas-setup.s3.us-west-2.amazonaws.com/5.4/rollback-k8s.sh

Step 2: Place the Update script in the same directory as that of the existing iw-k8s-installer.

Step 3: Ensure you have permission to the $IW_HOME directory.

Step 4: Give executable permission to the rollback script using the below command.

chmod +x rollback-k8s.sh

Step 5: Run the script.

./rollback-k8s.sh -v 5.3.1

Step 6: You will receive the following prompt, "Enter N to skip running the above command to upgrade the helm deployment. (timeout: 30 seconds): ", type Y and press Enter.

NOTE If you want to run helm upgrade manually, then type N and press Enter.

Enter N to skip running the above command to upgrade the helm deployment. (timeout: 30 seconds): Y

NOTE There is a 30-second timeout set to abandon the deployment of the downgraded version. If no input is received within the timeout duration, the deployment is triggered.

  Last updated