Application pods can't start post injection with "MountVolume.SetUp failed ..." error

Self Service Summary

You want to monitor your application pods, but the pods fail to start after Oneagent initContainer injection. The pod’s events show the following error message:

MountVolume.SetUp failed for volume "oneagent-bin" : kubernetes.io/csi: mounter.SetUpAt failed to get CSI client: driver name csi.oneagent.dynatrace.com not found in the list of registered CSI drivers

Solution

  1. Ensure the CSI daemon set can schedule a CSI pod on all K8s cluster nodes where monitored applications are running. For example, if there are 5 cluster nodes, then it is required to have 5 CSI-driver pods, one pod per node.
  2. Verify if the new cluster nodes don’t have any custom taints. If there are, please tolerate the csi-driver pod against those custom taints in the csi-driver (operator) manifest (yaml) file. Check this post for more details.
4 Likes

What is the solution if using the Dyntrace Azure Marketplace extension?