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

fix: wait for azcopy job running in snapshot restore and clone #2232

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

Conversation

andyzhangx
Copy link
Member

@andyzhangx andyzhangx commented Dec 1, 2024

What type of PR is this?
/kind bug

What this PR does / why we need it:
fix: wait for azcopy job running in snapshot restore and clone

  • original behavior
I1130 09:00:23.572985       1 utils.go:102] GRPC request: {"capacity_range":{"required_bytes":1073741824000},"name":"pvc-9a891963-4d08-4642-860d-52b313a34599","parameters":{"csi.storage.k8s.io/pv/name":"pvc-9a891963-4d08-4642-860d-52b313a34599","csi.storage.k8s.io/pvc/name":"pvc-azurefilesrestore-100gb-33","csi.storage.k8s.io/pvc/namespace":"churntest","skuName":"Premium_ZRS","useDataPlaneAPI":"true"},"volume_capabilities":[{"AccessType":{"Mount":{"mount_flags":["mfsymlinks","actimeo=30","nosharesock"]}},"access_mode":{"mode":7}}],"volume_content_source":{"Type":{"Snapshot":{"snapshot_id":"MC_mayaggarea_mayankscrubber_eastasia#f9c8e62184bb34a229251e1#pvc-a6a88fbf-8b57-4652-9634-6995c6a39b05###churntest#2024-11-27T08:49:15.0000000Z"}}}}
I1130 09:00:23.572962       1 utils.go:101] GRPC call: /csi.v1.Controller/CreateVolume
I1130 06:00:10.554098       1 controllerserver.go:1388] generate sas token for account(f5536663891bc4178a86cce)
I1130 06:00:10.554131       1 controllerserver.go:1403] use sas token for account(f5536663891bc4178a86cce) since this account is found in azcopySasTokenCache
I1130 06:00:10.554166       1 controllerserver.go:1388] generate sas token for account(f9c8e62184bb34a229251e1)
I1130 06:00:10.554178       1 controllerserver.go:1403] use sas token for account(f9c8e62184bb34a229251e1) since this account is found in azcopySasTokenCache
I1130 06:00:10.623513       1 controllerserver.go:1085] azcopy job status: Running, copy percent: 0.0%, error: <nil>
I1130 06:00:10.623608       1 azure_metrics.go:118] "Observed Request Latency" latency_seconds=0.5001277 request="azurefile_csi_driver_controller_create_volume_from_snapshot" resource_group="mc_mayaggarea_mayankscrubber_eastasia" subscription_id="" source="file.csi.azure.com" volumeid="" result_code="failed_csi_driver_controller_create_volume_from_snapshot"
E1130 06:00:10.623639       1 utils.go:106] GRPC error: wait for the existing AzCopy job to complete, current copy percentage is 0.0%

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

fix: wait for azcopy job running in snapshot restore and clone

@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. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 1, 2024
@k8s-ci-robot k8s-ci-robot requested review from cvvz and gnufied December 1, 2024 03:15
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 1, 2024
@andyzhangx andyzhangx force-pushed the wait-for-azcopy-job-running branch from e2b74c6 to 7493d81 Compare December 13, 2024 14:51
@andyzhangx andyzhangx changed the title [WIP]fix: wait for azcopy job running in snapshot restore and clone fix: wait for azcopy job running in snapshot restore and clone Dec 13, 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 Dec 13, 2024
@andyzhangx andyzhangx force-pushed the wait-for-azcopy-job-running branch from 7493d81 to 0f30b89 Compare December 13, 2024 15:00
@andyzhangx
Copy link
Member Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. 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.

2 participants