Upgrade from 4.2.0.x to 4.2.1.9
This document describes how to upgrade OpenIAM from the older 4.2.1.x versions to version 4.2.1.9 with Terraform. To perform the upgrade, follow the steps described below.
Commit your local customizations by pulling the respective repository at https://bitbucket.org/openiam/kubernetes-docker-configuration.git.
Checkout to RELEASE-4.2.1.9.
Merge your customizations.
Verify that
env.shandterraform.tfvarscontain your customizations.Update
terraform-0.12.21toterraform-0.12.31by running the following commands.
wget https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zipunzip terraform_0.12.31_linux_amd64.zipsudo mv terraform /usr/local/bin/terraform
- Run the following command.
kubectl delete jobs -all
- Now that you've finished the manual steps, you can redeploy OpenIAM.
./setup.shterraform initterraform apply
OpenIAM should be successfully updated, but not started yet because need to update RabbitMQ queues, see below.
RabbitMQ queue types upgrade
In 4.2.1.9 we've updated the RabbitMQ queue types to be resilient for HA. This means that the following manual steps must be performed after upgrading.
- Switch to
RELEASE-4.2.1.9branch of the project. - Perform the following command.
helm delete $(helm list | grep rabbitmq | awk '{print $1}')
- If using terraform, perform the following
terraform state rm $(terraform state list | grep rabbitmq | awk '{print $1}')
- Run
./setup.sh - Finally, run
terraform init && terraform apply
or re-run helm script.