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

Support for volume limits in CSI Powerstore #258

Merged
merged 5 commits into from
Jul 26, 2023

Conversation

alankar-verma
Copy link
Collaborator

@alankar-verma alankar-verma commented Jul 24, 2023

Description

Support for volume limits feature in CSI Powerstore driver. The feature can be used either by setting :

  • maxPowerstoreVolumesPerNode in values.yaml
  • setting node label "max-powerstore-volumes-per-node"

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#876

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Set the node label "max-powerstore-volumes-per-node" to 2 for one of the worker node and then installed the driver with maxPowerstoreVolumesPerNode set to 1 in values.yaml

Node label set successfully:

labels-set

Driver installed successfully:

driver_install

Env variable X_CSI_POWERSTORE_MAX_VOLUMES_PER_NODE set successfully:
env-set

Tried to schedule multiple pods.

pvc-status

It allowed the creation of only 3 pods (2 + 1, "2" for one worker node because of the label "max-powerstore-volumes-per-node" set to "2" and "1" for other worker node because of the "maxPowerstoreVolumesPerNode" value set using values.yaml at the time of installation)

@adarsh-dell
Copy link
Contributor

@alankar-verma Can you please run cert-csi once for iscsi & NFS protocol ?

@alankar-verma
Copy link
Collaborator Author

@alankar-verma Can you please run cert-csi once for iscsi & NFS protocol ?

Ran cert-csi, all the test suites succeeded
certcsi

Copy link
Contributor

@adarsh-dell adarsh-dell left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @alankar-verma for addressing all comments.

@alankar-verma alankar-verma merged commit 428ffe6 into main Jul 26, 2023
@shanmydell shanmydell deleted the feature/volume_limits branch January 31, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants