question

Zbyszek C. avatar image
Zbyszek C. asked ·

Deploying DT Managed OneAgent in OpenShift Online 3 environments (non-privileged containers)

I'm trying to follow te instructions from https://www.dynatrace.com/support/help/cloud-platf... to deploy a DT OneAgent to monitor an application deployed under OpenShift Online 3. That means, the instructions fail at the step:

{noformat}$ oc adm policy add-scc-to-user privileged -z dynatrace{noformat}

because this kind of account has only non-privileged access, or, no access to the cluster level.

While the aforementioned topics seems correct in general, one realizes that there's no way to proceed until that step. Please include a note this topic applies only to environments with the cluster level access, like you did in the topic https://www.dynatrace.com/support/help/cloud-platf...

However, it seems that the alternative isn't working for me either, as I'm getting the following error message:

{noformat}

Could not find an image stream match for "nodejs-ex". Make sure that a Docker image with that tag is available on the node for the build to succeed.

* A Docker build using binary input will be created

* The resulting image will be pushed to image stream "nodejs-ex:latest"

* A binary build was created, use 'start-build --from-dir' to trigger a new build

--> Creating resources with label build=nodejs-ex ...

error: imagestreams.image.openshift.io "nodejs-ex" already exists

error: buildconfigs.build.openshift.io "nodejs-ex" is forbidden: build strategy Docker is not allowed

--> Failed

{noformat}

Has anyone experienced similar issues and if you solved them, how did you do it?

Best,

Z

oneagentdocumentationdockerkubernetesopenshift
1 comment
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello ,

I'm trying to follow these instructions from https://www.dynatrace.com/support/help/technology-support/cloud-platforms/openshift/installation-and-operation/application-only/deploy-oneagent-on-openshift-for-application-only-monitoring/ to deploy a OneAgent to monitor a spring boot application deployed under OpenShift Online 3.

firstly,i created a dockerfile and i insert these instructions into it with replacing environement id , the tocken , the one agent option and the command by the right variables.

ARG DT_API_URL="https://<environmentID>.live.dynatrace.com/api"; ARG DT_API_TOKEN="<token>" ARG DT_ONEAGENT_OPTIONS="flavor=default&include=<technology1>&include=<technology2>" ENV DT_HOME="/opt/dynatrace/oneagent" RUN mkdir -p "$DT_HOME" && \ wget -O "$DT_HOME/oneagent.zip" "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_API_TOKEN&$DT_ONEAGENT_OPTIONS" && \ unzip -d "$DT_HOME" "$DT_HOME/oneagent.zip" && \ rm "$DT_HOME/oneagent.zip" ENTRYPOINT [ "/opt/dynatrace/oneagent/dynatrace-agent64.sh" ] CMD [ "executable", "param1", "param2" ] # the command of your application, e.g. java

and after that i did the build the application image by execute the next command

oc new-build --binary --strategy=docker --allow-missing-images yourapp

however, it seems that isn't working for me , as I'm getting the following error :

[root@CHBSLADT01TST LambdaAir]# oc new-build --binary --strategy=docker --allow-missing-images zuuloo

W0627 05:53:42.764249 1035 newapp.go:317] Could not find an image stream match for "zuuloo". Make sure that a Docker image with that tag is available on the node for the build to succeed.

* A Docker build using binary input will be created

* The resulting image will be pushed to image stream "zuuloo:latest"

* A binary build was created, use 'start-build --from-dir' to trigger a new build


--> Creating resources with label build=zuuloo ...

imagestream "zuuloo" created

error: buildconfigs "zuuloo" is forbidden: build strategy Docker is not allowed

--> Failed


Has anyone experienced similar issues and if you solved them, how did you do it?

Best,

@Zbyszek C, @Daniela R. , i think that you exposed to this issue , could you help me please.

Many thanks,

Refka

0 Likes 0 · ·

1 Answer

Daniela R. avatar image
Daniela R. answered ·

Hi @Zbyszek C.,

correct, the instructions on https://www.dynatrace.com/support/help/cloud-platf... require cluster-level access to your OpenShift environment.

For integrating OneAgent into your OpenShift application container, the instructions provided on https://www.dynatrace.com/support/help/cloud-platf... currently only center around build strategy Docker. Supporting build strategy Source-to-Image is on our roadmap and we will work together with Red Hat on a reliable integration for that strategy as well.

Best,
Daniela

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello ,

I'm trying to follow these instructions from https://www.dynatrace.com/support/help/technology-support/cloud-platforms/openshift/installation-and-operation/application-only/deploy-oneagent-on-openshift-for-application-only-monitoring/ to deploy a OneAgent to monitor a spring boot application deployed under OpenShift Online 3.

firstly,i created a dockerfile and i insert these instructions into it with replacing environement id , the tocken , the one agent option and the command by the right variables.

ARG DT_API_URL="https://<environmentID>.live.dynatrace.com/api"; ARG DT_API_TOKEN="<token>" ARG DT_ONEAGENT_OPTIONS="flavor=default&include=<technology1>&include=<technology2>" ENV DT_HOME="/opt/dynatrace/oneagent" RUN mkdir -p "$DT_HOME" && \ wget -O "$DT_HOME/oneagent.zip" "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_API_TOKEN&$DT_ONEAGENT_OPTIONS" && \ unzip -d "$DT_HOME" "$DT_HOME/oneagent.zip" && \ rm "$DT_HOME/oneagent.zip" ENTRYPOINT [ "/opt/dynatrace/oneagent/dynatrace-agent64.sh" ] CMD [ "executable", "param1", "param2" ] # the command of your application, e.g. java

and after that i did the build the application image by execute the next command

oc new-build --binary --strategy=docker --allow-missing-images yourapp

however, it seems that isn't working for me , as I'm getting the following error :

[root@CHBSLADT01TST LambdaAir]# oc new-build --binary --strategy=docker --allow-missing-images zuuloo

W0627 05:53:42.764249 1035 newapp.go:317] Could not find an image stream match for "zuuloo". Make sure that a Docker image with that tag is available on the node for the build to succeed.

* A Docker build using binary input will be created

* The resulting image will be pushed to image stream "zuuloo:latest"

* A binary build was created, use 'start-build --from-dir' to trigger a new build


--> Creating resources with label build=zuuloo ...

imagestream "zuuloo" created

error: buildconfigs "zuuloo" is forbidden: build strategy Docker is not allowed

--> Failed


Has anyone experienced similar issues and if you solved them, how did you do it?

Best,

@Zbyszek C, @Daniela R. , i think that you exposed to this issue , could you help me please.

Many thanks,

Refka

0 Likes 0 · ·

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions session replay diagnostic tools permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android