Deploying a Patch for HEAL Module
Standardized procedure for patching any HEAL module with minimal disruption.
Note: To upgrade HEAL v2.3.4 to v2.4.1, follow Upgrading to HEAL v2.4.1 instead, because v2.4.1 upgrades all modules together and is not a single-module patch.
Introduction#
This section provides a standardized procedure for deploying a patch to any HEAL module. The steps outlined ensure minimal service disruption and help maintain the integrity and stability of the platform.
Following this guide will enable you to:
- Prepares the environment by stopping services on the primary node before deployment.
- Apply patches in a controlled and systematic manner.
- Reduce the risk of errors and ensure service continuity during patch updates.
Prerequisites#
Follow the prerequisite steps below:
1. Navigate to primary node.
2. Stop the service by executing below command:
nomad stop <Module Name>
For example:
nomad stop CONTROLCENTER
3. Delete the outdated images in docker container.
a. Login to the Server, where the module is deployed.
b. First list all docker images using docker images.
docker images
c. Identify the image ID of the module you are updating.
For example:
Control Center ID: 10b50ec22mh
d. Remove the image by executing below command:
docker rmi -f <image ID>
For example:
docker rmi -f 10b50ec22mh
Installations#
Follow the below installation steps:
1. Navigate to Primary server.
2. Access HEAL InfraService directory:
cd /opt/Heal/InfraService
3. Download the latest module build.
For example:
heal-controlcenter_1.3.0-SNAPSHOT.tar
4. Post download, load it into docker by executing the below command:
docker load <<module_name>-<version>.tar
For example:
docker load < heal-controlcenter_1.3.0-SNAPSHOT.tar
5. Update the Nomad job file for the module being patched,
a. Navigate to below directory:
CD /opt/Heal/nomadFile
Or
a1nomad
b. Open the required nomad configuration file:
vi <IP_<module name>_1.nomad>
For example:
vi <IP_CONTROLCENTER_1.nomad>
c. Locate the respective config section and update the version number in the image column to match the new build.
d. Copy the server hostname and port number from the file.
For example:
registry.example:8091
Note: This hostname and port is required for tagging and pushing the new image.
6. Tag the newly loaded image with hostname and port details:
docker tag <module name> <hostname:port>/<build name>
For example:
docker tag heal-controlcenter:1.3.0-SNAPSHOT registry.example:8091/heal-controlcenter:1.3.0-SNAPSHOT
7. Push the updated image to the repository:
docker push <serverhostname>:8091/<module_name>:<version>
For example:
docker push registry.example:8091/heal-controlcenter:1.3.0-SNAPSHOT
8. If applicable, update the respective consul keys.
- The consul key information will be specified in the patch notes.
9. Post the update, restart the module using,
nomad run <module_name>.nomad
10. Check the status of the module.
nomad status <module name>