<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article [k8s/oc] Downgrading OneAgent in Kubernetes and OpenShift with the Dynatrace Operator in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/ta-p/302087</link>
    <description>&lt;P&gt;&lt;LI-TOC indent="15" liststyle="disc" maxheadinglevel="2"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;H2&gt;Summary&lt;/H2&gt;
&lt;P&gt;This article applies to &lt;STRONG&gt;Dynatrace Operator&lt;/STRONG&gt; based OneAgent deployments on &lt;STRONG&gt;Kubernetes&lt;/STRONG&gt; and &lt;STRONG&gt;OpenShift&lt;/STRONG&gt; (Cloud Native Full Stack / Classic Full Stack via CSI driver). It describes how to safely &lt;STRONG&gt;downgrade&lt;/STRONG&gt; the OneAgent version pinned in a &lt;CODE&gt;DynaKube&lt;/CODE&gt;, since the Operator and its CSI driver are designed around forward upgrades and do not natively support rolling back to an older OneAgent version in place.&lt;/P&gt;
&lt;H2&gt;Problem&lt;/H2&gt;
&lt;P&gt;Dynatrace Operator manages OneAgent version updates through the &lt;CODE&gt;DynaKube&lt;/CODE&gt; custom resource. This model works well for upgrades, but &lt;STRONG&gt;the OneAgent is not designed for downgrades&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Customers typically run into this when:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A OneAgent version rollout (automatic or manual) introduces a regression, unexpected behavior change, or a compatibility issue with a workload, and they need to revert to the last known-good version.&lt;/LI&gt;
&lt;LI&gt;Simply editing the &lt;CODE&gt;DynaKube&lt;/CODE&gt; to point at an older image/version tag does not fully take effect, because a newer OneAgent binary/codemodule data may already be present in the CSI driver's per-node storage or installed on the node filesystem (&lt;CODE&gt;/var/lib/dynatrace&lt;/CODE&gt;, &lt;CODE&gt;/opt/dynatrace&lt;/CODE&gt;, CSI data volumes), and OneAgent pods will fail to start with "downgrade is unsupported" messages.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you are searching for this because you saw a OneAgent version mismatch across nodes after changing the pinned version in your &lt;CODE&gt;DynaKube&lt;/CODE&gt;, &lt;STRONG&gt;or because a downgrade does not seem to apply&lt;/STRONG&gt;, this article describes the supported procedure.&lt;/P&gt;
&lt;H2&gt;Troubleshooting steps&lt;/H2&gt;
&lt;P&gt;Before following the resolution below, confirm this applies to your situation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Confirm you are using a &lt;STRONG&gt;Dynatrace Operator&lt;/STRONG&gt; deployment, not a manually installed OneAgent.&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get dynakube -n dynatrace -o yaml
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Confirm the current OneAgent version(s) actually running, and that they differ from what you expect after editing the &lt;CODE&gt;DynaKube&lt;/CODE&gt;:&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get pods -n dynatrace -l app.kubernetes.io/name=dynatrace-oneagent -o wide
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Check the OneAgent logs for a similar message: &lt;CODE&gt;kubectl logs -n dynatrace ONEAGENTPODNAME&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;20:40:33 Logging to /var/log/dynatrace/oneagent/installer/installation_2139424.log
20:40:33 Installation started, version 1.339.71.20260706-161947, build date: 06.07.2026, PID 2139424.
20:40:33 Detected platform: LINUX arch: X86_64
20:40:33 Error: Downgrading OneAgent is not supported, please uninstall the old version first           20:40:33 Error: Attempted downgrade from 1.341.53.20260716-085120 to 1.339.71.20260706-161947
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Confirm you have a specific, known-good previous OneAgent version to roll back to (image tag or version number), and that it is available from your image source (public ECR, your registry, or Dynatrace's download endpoint).&lt;/LI&gt;
&lt;LI&gt;Confirm no critical workloads will be impacted by a brief loss of monitoring while OneAgent Pods are removed and recreated during the downgrade window.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2&gt;Resolution&lt;/H2&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Downgrading causes a short monitoring gap while the DynaKube is removed and OneAgent is reinstalled. Perform this during a maintenance window where possible.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;1. Back up and remove the current DynaKube&lt;/H3&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get dynakube -n dynatrace -o yaml &amp;gt; dynakube.yaml
kubectl delete -f dynakube.yaml                                                                         &lt;/CODE&gt;&lt;/PRE&gt;
&lt;H3&gt;2. Clean up previous OneAgent installs from each node&lt;/H3&gt;
&lt;P&gt;Because OneAgent and CSI driver data can remain on nodes depending on the monitoring mode, run the node cleanup script to remove leftover data before reinstalling an older version. See &lt;A href="https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/guides/deployment-and-configuration/updates-and-maintenance/update-uninstall-operator#cleanup-nodes" target="_blank" rel="noopener"&gt;Update and uninstall Dynatrace Operator — Clean up nodes&lt;/A&gt; and the script itself: &lt;A href="https://raw.githubusercontent.com/Dynatrace/dynatrace-operator/refs/tags/v1.10.0/hack/cluster/cleanup-node-fs.sh" target="_blank" rel="noopener"&gt;cleanup-node-fs.sh&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The script deploys a DaemonSet that runs a cleanup procedure on all Linux nodes in the cluster (amd64, arm64, ppc64le, s390x).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Before running the node cleanup, ensure that no DynaKube is deployed and all previously monitored Pods have been restarted.&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# Download the script                                                                        &lt;BR /&gt;curl -O https://raw.githubusercontent.com/Dynatrace/dynatrace-operator/refs/tags/v1.10.0/hack/cluster/cleanup-node-fs.sh
# Make it executable                                                                                    &lt;BR /&gt;chmod +x cleanup-node-fs.sh

# Run it (defaults to the "dynatrace" namespace; pass a namespace as an argument to override)           &lt;BR /&gt;./cleanup-node-fs.sh
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The script:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Executes the OneAgent uninstall script, if present.&lt;/LI&gt;
&lt;LI&gt;Removes OneAgent directories (&lt;CODE&gt;/var/lib/dynatrace&lt;/CODE&gt;, &lt;CODE&gt;/opt/dynatrace&lt;/CODE&gt;, &lt;CODE&gt;/var/log/dynatrace&lt;/CODE&gt;).&lt;/LI&gt;
&lt;LI&gt;Removes the CSI driver data directory.&lt;/LI&gt;
&lt;LI&gt;Reports cleanup status per node.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Once all cleanup Pods complete successfully, the DaemonSet deletes itself automatically. If cleanup fails on any node, the DaemonSet remains in place for investigation — do not proceed to step 3 until this is resolved.&lt;/P&gt;
&lt;H3&gt;3. Update the DynaKube to pin the previous OneAgent version&lt;/H3&gt;
&lt;P&gt;Edit the backed-up manifest and set &lt;CODE&gt;spec.oneAgent.cloudNativeFullStack.image&lt;/CODE&gt; (and &lt;CODE&gt;codeModulesImage&lt;/CODE&gt;, if applicable) to the known-good version:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;apiVersion: dynatrace.com/v1beta6
kind: DynaKube
metadata:
  name: dynakube
  namespace: dynatrace
spec:&lt;BR /&gt;  activeGate:&lt;BR /&gt;    capabilities:
      - routing
      - kubernetes-monitoring
      - dynatrace-api
    resources:&lt;BR /&gt;      limits:
        cpu: 1000m
        memory: 6Gi
      requests:
        cpu: 200m
        memory: 6Gi
  apiUrl: &amp;lt;YOUR_API_URL&amp;gt;
  metadataEnrichment:
    enabled: true
  oneAgent:
    cloudNativeFullStack:
      image: public.ecr.aws/dynatrace/dynatrace-oneagent:&amp;lt;PREVIOUS_VERSION&amp;gt;
      codeModulesImage: public.ecr.aws/dynatrace/dynatrace-codemodules:&amp;lt;PREVIOUS_VERSION&amp;gt;
      tolerations:
        - effect: NoSchedule
          key: node-role.kubernetes.io/master
          operator: Exists
        - effect: NoSchedule
          key: node-role.kubernetes.io/control-plane
          operator: Exists
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Replace &lt;CODE&gt;&amp;lt;YOUR_API_URL&amp;gt;&lt;/CODE&gt; with the &lt;CODE&gt;apiUrl&lt;/CODE&gt; from your backed-up &lt;CODE&gt;dynakube.yaml&lt;/CODE&gt;, and &lt;CODE&gt;&amp;lt;PREVIOUS_VERSION&amp;gt;&lt;/CODE&gt; with the specific OneAgent build you need (e.g. &lt;CODE&gt;1.339.71.20260706-161947&lt;/CODE&gt;). Adjust &lt;CODE&gt;activeGate&lt;/CODE&gt;/&lt;CODE&gt;metadataEnrichment&lt;/CODE&gt; settings to match your original configuration.&lt;/P&gt;
&lt;H3&gt;4. Apply the updated DynaKube&lt;/H3&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl apply -f dynakube.yaml
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Verify the rollout:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get pods -n dynatrace -w
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Confirm all OneAgent Pods come up on the pinned version and report data to your Dynatrace environment as expected.&lt;/P&gt;
&lt;H2&gt;What's next&lt;/H2&gt;
&lt;P&gt;If this article did not resolve your issue, open a support ticket, mention that this article was used, and include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;An &lt;STRONG&gt;operator support archive&lt;/STRONG&gt;. The command is only available in Dynatrace Operator version 0.11.0+. See &lt;A href="https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/installation/troubleshooting#support-archive" target="_blank" rel="noopener"&gt;Troubleshooting — Support archive&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl exec -n dynatrace deployment/dynatrace-operator -- dynatrace-operator support-archive --stdout &amp;gt; operator-support-archive_$(date +%Y%m%d_%H%M).zip
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you don't use bash you can use the below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl exec -n dynatrace deployment/dynatrace-operator -- dynatrace-operator support-archive --stdout &amp;gt; operator-support-archive.zip                                                             &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you use OpenShift just replace &lt;CODE&gt;kubectl&lt;/CODE&gt; with &lt;CODE&gt;oc&lt;/CODE&gt;.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The OneAgent version you downgraded &lt;STRONG&gt;from&lt;/STRONG&gt; and the version you downgraded &lt;STRONG&gt;to&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Logs from any node where the &lt;CODE&gt;cleanup-node-fs.sh&lt;/CODE&gt; DaemonSet Pod did not complete successfully.&lt;/LI&gt;
&lt;LI&gt;A description of the regression/issue on the newer version that prompted the downgrade.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you find yourself needing to downgrade OneAgent versions repeatedly (e.g. to test compatibility before rolling out updates broadly), consider suggesting a &lt;A href="https://community.dynatrace.com/t5/Product-ideas/idb-p/product-ideas" target="_blank" rel="noopener"&gt;Product Idea&lt;/A&gt; describing your use case.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;More articles can be found on the &lt;A href="https://community.dynatrace.com/t5/Troubleshooting/Kubernetes-Openshift-troubleshooting-map/ta-p/264113" target="_blank" rel="noopener"&gt;Kubernetes/OpenShift troubleshooting map&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2026 08:48:40 GMT</pubDate>
    <dc:creator>danmichael</dc:creator>
    <dc:date>2026-08-03T08:48:40Z</dc:date>
    <item>
      <title>[k8s/oc] Downgrading OneAgent in Kubernetes and OpenShift with the Dynatrace Operator</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/ta-p/302087</link>
      <description>&lt;P&gt;&lt;LI-TOC indent="15" liststyle="disc" maxheadinglevel="2"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;H2&gt;Summary&lt;/H2&gt;
&lt;P&gt;This article applies to &lt;STRONG&gt;Dynatrace Operator&lt;/STRONG&gt; based OneAgent deployments on &lt;STRONG&gt;Kubernetes&lt;/STRONG&gt; and &lt;STRONG&gt;OpenShift&lt;/STRONG&gt; (Cloud Native Full Stack / Classic Full Stack via CSI driver). It describes how to safely &lt;STRONG&gt;downgrade&lt;/STRONG&gt; the OneAgent version pinned in a &lt;CODE&gt;DynaKube&lt;/CODE&gt;, since the Operator and its CSI driver are designed around forward upgrades and do not natively support rolling back to an older OneAgent version in place.&lt;/P&gt;
&lt;H2&gt;Problem&lt;/H2&gt;
&lt;P&gt;Dynatrace Operator manages OneAgent version updates through the &lt;CODE&gt;DynaKube&lt;/CODE&gt; custom resource. This model works well for upgrades, but &lt;STRONG&gt;the OneAgent is not designed for downgrades&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Customers typically run into this when:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A OneAgent version rollout (automatic or manual) introduces a regression, unexpected behavior change, or a compatibility issue with a workload, and they need to revert to the last known-good version.&lt;/LI&gt;
&lt;LI&gt;Simply editing the &lt;CODE&gt;DynaKube&lt;/CODE&gt; to point at an older image/version tag does not fully take effect, because a newer OneAgent binary/codemodule data may already be present in the CSI driver's per-node storage or installed on the node filesystem (&lt;CODE&gt;/var/lib/dynatrace&lt;/CODE&gt;, &lt;CODE&gt;/opt/dynatrace&lt;/CODE&gt;, CSI data volumes), and OneAgent pods will fail to start with "downgrade is unsupported" messages.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you are searching for this because you saw a OneAgent version mismatch across nodes after changing the pinned version in your &lt;CODE&gt;DynaKube&lt;/CODE&gt;, &lt;STRONG&gt;or because a downgrade does not seem to apply&lt;/STRONG&gt;, this article describes the supported procedure.&lt;/P&gt;
&lt;H2&gt;Troubleshooting steps&lt;/H2&gt;
&lt;P&gt;Before following the resolution below, confirm this applies to your situation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Confirm you are using a &lt;STRONG&gt;Dynatrace Operator&lt;/STRONG&gt; deployment, not a manually installed OneAgent.&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get dynakube -n dynatrace -o yaml
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Confirm the current OneAgent version(s) actually running, and that they differ from what you expect after editing the &lt;CODE&gt;DynaKube&lt;/CODE&gt;:&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get pods -n dynatrace -l app.kubernetes.io/name=dynatrace-oneagent -o wide
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Check the OneAgent logs for a similar message: &lt;CODE&gt;kubectl logs -n dynatrace ONEAGENTPODNAME&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;20:40:33 Logging to /var/log/dynatrace/oneagent/installer/installation_2139424.log
20:40:33 Installation started, version 1.339.71.20260706-161947, build date: 06.07.2026, PID 2139424.
20:40:33 Detected platform: LINUX arch: X86_64
20:40:33 Error: Downgrading OneAgent is not supported, please uninstall the old version first           20:40:33 Error: Attempted downgrade from 1.341.53.20260716-085120 to 1.339.71.20260706-161947
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Confirm you have a specific, known-good previous OneAgent version to roll back to (image tag or version number), and that it is available from your image source (public ECR, your registry, or Dynatrace's download endpoint).&lt;/LI&gt;
&lt;LI&gt;Confirm no critical workloads will be impacted by a brief loss of monitoring while OneAgent Pods are removed and recreated during the downgrade window.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2&gt;Resolution&lt;/H2&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Downgrading causes a short monitoring gap while the DynaKube is removed and OneAgent is reinstalled. Perform this during a maintenance window where possible.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;1. Back up and remove the current DynaKube&lt;/H3&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get dynakube -n dynatrace -o yaml &amp;gt; dynakube.yaml
kubectl delete -f dynakube.yaml                                                                         &lt;/CODE&gt;&lt;/PRE&gt;
&lt;H3&gt;2. Clean up previous OneAgent installs from each node&lt;/H3&gt;
&lt;P&gt;Because OneAgent and CSI driver data can remain on nodes depending on the monitoring mode, run the node cleanup script to remove leftover data before reinstalling an older version. See &lt;A href="https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/guides/deployment-and-configuration/updates-and-maintenance/update-uninstall-operator#cleanup-nodes" target="_blank" rel="noopener"&gt;Update and uninstall Dynatrace Operator — Clean up nodes&lt;/A&gt; and the script itself: &lt;A href="https://raw.githubusercontent.com/Dynatrace/dynatrace-operator/refs/tags/v1.10.0/hack/cluster/cleanup-node-fs.sh" target="_blank" rel="noopener"&gt;cleanup-node-fs.sh&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The script deploys a DaemonSet that runs a cleanup procedure on all Linux nodes in the cluster (amd64, arm64, ppc64le, s390x).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Before running the node cleanup, ensure that no DynaKube is deployed and all previously monitored Pods have been restarted.&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# Download the script                                                                        &lt;BR /&gt;curl -O https://raw.githubusercontent.com/Dynatrace/dynatrace-operator/refs/tags/v1.10.0/hack/cluster/cleanup-node-fs.sh
# Make it executable                                                                                    &lt;BR /&gt;chmod +x cleanup-node-fs.sh

# Run it (defaults to the "dynatrace" namespace; pass a namespace as an argument to override)           &lt;BR /&gt;./cleanup-node-fs.sh
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The script:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Executes the OneAgent uninstall script, if present.&lt;/LI&gt;
&lt;LI&gt;Removes OneAgent directories (&lt;CODE&gt;/var/lib/dynatrace&lt;/CODE&gt;, &lt;CODE&gt;/opt/dynatrace&lt;/CODE&gt;, &lt;CODE&gt;/var/log/dynatrace&lt;/CODE&gt;).&lt;/LI&gt;
&lt;LI&gt;Removes the CSI driver data directory.&lt;/LI&gt;
&lt;LI&gt;Reports cleanup status per node.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Once all cleanup Pods complete successfully, the DaemonSet deletes itself automatically. If cleanup fails on any node, the DaemonSet remains in place for investigation — do not proceed to step 3 until this is resolved.&lt;/P&gt;
&lt;H3&gt;3. Update the DynaKube to pin the previous OneAgent version&lt;/H3&gt;
&lt;P&gt;Edit the backed-up manifest and set &lt;CODE&gt;spec.oneAgent.cloudNativeFullStack.image&lt;/CODE&gt; (and &lt;CODE&gt;codeModulesImage&lt;/CODE&gt;, if applicable) to the known-good version:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;apiVersion: dynatrace.com/v1beta6
kind: DynaKube
metadata:
  name: dynakube
  namespace: dynatrace
spec:&lt;BR /&gt;  activeGate:&lt;BR /&gt;    capabilities:
      - routing
      - kubernetes-monitoring
      - dynatrace-api
    resources:&lt;BR /&gt;      limits:
        cpu: 1000m
        memory: 6Gi
      requests:
        cpu: 200m
        memory: 6Gi
  apiUrl: &amp;lt;YOUR_API_URL&amp;gt;
  metadataEnrichment:
    enabled: true
  oneAgent:
    cloudNativeFullStack:
      image: public.ecr.aws/dynatrace/dynatrace-oneagent:&amp;lt;PREVIOUS_VERSION&amp;gt;
      codeModulesImage: public.ecr.aws/dynatrace/dynatrace-codemodules:&amp;lt;PREVIOUS_VERSION&amp;gt;
      tolerations:
        - effect: NoSchedule
          key: node-role.kubernetes.io/master
          operator: Exists
        - effect: NoSchedule
          key: node-role.kubernetes.io/control-plane
          operator: Exists
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Replace &lt;CODE&gt;&amp;lt;YOUR_API_URL&amp;gt;&lt;/CODE&gt; with the &lt;CODE&gt;apiUrl&lt;/CODE&gt; from your backed-up &lt;CODE&gt;dynakube.yaml&lt;/CODE&gt;, and &lt;CODE&gt;&amp;lt;PREVIOUS_VERSION&amp;gt;&lt;/CODE&gt; with the specific OneAgent build you need (e.g. &lt;CODE&gt;1.339.71.20260706-161947&lt;/CODE&gt;). Adjust &lt;CODE&gt;activeGate&lt;/CODE&gt;/&lt;CODE&gt;metadataEnrichment&lt;/CODE&gt; settings to match your original configuration.&lt;/P&gt;
&lt;H3&gt;4. Apply the updated DynaKube&lt;/H3&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl apply -f dynakube.yaml
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Verify the rollout:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl get pods -n dynatrace -w
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Confirm all OneAgent Pods come up on the pinned version and report data to your Dynatrace environment as expected.&lt;/P&gt;
&lt;H2&gt;What's next&lt;/H2&gt;
&lt;P&gt;If this article did not resolve your issue, open a support ticket, mention that this article was used, and include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;An &lt;STRONG&gt;operator support archive&lt;/STRONG&gt;. The command is only available in Dynatrace Operator version 0.11.0+. See &lt;A href="https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/installation/troubleshooting#support-archive" target="_blank" rel="noopener"&gt;Troubleshooting — Support archive&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl exec -n dynatrace deployment/dynatrace-operator -- dynatrace-operator support-archive --stdout &amp;gt; operator-support-archive_$(date +%Y%m%d_%H%M).zip
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you don't use bash you can use the below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;kubectl exec -n dynatrace deployment/dynatrace-operator -- dynatrace-operator support-archive --stdout &amp;gt; operator-support-archive.zip                                                             &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you use OpenShift just replace &lt;CODE&gt;kubectl&lt;/CODE&gt; with &lt;CODE&gt;oc&lt;/CODE&gt;.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The OneAgent version you downgraded &lt;STRONG&gt;from&lt;/STRONG&gt; and the version you downgraded &lt;STRONG&gt;to&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Logs from any node where the &lt;CODE&gt;cleanup-node-fs.sh&lt;/CODE&gt; DaemonSet Pod did not complete successfully.&lt;/LI&gt;
&lt;LI&gt;A description of the regression/issue on the newer version that prompted the downgrade.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you find yourself needing to downgrade OneAgent versions repeatedly (e.g. to test compatibility before rolling out updates broadly), consider suggesting a &lt;A href="https://community.dynatrace.com/t5/Product-ideas/idb-p/product-ideas" target="_blank" rel="noopener"&gt;Product Idea&lt;/A&gt; describing your use case.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;More articles can be found on the &lt;A href="https://community.dynatrace.com/t5/Troubleshooting/Kubernetes-Openshift-troubleshooting-map/ta-p/264113" target="_blank" rel="noopener"&gt;Kubernetes/OpenShift troubleshooting map&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2026 08:48:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/ta-p/302087</guid>
      <dc:creator>danmichael</dc:creator>
      <dc:date>2026-08-03T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: [k8s/oc] Downgrading OneAgent in Kubernetes and OpenShift with the Dynatrace Operator</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/tac-p/302107#M1154</link>
      <description>&lt;P&gt;Is the symptoms of running OA 1.341 inside Openshift clusters only present when running the Operator in CloudNative FS and Classic FS or should my customer follow this downgrade process if their are monitoring in Application Monitoring mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 09:01:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/tac-p/302107#M1154</guid>
      <dc:creator>francois_jouber</dc:creator>
      <dc:date>2026-07-20T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: [k8s/oc] Downgrading OneAgent in Kubernetes and OpenShift with the Dynatrace Operator</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/tac-p/302136#M1157</link>
      <description>&lt;P&gt;Hey team,&lt;BR /&gt;Customer is currently on OneAgent 1.341.56 in OpenShift and is following the downgrade guidance from the OpenShift/1.341 advisory.&lt;/P&gt;&lt;P&gt;The customer's specific question is:&lt;BR /&gt;"What exact OneAgent version should I put in the DynaKube image/version field?"&lt;/P&gt;&lt;P&gt;I know the general guidance is to move off the affected 1.341 release line and revert to a previous known-good version, but do we have an officially recommended specific 1.339.x build (or other exact version) that customers should pin to?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 17:38:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/tac-p/302136#M1157</guid>
      <dc:creator>tanmaiv</dc:creator>
      <dc:date>2026-07-20T17:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: [k8s/oc] Downgrading OneAgent in Kubernetes and OpenShift with the Dynatrace Operator</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/tac-p/302310#M1164</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/16532"&gt;@francois_jouber&lt;/a&gt;&amp;nbsp;classic and cloudnative experienced the issue. A fix was rolled out earlier this week in&amp;nbsp;&lt;SPAN&gt;1.341.56 and resolves the pod startup issue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/98872"&gt;@tanmaiv&lt;/a&gt;&amp;nbsp;If they are running&amp;nbsp;1.341.56 there is no need to downgrade as it contains the fix for the oneagent pod startup. Any release before 1.341 would have worked. Otherwise you can generally run the n-2 version or n-1 if they don't want to be on the most recent release.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2026 13:57:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/k8s-oc-Downgrading-OneAgent-in-Kubernetes-and-OpenShift-with-the/tac-p/302310#M1164</guid>
      <dc:creator>danmichael</dc:creator>
      <dc:date>2026-07-23T13:57:46Z</dc:date>
    </item>
  </channel>
</rss>

