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

[ISSUE-1018] Custom Storage Group Feature #997

Merged
merged 91 commits into from
Jun 27, 2023

Conversation

CraneShiEMC
Copy link
Collaborator

@CraneShiEMC CraneShiEMC commented May 5, 2023

Purpose

Resolves #1018

Support the custom storage group feature.

PR checklist

  • Add link to the issue
  • Choose Project
  • Choose PR label
  • New unit tests added
  • Modified code has meaningful comments
  • All TODOs are linked with the issues
  • All comments are resolved

Testing

The custom storage group feature has functioned as expected in our various tests, including normal function and service procedure support.
Passed CSI custom ci: https://asd-ecs-jenkins.isus.emc.com/job/csi-custom-ci/1549/

CraneShiEMC and others added 17 commits February 28, 2023 00:52
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Patch coverage: 78.26% and project coverage change: +0.01 🎉

Comparison is base (23a99e1) 72.90% compared to head (04f731e) 72.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #997      +/-   ##
==========================================
+ Coverage   72.90%   72.92%   +0.01%     
==========================================
  Files          62       62              
  Lines        8250     8266      +16     
==========================================
+ Hits         6015     6028      +13     
- Misses       1978     1980       +2     
- Partials      257      258       +1     
Flag Coverage Δ
unittests 72.92% <78.26%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/common/ac_operations.go 8.62% <0.00%> (ø)
pkg/base/k8s/kubeclient.go 66.25% <75.00%> (+0.16%) ⬆️
pkg/common/volume_operations.go 82.76% <75.00%> (+0.10%) ⬆️
pkg/base/capacityplanner/node_capacity.go 94.54% <100.00%> (ø)
pkg/node/volumemgr.go 74.66% <100.00%> (ø)
pkg/scheduler/extender/extender.go 60.72% <100.00%> (+0.22%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

CraneShiEMC and others added 12 commits May 5, 2023 19:11
Signed-off-by: Shi, Crane <crane.shi@emc.com>
…ontroller"

This reverts commit 7d57051.

Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
@CraneShiEMC CraneShiEMC requested a review from aiqiEMC June 20, 2023 07:39
@@ -120,6 +121,7 @@ generate-baremetal-crds: install-controller-gen
controller-gen $(CRD_OPTIONS) paths=api/v1/drivecrd/drive_types.go paths=api/v1/drivecrd/groupversion_info.go output:crd:dir=$(CSI_CHART_CRDS_PATH)
controller-gen $(CRD_OPTIONS) paths=api/v1/lvgcrd/logicalvolumegroup_types.go paths=api/v1/lvgcrd/groupversion_info.go output:crd:dir=$(CSI_CHART_CRDS_PATH)
controller-gen $(CRD_OPTIONS) paths=api/v1/nodecrd/node_types.go paths=api/v1/nodecrd/groupversion_info.go output:crd:dir=$(CSI_CHART_CRDS_PATH)
controller-gen $(CRD_OPTIONS) paths=api/v1/storagegroupcrd/storagegroup_types.go paths=api/v1/storagegroupcrd/groupversion_info.go output:crd:dir=$(CSI_CHART_CRDS_PATH)

Copy link
Collaborator

Choose a reason for hiding this comment

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

also here need a PR on csi-baremetal-operator to add the new sg crd definition there.

Copy link
Collaborator Author

@CraneShiEMC CraneShiEMC Jun 20, 2023

Choose a reason for hiding this comment

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

I've actually had a PR on csi-baremetal-operator for the corresponding storage group feature including the addition of sg crd, dell/csi-baremetal-operator#180... Sorry for forgetting to provide it for your review before...

Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
@CraneShiEMC CraneShiEMC force-pushed the feature-storage-group-initial branch from b953f24 to cba700d Compare June 23, 2023 08:42
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
@yimingwangdell yimingwangdell self-requested a review June 26, 2023 08:57
@CraneShiEMC CraneShiEMC force-pushed the feature-storage-group-initial branch from 44cf129 to 4b2767d Compare June 26, 2023 09:39
Signed-off-by: Shi, Crane <crane.shi@emc.com>
@CraneShiEMC CraneShiEMC force-pushed the feature-storage-group-initial branch from 66baad5 to 2e544de Compare June 26, 2023 10:17
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
@CraneShiEMC CraneShiEMC merged commit 1a54002 into master Jun 27, 2023
6 checks passed
@CraneShiEMC CraneShiEMC deleted the feature-storage-group-initial branch June 27, 2023 06:34
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.

Custom Storage Group Feature
3 participants