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 multiple keys/filesets for a bucket using export map #1208

Open
wants to merge 22 commits into
base: dev
Choose a base branch
from

Conversation

badri-pathak
Copy link
Member

@badri-pathak badri-pathak commented Sep 2, 2024

Pull request checklist

Requirements:
1.  [Support multiple keys/filesets for a bucket](https://github.ibm.com/IBMSpectrumScale/scale-core/issues/7280)
2.  [Add makeActive variable for the cache filesets](https://github.ibm.com/IBMSpectrumScale/scale-core/issues/7577)

- First scale changes needs to be merged before this PR merge.
This PR depends on the changes of both the below PRs to be merged.
[(EWM-336519) Inconsistent response from Node Mapping with cos Delete REST API](https://github.ibm.com/IBMSpectrumScale/scale-core/issues/7559)
[(EWM-336293) Changes need to be done in GUI to align key verification fixes with AFM](https://github.ibm.com/IBMSpectrumScale/scale-core/issues/7542)

RTC details are:
[https://jazz07.rchland.ibm.com:21443/jazz/web/projects/GPFS#action=com.ibm.team.workitem.viewWorkItem&id=336293](https://jazz07.rchland.ibm.com:21443/jazz/web/projects/GPFS#action=com.ibm.team.workitem.viewWorkItem&id=336293)
[https://jazz07.rchland.ibm.com:21443/jazz/web/projects/GPFS#action=com.ibm.team.workitem.viewWorkItem&id=336519](https://jazz07.rchland.ibm.com:21443/jazz/web/projects/GPFS#action=com.ibm.team.workitem.viewWorkItem&id=336519)

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature Enhancement
  • Test Automation
  • Code Refactoring (no functional changes, no api changes)
  • Build related changes
  • Community Operator listing
  • Other (please describe):

What is the current behavior?

What is the new behavior?

How risky is this change?

  • Small, isolated change
  • Medium, requires regression testing
  • Large, requires functional and regression testing

@badri-pathak
Copy link
Member Author

badri-pathak commented Sep 2, 2024

Image: quay.io/badri_pathak/ibm-spectrum-scale-csi-driver:afmCacheExportMap_v17

driver/csiplugin/connectors/resources.go Outdated Show resolved Hide resolved
driver/csiplugin/connectors/rest_v2.go Show resolved Hide resolved
driver/csiplugin/connectors/rest_v2.go Outdated Show resolved Hide resolved
driver/csiplugin/connectors/rest_v2.go Outdated Show resolved Hide resolved
driver/csiplugin/connectors/rest_v2.go Outdated Show resolved Hide resolved
driver/csiplugin/connectors/rest_v2.go Outdated Show resolved Hide resolved
driver/csiplugin/controllerserver.go Outdated Show resolved Hide resolved
driver/csiplugin/controllerserver.go Outdated Show resolved Hide resolved
driver/csiplugin/controllerserver.go Outdated Show resolved Hide resolved
return nil
}

func (s *SpectrumRestV2) CreateS3CacheFileset(ctx context.Context, filesystemName string, filesetName string, mode string, opts map[string]interface{}, bucketInfo map[string]string, exportMapName string, parsedEndpointURL *url.URL) error {
Copy link
Member

Choose a reason for hiding this comment

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

Is this tested with at least 2 cache volumes using 2 different set of keys (e.g. one with readOnly and other with readWrite access) for a single bucket? the read/write access to bucket should be as per the keys

Copy link
Member

Choose a reason for hiding this comment

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

As mentioned by Badri, this will be covered by @saurabhwani5 during testing

@badri-pathak
Copy link
Member Author

badri-pathak commented Oct 3, 2024

Image: quay.io/badri_pathak/ibm-spectrum-scale-csi-driver:afmCacheExportMap_v26

@badri-pathak badri-pathak added this to the v2.13.0 milestone Oct 11, 2024
@badri-pathak
Copy link
Member Author

New image with cosKeys deletion issue: quay.io/badri_pathak/ibm-spectrum-scale-csi-driver:afmCacheExportMap_v27

Copy link
Member

@saurabhwani5 saurabhwani5 left a comment

Choose a reason for hiding this comment

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

Adding all issue numbers which are opened for this pr below :
7765, 7774

@badri-pathak
Copy link
Member Author

The issue https://github.ibm.com/IBMSpectrumScale/scale-core/issues/7765 has been fixed.

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.

5 participants