AIOps - How to apply a new hotfix image?

book

Article ID: 214105

calendar_today

Updated On:

Products

DX Operational Intelligence CA App Experience Analytics DX Application Performance Management

Issue/Introduction

What are the steps to apply a new hotfix image?

Use-case 1 : dx-core-apmservices-manager 
Use-case 2 : apm-logstasth

Environment

DX Platform 11.x +

Resolution

How to update dx-core-apmservices-manager image

In this example, we assume manager-20.7.0.10.tar.gz fix package has been provided

1. Load a new image to the local docker registry

docker load < manager-20.7.0.10.tar.gz

2. Tag the imported image, <private-registry> must be replaced by a domain name/ip address of the private registry running at the deployment environment.

docker image tag artifactory-emea-cz.cpr.broadcom.net:8443/apmservices/manager:20.7.0.10-linux-amd64 <private-registry>/dxi/dx-core-apmservices-manager:20.7.0.10-linux-amd64

3.  Push the image to the private registry:

docker image push <private-registry>/dxi/dx-core-apmservices-manager:20.7.0.10-linux-amd64

4. Edit the deployment of the manager - apmservices-manager-001  (through Openshift/Minikube), update the containers section :

The original section:

containers:
        - name: apmservices-manager-001
          image: >-
       <private-registry>/dxi/dx-core-apmservices-manager:20.7.0.3-linux-amd64
       

The updated version:
containers:
        - name: apmservices-manager-001
          image: >-
       <private-registry>/dxi/dx-core-apmservices-manager:20.7.0.10-linux-amd64
       
5. Validate that the manager pod is restarted and is using the new image

       

How to update apm-logstasth

In this example, we assume apm-logstasth-1.1.10.tar fix package has been provided


1. Copy “apm-logstasth-1.1.10.tar” to the machine where APM is installed


2. Run below command to load new image

docker load <  apm-logstasth-1.1.10.tar

new image will be listed in docker images as shown below



3.Tag new image by running the below command

docker tag <<new image id>> localhost:5000/ng/logstash:1.1.10

Example: docker tag c53c106fa567 localhost:5000/ng/logstash:1.1.10

4. Push new image to local repository

docker push localhost:5000/ng/logstash:1.1.10

5. Apply new logstasth image to existing pods from Kubernetes console

a) Open Console->DXI namespace ->PODs

b) Click on apm-logstash pod (apm-logstash-14) à Edit yml

c) Update “image” field under “containers” tag 

"image": "localhost:5000/ng/logstash:1.1.7" to "image": "localhost:5000/ng/logstash:1.1.10"

d) Pod will be restarted by pulling new image

 

6. To apply new logstasth image for all new Tenants

a) Open Console->DXI namespace ->Config Maps

b) Click on apmservices-manager -> EDIT yml

c) Update "APMMANAGER_DEPLOYMENT_LOGSTASH_IMAGEURL" property with new image path

"APMMANAGER_DEPLOYMENT_LOGSTASH_IMAGEURL": "localhost:5000/ng/logstash:1.1.10",

 d) Restart apmservices-manager-001 service

 e) Now if we create new tenant , logstasth pod will be started with new image

 

Additional Information

DX AIOPs - Troubleshooting, Common Issues and Best Practices
https://knowledge.broadcom.com/external/article/190815

Attachments