Removing a Patch

This article describes the algorithm of rolling back a patch inside the web container.

To roll back a patch which is located inside the other container, execute the same commands simply replacing web  (for Simple Install) or web master, web slave (for Orchestrated Environments) with the name of container where the patch is located.

Table of contents:

Kubernetes and OpenShift

  1. Access web master pod
  2. cd patch/
  3. rm <patch.file.name>
  4. exit the web master pod
  5. Run a get pods command
    • OpenShift: oc get pods
    • Kubernetes: kubectl get pods
  6. Delete web master and web slave pods:
    • OpenShift: oc delete pod <web master pod ID>, oc delete pod <web slave pod ID>
    • Kubernetes: kubectl delete pod <web master pod ID>, kubectl delete pod <web slave pod ID> 
  7. New web master and web slave pods are automatically recreated and the patch is successfully removed

Docker Swarm or Amazon ECS

  1. Access web master container
  2. cd patch/
  3. rm <patch.file.name>
  4. exit the web master container
  5. Run docker ps command to list the running containers
  6. Delete the web master and web slave containers: docker rm <web master container id>, docker rm <web slave container id>
  7. New web master and web slave pods are automatically recreated and the patch is successfully removed

Simple Install

  1. SSH to the MI app server
  2. Access web container with the command mi-console
  3. cd patch/
  4. rm <patch.file.name>
  5. exit the web container
  6. Turn off the web container: mi-control stop web
  7. Remove the web container with stop option: mi-control rm --stop web
  8. Create a new container: mi-control up -d web
  9. New web container is launched and the patch is successfully removed