-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conversation
service/controller.go
Outdated
@@ -2132,9 +2139,75 @@ func (s *service) GetCapacity( | |||
"Unable to get capacity: %s", err.Error()) | |||
} | |||
|
|||
systemID := "" | |||
for key, value := range params { |
There was a problem hiding this comment.
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?
service/controller.go
Outdated
if err != nil { | ||
Log.Debug("GetMaxVolumeSize returning error ", err) | ||
} | ||
maxVolSizeinbps := maxVolSize * bytesInGiB |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
service/controller.go
Outdated
@@ -2132,11 +2139,83 @@ func (s *service) GetCapacity( | |||
"Unable to get capacity: %s", err.Error()) | |||
} | |||
|
|||
Log.Println("defaulttttttttt", s.opts.defaultSystemID) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this 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.
Signed-off-by: Kshitija Kakde <[email protected]>
3ad02ba
to
4c0ee26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Adding CSI Spec v1.6.0 support for Powerflex
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Tested the changes by executing 2vols helm test and cert-csi
[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