Skip to content

Mount keyring and config override as files in the toolbox deployment#4026

Open
sp98 wants to merge 11 commits into
red-hat-storage:release-4.22from
sp98:update-toolbox-dep-mount-path
Open

Mount keyring and config override as files in the toolbox deployment#4026
sp98 wants to merge 11 commits into
red-hat-storage:release-4.22from
sp98:update-toolbox-dep-mount-path

Conversation

@sp98

@sp98 sp98 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

The OCS operator provides the keyring via ROOK_CEPH_SECRET env var instead of file mount. This PR mounts the keyring secret and config overeide as files and drops the env var, so that toolbox can detect the change in the keyring.

iamniting and others added 10 commits July 9, 2026 08:52
Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
This variable will hold the desired cephx key generation value.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
Add a shared annotation key for CephClusters created with CephX support.

Set the annotation only during CephCluster creation.

Existing clusters are never annotated during reconciliation.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
Add CephX security settings to the generated CephCluster spec.

Use the feature annotation to choose the compatible security spec.

When the annotation exists, allow ciphers and set CSI and
rbdMirrorPeer key to AES.

When absent, allow ciphers and enable daemon key rotation with
KeyGeneration.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
Mirror CephCluster CephX feature behavior onto managed CephClients.

Annotate newly created clients with the CephX feature annotation.

Set their CephX key type to AES when the annotation is present.

Apply this to metrics exporter and StorageConsumer CSI clients.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
Add CephCluster reconciliation coverage for both CephX annotation paths.

Verify new clusters receive the created-with-CephX feature annotation.

Verify existing clusters never gets annotated.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
The test 'populated cache emits metrics' under
TestCephFSSubvolumeCountCollectorCollect in 'cephfs_test.go'
file was incorrectly checking metric values because it
collected all gauge metrics with 'consumer_name' label
without distinguishing between metric types.  The 'pvMetadata'
metrics (value=1) were overwriting the subvolumeCount values.

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
@sp98 sp98 force-pushed the update-toolbox-dep-mount-path branch from 9f04b28 to 206097c Compare July 10, 2026 05:57
},
},
},
{Name: "ceph-admin-secret", VolumeSource: corev1.VolumeSource{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you pls correct the formatting?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

@sp98 sp98 force-pushed the update-toolbox-dep-mount-path branch from 206097c to f7f3113 Compare July 13, 2026 09:00
@openshift-ci

openshift-ci Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sp98
Once this PR has been reviewed and has the lgtm label, please ask for approval from iamniting. 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

@sp98 sp98 requested a review from iamniting July 13, 2026 09:06
The OCS operator provides the keyring via ROOK_CEPH_SECRET env var
instead of file mount. This PR mounts the keyring secret file and drops  the env var.
This is useful as now the toolbox script can detect the change in the
keyring.

Signed-off-by: Santosh <sapillai@redhat.com>
@sp98 sp98 force-pushed the update-toolbox-dep-mount-path branch from f7f3113 to 5092069 Compare July 13, 2026 09:11
@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 13, 2026
@sp98 sp98 changed the base branch from main to release-4.22 July 13, 2026 09:12
@sp98

sp98 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

This PR is not rebased on top of #3910 which has all the Ocs operator changes for 4.22.

@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 13, 2026
@openshift-ci

openshift-ci Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

@sp98: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocs-operator-bundle-e2e-aws 5092069 link true /test ocs-operator-bundle-e2e-aws

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@parth-gr parth-gr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there a possibility the ceph keyring can change?

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.

4 participants