Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for volume to be detached before taking a snapshot in e2e tests #125007

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amacaskill
Copy link
Contributor

@amacaskill amacaskill commented May 20, 2024

What type of PR is this?

/kind failing-test

What this PR does / why we need it:

The VolumeSnapshotDataSource tests for the GCE PD Driver are flaky. They occasionally fail because of a race condition between detaching the disk and taking a snapshot. If a disk detaches while taking a snapshot, GCE will error with "Disk attachment changed while trying to make a snapshot." To fix, we should wait for the disk to be detached before taking the snapshot.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 20, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@k8s-ci-robot k8s-ci-robot added the needs-priority Indicates a PR lacks a `priority/foo` label and requires one. label May 20, 2024
@amacaskill amacaskill changed the title Wait for volume to be detached before taking a snapshot in e2e tests [WIP] Wait for volume to be detached before taking a snapshot in e2e tests May 20, 2024
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/test sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 20, 2024
@amacaskill amacaskill force-pushed the fix-snapshot-tests branch 2 times, most recently from 9a5498a to 347953f Compare May 21, 2024 00:06
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 21, 2024
@amacaskill amacaskill force-pushed the fix-snapshot-tests branch 2 times, most recently from c36065e to 83e1615 Compare May 21, 2024 16:09
@k8s-ci-robot k8s-ci-robot added the area/e2e-test-framework Issues or PRs related to refactoring the kubernetes e2e test framework label May 21, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

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

@amacaskill
Copy link
Contributor Author

/test pull-kubernetes-unit

@amacaskill amacaskill changed the title [WIP] Wait for volume to be detached before taking a snapshot in e2e tests Wait for volume to be detached before taking a snapshot in e2e tests May 21, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 21, 2024
@amacaskill amacaskill force-pushed the fix-snapshot-tests branch 2 times, most recently from caf8197 to 79d8e81 Compare May 21, 2024 22:20
@amacaskill amacaskill force-pushed the fix-snapshot-tests branch 2 times, most recently from 904177b to 9bb4bf8 Compare May 21, 2024 23:35
@amacaskill
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-storage-snapshot

@amacaskill amacaskill force-pushed the fix-snapshot-tests branch 3 times, most recently from 69bfcdc to 940424a Compare May 22, 2024 23:24
test/e2e/framework/volume/fixtures.go Outdated Show resolved Hide resolved
test/e2e/storage/testsuites/snapshottable.go Outdated Show resolved Hide resolved
test/e2e/storage/framework/testdriver.go Outdated Show resolved Hide resolved
@amacaskill amacaskill force-pushed the fix-snapshot-tests branch 2 times, most recently from 1487fe4 to 45308ad Compare May 29, 2024 00:56
@amacaskill
Copy link
Contributor Author

/test pull-kubernetes-node-e2e-containerd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/e2e-test-framework Issues or PRs related to refactoring the kubernetes e2e test framework area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants