-
Notifications
You must be signed in to change notification settings - Fork 52
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
enable static pv to create in dynamic way #1288
Conversation
|
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
|
Signed-off-by: badri-pathak <[email protected]>
...er/examples/version1/volume/dynamicprovisioning/staticprovisioning/dependent/static_pod.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: badri-pathak <[email protected]>
|
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
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.
Hi @badri-pathak , please have a look on issue 8396 in scale core
Signed-off-by: badri-pathak <[email protected]>
|
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
|
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
|
Signed-off-by: badri-pathak <[email protected]>
driver/csiplugin/gpfs_util.go
Outdated
@@ -413,7 +440,13 @@ func getScaleVolumeOptions(ctx context.Context, volOptions map[string]string) (* | |||
scaleVol.NodeClass = nodeClass | |||
} | |||
|
|||
if isCGSpecified { | |||
if scaleVol.IsStaticPVBased { |
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.
if condition for static pv and else condition has the same code. can we combine it together
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.
addressed the comment
driver/csiplugin/controllerserver.go
Outdated
@@ -2066,6 +2226,87 @@ func (cs *ScaleControllerServer) validateCloneRequest(ctx context.Context, scale | |||
} | |||
} | |||
|
|||
/* if sourcevolume.StorageClassType == STORAGECLASS_CLASSIC { |
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.
Is this commented code required?
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.
removed the comments.
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Image: quay.io/badri_pathak/ibm-spectrum-scale-csi-driver:staticpv_44 |
klog.Infof("[%s] ControllerModifyVolume: Modify filesetName:[ %s ] using VolumeAttributeClass is not allowed, so returning success \n", loggerId, filesetName) | ||
return &csi.ControllerModifyVolumeResponse{}, nil | ||
} | ||
} else if volumeIDMembers.StorageClassType != STORAGECLASS_CACHE { |
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.
Need to correct the error msg as volume attribute class is supported for cache volumes
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.
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Pull request checklist
This PR is related to the feature discussion at the issue https://github.ibm.com/IBMSpectrumScale/scale-core/issues/8017
Design Doc: Feature to provision a static pv in a dynamic way
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
What is the new behavior?
How risky is this change?