Skip to content

PWX-33049 : Adding SC parameter preferRemoteNode to disable Anti-HyperConvergence for sharedv4 service volumes#1515

Merged
olavangad-px merged 2 commits intomasterfrom
PWX-33049
Sep 27, 2023
Merged

PWX-33049 : Adding SC parameter preferRemoteNode to disable Anti-HyperConvergence for sharedv4 service volumes#1515
olavangad-px merged 2 commits intomasterfrom
PWX-33049

Conversation

@olavangad-px
Copy link
Copy Markdown
Contributor

@olavangad-px olavangad-px commented Sep 25, 2023

What type of PR is this?

feature
unit-test

What this PR does / why we need it:

  • Introduce a new parameter stork.libopenstorage.org/preferRemoteNode to be applied to a StorageClass.

  • Default value of preferRemoteNode is true for pods using shared v4 service volumes and will prefer antihyperconvergence

  • If value of this label is set to false, ignore preferRemoteNodeOnly flag and prefer Hyperconvergence for pods using shared v4 service volumes.

  • For more details refer to PWX-33049

Does this PR change a user-facing CRD or CLI?:
No

Is a release note needed?:

* New Feature
When StorageClass parameter "stork.libopenstorage.org/preferRemoteNode" is set to "false", Stork will disable anti-hyperconvergence for shared v4 service volumes created using this StorageClass and value of "stork.libopenstorage.org/preferRemoteNodeOnly" parameter will be ignored. 
Default value of "stork.libopenstorage.org/preferRemoteNode" is set to true.


Does this change need to be cherry-picked to a release branch?:
Yes, 23.11.0

Testing Details:

  • Have added Unit Tests and also manually tested the changes in a live cluster. Testing details
  • Will start working on integration tests as well.

Notes For the Reviewer

@cnbu-jenkins
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@olavangad-px olavangad-px added release-note Information about this change needs to be added to the release note unit-test The change adds or updates a unit test feature The change adds a new feature labels Sep 25, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (d0d4d75) 65.13% compared to head (6f04ebf) 65.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1515      +/-   ##
==========================================
+ Coverage   65.13%   65.24%   +0.11%     
==========================================
  Files          43       43              
  Lines        5183     5191       +8     
==========================================
+ Hits         3376     3387      +11     
+ Misses       1481     1479       -2     
+ Partials      326      325       -1     
Files Coverage Δ
pkg/extender/extender.go 83.26% <100.00%> (+0.29%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pp511 pp511 requested a review from diptiranjanpx September 25, 2023 22:41
Copy link
Copy Markdown
Contributor

@pp511 pp511 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.
Just some nitpicking.

Release note suggestion:
New Feature
When StorageClass parameter "stork.libopenstorage.org/preferRemoteNode" is set to "false", Stork will disable anti-hyperconvergence for shared v4 service volumes created using this StorageClass and value of "stork.libopenstorage.org/preferRemoteNodeOnly" parameter will be ignored. Default value of "stork.libopenstorage.org/preferRemoteNode" is set to true.

…onvergence for sharedv4 service volumes

Revision 2 : Addressed comments by @ppandey
Copy link
Copy Markdown
Contributor

@pp511 pp511 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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

Labels

feature The change adds a new feature release-note Information about this change needs to be added to the release note unit-test The change adds or updates a unit test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants