Skip to content

Increase storage test timeouts for the Azure disk CSI driver#18502

Open
rifelpet wants to merge 1 commit into
kubernetes:masterfrom
rifelpet:azure-csi-test-timeouts
Open

Increase storage test timeouts for the Azure disk CSI driver#18502
rifelpet wants to merge 1 commit into
kubernetes:masterfrom
rifelpet:azure-csi-test-timeouts

Conversation

@rifelpet

@rifelpet rifelpet commented Jun 20, 2026

Copy link
Copy Markdown
Member

What

Add a Timeouts: block to the external-storage testdriver manifest for disk.csi.azure.com (tests/e2e/csi-manifests/azure-disk/driver.yaml), overriding several framework.TimeoutContext defaults for the Azure disk storage e2e tests.

Why

The e2e-kops-azure-gossip-ha job flakes on PersistentVolume tests because disk.csi.azure.com attach/detach/provision are ARM control-plane operations that routinely exceed the e2e framework's default timeouts. Observed failures in the External Storage [Driver: disk.csi.azure.com] suite:

  • subPath should support readOnly file specified in the volumeMount
  • subPath should support non-existent path
  • volumes should allow exec of files on the volume

All fail identically: the test pod is scheduled but stays Pending / PodInitializing waiting on the volume to attach+mount, then trips the default PodStart timeout (Timed out after 300.001s). The root cause is Azure disk attach latency, not a product bug — confirmed against the failing runs:

How

The Kubernetes external-storage test harness supports a per-driver Timeouts map that overrides framework.TimeoutContext. This is the supported, configuration-only knob — no changes to k8s.io/kubernetes/test/e2e code. kops already passes this manifest via --storage.testdriver (tests/e2e/pkg/tester/tester.go).

Consuming code in kubernetes/kubernetes

These settings are read by the external storage test driver:

New values (defaults in parentheses):

Key New Default
PodStart 15m 5m
PodStartSlow 20m 15m
ClaimProvision 10m 5m
ClaimBound 10m 3m
PVDelete 15m 5m
PVDeleteSlow 30m 20m
PodDelete 10m 5m

Scope / not addressed

This only affects the External Storage [Driver: disk.csi.azure.com] tests. The two [sig-apps] StatefulSet flakes on the same job (2067116858862997504, 2065546496547229696) share the same Azure-latency root cause but use hardcoded constants (StatefulSetTimeout = 10m) in upstream test/e2e and cannot be tuned via configuration; they would need a separate upstream change.


Assisted by Opus 4.8

@kubernetes-prow kubernetes-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 20, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zetaab for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot requested review from hakman and zetaab June 20, 2026 13:24
@rifelpet

Copy link
Copy Markdown
Member Author

/test pull-kops-azure-gossip-ha

@hakman

hakman commented Jun 20, 2026

Copy link
Copy Markdown
Member

Would reducing the parallelism for Azure help more?

@rifelpet

Copy link
Copy Markdown
Member Author

Would reducing the parallelism for Azure help more?

Not sure. This doc suggests that too many concurrent operations can result in slow attach/detach times:

https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/storage/slow-attach-detach-operations-azure-disk

but claims the issue is specific to the in-tree driver and suggests migrating to CSI, which we already use here.

This is the only related upstream issue, and is also specific to in-tree: kubernetes-sigs/azuredisk-csi-driver#269

@k8s-triage-robot

Copy link
Copy Markdown

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 20, 2026
@hakman

hakman commented Jun 21, 2026

Copy link
Copy Markdown
Member

/test pull-kops-azure-gossip-ha

1 similar comment
@rifelpet

Copy link
Copy Markdown
Member Author

/test pull-kops-azure-gossip-ha

The disk.csi.azure.com attach/detach operations are ARM control-plane
calls that routinely take longer than the e2e framework's default
TimeoutContext values. This causes PersistentVolume test flakes in the
External Storage suite (pods stuck Pending waiting on volume mount,
slow PV deletion) on the e2e-kops-azure-gossip-ha job.

Override the relevant framework.TimeoutContext values via the external
storage testdriver manifest's Timeouts map so the disk.csi.azure.com
tests tolerate the slower Azure attach/provision/delete latencies.
@rifelpet
rifelpet force-pushed the azure-csi-test-timeouts branch from e9275c0 to 92a0d4e Compare July 2, 2026 23:44
@rifelpet

rifelpet commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

/test pull-kops-azure-gossip-ha

@kubernetes-prow

kubernetes-prow Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@rifelpet: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kops-e2e-k8s-aws-amazonvpc 92a0d4e link true /test pull-kops-e2e-k8s-aws-amazonvpc

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@rifelpet

rifelpet commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

/test pull-kops-azure-gossip-ha

@hakman

hakman commented Jul 3, 2026

Copy link
Copy Markdown
Member

@rifelpet let's give kubernetes/test-infra#37384 and #18527 a try first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants