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:
NOTE: For details on applying a patch, see Applying Hot Fixes with the Patcher.
Kubernetes and OpenShift
- Access
web master
pod cd patch/
rm <patch.file.name>
-
exit
theweb master
pod - Run a get pods command
- OpenShift:
oc get pods
- Kubernetes:
kubectl get pods
- OpenShift:
- Delete
web master
andweb 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>
- OpenShift:
- New
web master
andweb slave
pods are automatically recreated and the patch is successfully removed
Docker Swarm or Amazon ECS
- Access
web master
container cd patch/
rm <patch.file.name>
-
exit
theweb master
container - Run
docker ps
command to list the running containers - Delete the
web master
andweb slave
containers:docker rm <web master container id>
,docker rm <web slave container id>
- New
web master
andweb slave
pods are automatically recreated and the patch is successfully removed
Simple Install
- SSH to the MI app server
- Access
web
container with the commandmi-web
cd patch/
rm <patch.file.name>
-
exit
theweb
container - Turn off the
web
container:mi-control stop web
- Remove the
web
container with stop option:mi-control rm --stop web
- Create a new container:
mi-control up -d web
- New
web
container is launched and the patch is successfully removed