Skip to content

cephx changes for provider-client #3899

Open
rohan47 wants to merge 5 commits into
red-hat-storage:release-4.22from
rohan47:cephx422
Open

cephx changes for provider-client #3899
rohan47 wants to merge 5 commits into
red-hat-storage:release-4.22from
rohan47:cephx422

Conversation

@rohan47

@rohan47 rohan47 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

This PR adds changes to storageconsumer api to inclde cephxConfiguraion in spec and kernel version in storageConsumer.status.clientStatus.kernelVersion.
storageConsumer reconciler increments csiCephUserCurrentGen which triggers creation of new secrets
The provider server api is updated to allow exchange of kernel version from storageClient to provider and send cephclient secret to storageClient.

Not covered in the PR:
Delete old secrets, as they are required by the existing application pods.

iamniting and others added 5 commits June 4, 2026 17:50
These funcs allow user to check the kernel support on ocp cluster

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
add cephClientCephX to storageconsumer spec and add kernelVersion in
client status

Signed-off-by: Rohan Gupta <rohgupta@redhat.com>
if kernel version is supported then increment csiCephUserCurrentGen

Signed-off-by: Rohan Gupta <rohgupta@redhat.com>
client sends kernel version in reportStatusRequest, and ReportStatus
updates storageConsumer.status.clientStatus.kernelVersion and
desiredClientConfigHash.

Signed-off-by: Rohan Gupta <rohgupta@redhat.com>
Signed-off-by: Rohan Gupta <rohgupta@redhat.com>
@openshift-ci

openshift-ci Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rohan47
Once this PR has been reviewed and has the lgtm label, please assign blaineexe for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rohan47

rohan47 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 4, 2026
)

var (
csiCephUserCurrGen int64 = csiCephUserCurrGenDefault

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a package level variable. All the consumers would use it. Shouldn't this be a local variable?


if isPrimaryConsumer {
kernelVersion := r.storageConsumer.Status.Client.KernelVersion
if supported, err := ocscontrollersutil.IsKernelVersionSupported(kernelVersion, ocscontrollersutil.CephxKeyRotaionKernelSupportVersion); supported && err == nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

err not handled.

}

var (
CephxKeyRotaionKernelSupportVersion = kernelSupportVersion{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
CephxKeyRotaionKernelSupportVersion = kernelSupportVersion{
CephxKeyRotationKernelSupportVersion = kernelSupportVersion{

@openshift-ci

openshift-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants