vsphere-csi-driver icon indicating copy to clipboard operation
vsphere-csi-driver copied to clipboard

[WIP] skip shared datastore computations if CNS task for CreateVolume is persisted in the idempotency CR

Open vdkotkar opened this issue 1 year ago • 2 comments

What this PR does / why we need it: We are finding shared datastores etc. even when the vCenter task for CreateVolume is already registered with improved idempotency. This PR is optimising this code to make sure that heavy computations of finding shared datastore etc. are skipped if task for CreateVolume is already created.

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: A PR must be marked "[WIP]", if no test result is provided. A WIP PR won't be reviewed, nor merged. The requester can determine a sufficient test, e.g. build for a cosmetic change, E2E test in a predeployed setup, etc. For new features, new tests should be done, in addition to regression tests. If jtest is used to trigger precheckin tests, paste the result after jtest completes and remove [WIP] in the PR subject. The review cycle will start, only after "[WIP]" is removed from the PR subject.

Special notes for your reviewer:

Release note:

Optimise CreateVolume code to skip shared datastore computations if CNS task for CreateVolume is already created

vdkotkar avatar Oct 11 '22 15:10 vdkotkar

Hi @vdkotkar. 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 avatar Oct 11 '22 15:10 k8s-ci-robot

Started Vanilla block pre-checkin pipeline... Build Number: 1509

svcbot-qecnsdp avatar Oct 18 '22 16:10 svcbot-qecnsdp

Started Vanilla block pre-checkin pipeline... Build Number: 1516

svcbot-qecnsdp avatar Oct 19 '22 11:10 svcbot-qecnsdp

Build ID: 1516
Block vanilla build status: SUCCESS 
Stage before exit: e2e-tests 
Jenkins E2E Test Results: 
------------------------------

Ran 1 of 670 Specs in 346.219 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 669 Skipped
PASS

Ginkgo ran 1 suite in 15m25.338348657s
Test Suite Passed
--
------------------------------

Ran 12 of 670 Specs in 4742.703 seconds
SUCCESS! -- 12 Passed | 0 Failed | 0 Pending | 658 Skipped
PASS

Ginkgo ran 1 suite in 1h20m3.189054931s
Test Suite Passed
--
------------------------------

Ran 40 of 670 Specs in 6679.573 seconds
SUCCESS! -- 40 Passed | 0 Failed | 0 Pending | 630 Skipped
PASS

Ginkgo ran 1 suite in 1h52m27.686977736s
Test Suite Passed

svcbot-qecnsdp avatar Oct 19 '22 17:10 svcbot-qecnsdp

/ok-to-test

divyenpatel avatar Oct 24 '22 18:10 divyenpatel

After addressing the review comments, post the final testing results.

deepakkinni avatar Oct 26 '22 02:10 deepakkinni

Started Vanilla block pre-checkin pipeline... Build Number: 1520

svcbot-qecnsdp avatar Oct 27 '22 12:10 svcbot-qecnsdp

Started Vanilla block pre-checkin pipeline... Build Number: 1521

svcbot-qecnsdp avatar Oct 27 '22 14:10 svcbot-qecnsdp

Started Vanilla block pre-checkin pipeline... Build Number: 1522

svcbot-qecnsdp avatar Oct 27 '22 17:10 svcbot-qecnsdp

Build ID: 1522
Block vanilla build status: SUCCESS 
Stage before exit: e2e-tests 
Jenkins E2E Test Results: 
------------------------------

Ran 1 of 678 Specs in 328.570 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 677 Skipped
PASS

Ginkgo ran 1 suite in 15m16.600395889s
Test Suite Passed
--
------------------------------

Ran 12 of 678 Specs in 4677.197 seconds
SUCCESS! -- 12 Passed | 0 Failed | 0 Pending | 666 Skipped
PASS

Ginkgo ran 1 suite in 1h19m9.669941758s
Test Suite Passed
--
------------------------------

Ran 40 of 678 Specs in 7198.166 seconds
SUCCESS! -- 40 Passed | 0 Failed | 0 Pending | 638 Skipped
PASS

Ginkgo ran 1 suite in 2h1m12.236729793s
Test Suite Passed

svcbot-qecnsdp avatar Oct 27 '22 20:10 svcbot-qecnsdp

/approve

deepakkinni avatar Oct 27 '22 22:10 deepakkinni

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepakkinni, divyenpatel, vdkotkar

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:
  • ~~OWNERS~~ [deepakkinni,divyenpatel]

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 avatar Oct 28 '22 17:10 k8s-ci-robot