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

Cleanup stale volume operation requests from snapshot operations #1324

Conversation

lintongj
Copy link
Contributor

@lintongj lintongj commented Oct 8, 2021

What this PR does / why we need it:
Cleanup stale volume operation requests from snapshot operations

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Testing done:

regression test: PASS
functional test: PASS

2021-10-11T07:00:35.259Z        INFO    cnsvolumeoperationrequest/cnsvolumeoperationrequest.go:80       Creating CnsVolumeOperationRequest definition on API server and initializing VolumeOperationRequest instance {"TraceId": "bb2edc4d-b73f-4149-ab53-eaa9a80d4507"}
2021-10-11T07:00:35.274Z        INFO    kubernetes/kubernetes.go:434    "cnsvolumeoperationrequests.cns.vmware.com" CRD updated successfully    {"TraceId": "bb2edc4d-b73f-4149-ab53-eaa9a80d4507"}
2021-10-11T07:00:35.307Z        INFO    cnsvolumeoperationrequest/cnsvolumeoperationrequest.go:315      CnsVolumeOperationRequest clean up interval is set to 120 minutes    {"TraceId": "ed38494d-be52-4503-9fef-d11d0b39157d"}
2021-10-11T07:00:35.307Z        INFO    cnsvolumeoperationrequest/cnsvolumeoperationrequest.go:317      Cleaning up stale CnsVolumeOperationRequest instances.  {"TraceId": "ed38494d-be52-4503-9fef-d11d0b39157d"}
2021-10-11T07:00:35.343Z        DEBUG   cnsvolumeoperationrequest/cnsvolumeoperationrequest.go:293      Deleting CnsVolumeOperationRequest instance with name vmware-system-csi/deletesnapshot-b6d66f4d-dabd-43cd-9337-314d5dd04240-bd45f52b-e1d7-43f8-90a9-33dd058a38fa     {"TraceId": "ed38494d-be52-4503-9fef-d11d0b39157d"}
2021-10-11T07:00:35.352Z        DEBUG   cnsvolumeoperationrequest/cnsvolumeoperationrequest.go:293      Deleting CnsVolumeOperationRequest instance with name vmware-system-csi/snapshot-a2787e7e-afd9-4d0a-b4d7-9a680e67fe92-b6d66f4d-dabd-43cd-9337-314d5dd04240   {"TraceId": "ed38494d-be52-4503-9fef-d11d0b39157d"}
2021-10-11T07:00:35.357Z        INFO    cnsvolumeoperationrequest/cnsvolumeoperationrequest.go:406      Clean up of stale CnsVolumeOperationRequest complete.   {"TraceId": "ed38494d-be52-4503-9fef-d11d0b39157d"}

Special notes for your reviewer:

Release note:

Cleanup stale volume operation requests from snapshot operations

@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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 8, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @lintongj. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 8, 2021
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 8, 2021
@svcbot-qecnsdp
Copy link

Started vanilla Block pipeline... Build Number: 624

@svcbot-qecnsdp
Copy link

Block vanilla build status: FAILURE 
Stage before exit: e2e-tests 
Jenkins E2E Test Results: 
JUnit report was created: /home/worker/workspace/Block-Vanilla/Results/624/vsphere-csi-driver/tests/e2e/junit.xml

Ran 1 of 244 Specs in 414.344 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 243 Skipped
PASS

Ginkgo ran 1 suite in 7m42.292948992s
Test Suite Passed
--
JUnit report was created: /home/worker/workspace/Block-Vanilla/Results/624/vsphere-csi-driver/tests/e2e/junit.xml

Ran 14 of 244 Specs in 6977.391 seconds
SUCCESS! -- 14 Passed | 0 Failed | 0 Pending | 230 Skipped
PASS

Ginkgo ran 1 suite in 1h56m31.078246824s
Test Suite Passed
--
/home/worker/workspace/Block-Vanilla/Results/624/vsphere-csi-driver/tests/e2e/csi_cns_telemetry.go:203

Ran 41 of 244 Specs in 489.763 seconds
FAIL! -- 40 Passed | 1 Failed | 0 Pending | 203 Skipped


Ginkgo ran 1 suite in 8m24.395433002s
Test Suite Failed

@lintongj lintongj force-pushed the cleanup-stale-snapshot-idem-requests branch from ae79447 to c88592b Compare October 8, 2021 17:37
@lintongj
Copy link
Contributor Author

lintongj commented Oct 8, 2021

Block vanilla build status: FAILURE 
Stage before exit: e2e-tests 
Jenkins E2E Test Results: 
JUnit report was created: /home/worker/workspace/Block-Vanilla/Results/624/vsphere-csi-driver/tests/e2e/junit.xml

Ran 1 of 244 Specs in 414.344 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 243 Skipped
PASS

Ginkgo ran 1 suite in 7m42.292948992s
Test Suite Passed
--
JUnit report was created: /home/worker/workspace/Block-Vanilla/Results/624/vsphere-csi-driver/tests/e2e/junit.xml

Ran 14 of 244 Specs in 6977.391 seconds
SUCCESS! -- 14 Passed | 0 Failed | 0 Pending | 230 Skipped
PASS

Ginkgo ran 1 suite in 1h56m31.078246824s
Test Suite Passed
--
/home/worker/workspace/Block-Vanilla/Results/624/vsphere-csi-driver/tests/e2e/csi_cns_telemetry.go:203

Ran 41 of 244 Specs in 489.763 seconds
FAIL! -- 40 Passed | 1 Failed | 0 Pending | 203 Skipped


Ginkgo ran 1 suite in 8m24.395433002s
Test Suite Failed

The test case, CNS-CSI Cluster Distribution Telemetry, was failed due to Wrong/empty cluster-distribution name present on CNS. It is not related with the change in this PR.

@lintongj lintongj changed the title [WIP] Cleanup stale volume operation requests from snapshot operations Cleanup stale volume operation requests from snapshot operations Oct 8, 2021
@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 Oct 8, 2021
@xing-yang xing-yang self-assigned this Oct 8, 2021
@xing-yang
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 8, 2021
@xing-yang
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lintongj, xing-yang

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2021
@lintongj lintongj changed the title Cleanup stale volume operation requests from snapshot operations [WIP] Cleanup stale volume operation requests from snapshot operations Oct 11, 2021
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2021
@lintongj lintongj force-pushed the cleanup-stale-snapshot-idem-requests branch from c88592b to 628551a Compare October 11, 2021 07:03
@lintongj lintongj changed the title [WIP] Cleanup stale volume operation requests from snapshot operations Cleanup stale volume operation requests from snapshot operations Oct 11, 2021
@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 Oct 11, 2021
@lintongj lintongj force-pushed the cleanup-stale-snapshot-idem-requests branch from 628551a to e6bc2c6 Compare October 11, 2021 17:01
@lintongj
Copy link
Contributor Author

Hi @xing-yang, we still need a lgtm label to get this PR merged. Would you please help with it? Thanks

@deepakkinni
Copy link

/lgtm

@k8s-ci-robot
Copy link
Contributor

@deepakkinni: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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/test-infra repository.

@xing-yang
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 11, 2021
@k8s-ci-robot k8s-ci-robot merged commit 54eaa31 into kubernetes-sigs:master Oct 11, 2021
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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

5 participants