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

Adding CSI Spec v1.6.0 support for Powerflex #259

Merged
merged 33 commits into from
Oct 31, 2023
Merged

Conversation

KshitijaKakde
Copy link
Contributor

Description

Adding CSI Spec v1.6.0 support for Powerflex

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#905

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?

Tested the changes by executing 2vols helm test and cert-csi

image

[root@master-1-UBC3iTe13Py54 ~]# ./cert-csi certify --cert-config /root/certify.yaml --vsc vxflexos-snapclass
[2023-10-30 06:31:54] INFO Starting cert-csi; ver. 0.8.1
[2023-10-30 06:31:54] INFO Suites to run with vxflexos storage class:
[2023-10-30 06:31:54] INFO 1. ScalingSuite {replicas: 2, volumes: 5, volumeSize: 8Gi}
[2023-10-30 06:31:54] INFO 2. CloneVolumeSuite {pods: 2, volumes: 1, volumeSize: 8Gi}
[2023-10-30 06:31:54] INFO 3. VolumeIoSuite {volumes: 2, volumeSize: 8Gi chains: 2-2}
[2023-10-30 06:31:54] INFO 4. VolumeExpansionSuite {pods: 1, volumes: 1, size: 8Gi, expSize: 16Gi, block: false}
[2023-10-30 06:31:54] INFO 5. VolumeExpansionSuite {pods: 1, volumes: 1, size: 8Gi, expSize: 16Gi, block: true}
[2023-10-30 06:31:54] INFO 6. SnapSuite {snapshots: 3, volumeSize; 8Gi}
[2023-10-30 06:31:54] INFO 7. ReplicationSuite {pods: 2, volumes: 5, volumeSize: 8Gi}
[2023-10-30 06:31:54] INFO 8. MultiAttachSuite {pods: 5, rawBlock: true, size: 8Gi, accMode: ReadWriteMany}
[2023-10-30 06:31:54] INFO Suites to run with vxflexos-xfs storage class:
[2023-10-30 06:31:54] INFO 1. ScalingSuite {replicas: 2, volumes: 5, volumeSize: 8Gi}
[2023-10-30 06:31:54] INFO 2. CloneVolumeSuite {pods: 2, volumes: 1, volumeSize: 8Gi}
[2023-10-30 06:31:54] INFO 3. VolumeIoSuite {volumes: 2, volumeSize: 8Gi chains: 2-2}
[2023-10-30 06:31:54] INFO 4. VolumeExpansionSuite {pods: 1, volumes: 1, size: 8Gi, expSize: 16Gi, block: false}
[2023-10-30 06:31:54] INFO 5. VolumeExpansionSuite {pods: 1, volumes: 1, size: 8Gi, expSize: 16Gi, block: true}
[2023-10-30 06:31:54] INFO 6. SnapSuite {snapshots: 3, volumeSize; 8Gi}
[2023-10-30 06:31:54] INFO 7. ReplicationSuite {pods: 2, volumes: 5, volumeSize: 8Gi}
[2023-10-30 06:31:54] INFO 8. MultiAttachSuite {pods: 5, rawBlock: true, size: 8Gi, accMode: ReadWriteMany}
Does it look OK? (Y)es/(n)o
-> y

/root/.cert-csi/reports/test-run-b2aff4ca/VolumeExpansionSuite37/PodCreation.png
BoxPlot:
/root/.cert-csi/reports/test-run-b2aff4ca/VolumeExpansionSuite37/PodCreation_boxplot.png
PodDeletion:
Avg: 1.615004355s
Min: 1.615004355s
Max: 1.615004355s
Histogram:
/root/.cert-csi/reports/test-run-b2aff4ca/VolumeExpansionSuite37/PodDeletion.png
BoxPlot:
/root/.cert-csi/reports/test-run-b2aff4ca/VolumeExpansionSuite37/PodDeletion_boxplot.png
EntityNumberOverTime:
/root/.cert-csi/reports/test-run-b2aff4ca/VolumeExpansionSuite37/EntityNumberOverTime.png

[2023-10-30 06:35:06] INFO Avg time of a run: 90.14s
[2023-10-30 06:35:06] INFO Avg time of a del: 17.54s
[2023-10-30 06:35:06] INFO Avg time of all: 115.08s
[2023-10-30 06:35:06] INFO During this run 100.0% of suites succeeded

@@ -2132,9 +2139,75 @@ func (s *service) GetCapacity(
"Unable to get capacity: %s", err.Error())
}

systemID := ""
for key, value := range params {
Copy link
Contributor

Choose a reason for hiding this comment

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

@KshitijaKakde We have already retrieved the systemID from the request body so I believe we can remove this duplicate code here, what do you think?
image

if err != nil {
Log.Debug("GetMaxVolumeSize returning error ", err)
}
maxVolSizeinbps := maxVolSize * bytesInGiB
Copy link
Contributor

Choose a reason for hiding this comment

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

@KshitijaKakde Perform this (maxVolSizeinbps := maxVolSize * bytesInGiB) operation after if maxVolSize < 0 check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -2132,11 +2139,83 @@ func (s *service) GetCapacity(
"Unable to get capacity: %s", err.Error())
}

Log.Println("defaulttttttttt", s.opts.defaultSystemID)
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo * => Log.Println("defaulttttttttt", s.opts.defaultSystemID), Please fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

adarsh-dell
adarsh-dell previously approved these changes Oct 31, 2023
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.

Now, Good to go from my end.

Copy link
Contributor

@AkshaySainiDell AkshaySainiDell left a comment

Choose a reason for hiding this comment

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

lgtm

@KshitijaKakde KshitijaKakde merged commit f73a260 into main Oct 31, 2023
4 of 5 checks passed
@AronAtDell AronAtDell deleted the CSI-1.6-changes branch October 17, 2024 18:46
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.

4 participants