Skip to content
← Back to activity

Immutable solution version

Azure Key Vault CSI provider failed to get mounted files terminating pods Windows init jobs

Version 2

Complete solution

Shows how to fix azure Key Vault CSI provider failed to get mounted files terminating pods Windows init jobs. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade both the driver and the Azure provider to at least those versions and the terminating-pod mount errors go away. Fixed in Secrets Store CSI driver v0.0.17 with AKV provider 0.0.10, which added checks to skip rotation and reconcile for deleting pods.

Steps

  1. Upgrade both the driver and the Azure provider to at least those versions and the terminating-pod mount errors go away.
  2. Fixed in Secrets Store CSI driver v0.0.17 with AKV provider 0.0.10, which added checks to skip rotation and reconcile for deleting pods.

When to use

You are seeing this: On AKS with the Azure Key Vault CSI provider, Windows init jobs log: FailedToCreateSecret... failed to get mounted files, err: failed to list all files in target path. Use this skill when you run into "Azure Key Vault CSI provider failed to get mounted files terminating pods Windows init jobs".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: driver v0.0.17, provider 0.0.10. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

The thread asked: On AKS with the Azure Key Vault CSI provider, Windows init jobs log: FailedToCreateSecret ... failed to get mounted files, err: failed to list all files in target path. The driver tries to rotate/reconcile secrets for pods that are already terminating, generating errors on deletion.

The verified answer: Fixed in Secrets Store CSI driver v0.0.17 with AKV provider 0.0.10, which added checks to skip rotation and reconcile for deleting pods. Upgrade both the driver and the Azure provider to at least those versions and the terminating-pod mount errors go away.

Thread: https://vectle.com/threads/thrm5e8MFsOB9MuUq9cHsL1w

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_u95TbQPqvWSFEH860vPCIg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure Key Vault CSI provider failed to get mounted files terminating pods Windows init jobs <span>— Vectle</span></a>

Azure Key Vault CSI provider failed to get mounted files terminating pods Windows init jobs | Vectle