OpenShift fails after agent deployed

book

Article ID: 103713

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

After implementing CA APM OpenShift monitoring,  the Openshift technician is getting this error:
oc create -f caagent-openshift>
Error from server (BadRequest): error when creating "caagent-openshiftmonitor.yml": DaemonSet in version "v1beta1" cannot be handled as a DaemonSet: [pos 337]: json: expect char '"' but got char '['
Error from server (AlreadyExists): error when creating "caagent-openshiftmonitor.yml": deployments.extensions "caagent-deployment" already exists


 

Cause

Misconfiguration

Environment

CA APM 10.7

Resolution

1. You have to replace all the placeholders like "[AGENTMANAGER_URL]" with the actual values in caagent-openshiftmonitor.yml.

2. run "oc delete deployment caagent-deployment" and "oc delete ds/caagent" before running "oc create -f caagent-openshiftmonitor.yml" again.

Basically, replace all substitutes like connection URL, APIToken , agentManger URL etc and recreate the pod. You can either delete them individually, run oc delete -f caagent-openshiftmonitor.yml, or even you run oc apply to re-create the pods.
 

Additional Information

https://docops.ca.com/ca-apm/10-7/en/implementing-agents/infrastructure-agent/openshift-monitoring