Commit Graph
12703 Commits
Author SHA1 Message Date
Blaine Gardner c729d02dc7 Merge pull request #16460 from rook/mergify/bp/release-1.18/pr-16452
csi: fix prior cephx key deletion logic (backport #16452)
2025-09-10 10:48:51 -06:00
Travis Nielsen 599d2766dd Merge pull request #16459 from rook/mergify/bp/release-1.18/pr-16448
csi: add multus network annotation to csi-operator (backport #16448)
2025-09-10 10:44:05 -06:00
Blaine Gardner 9b71f192ed csi: fix prior cephx key deletion logic
Fix an issue where keepPriorKeyCountMax would be counted differently
when rotation was currently in progress, versus when rotation was not in
progress.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 7911469016)
2025-09-10 16:02:44 +00:00
subhamkrai 649489c504 csi: add multus network annotation to csi-operator
this commit adds multus network annotation to the
csi-operator node plugin and controller plugin pods
when multus is enabled in the ceph cluster.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit d2a1286606)
2025-09-10 15:57:40 +00:00
Travis Nielsen c5c7c0332d Merge pull request #16450 from rook/mergify/bp/release-1.18/pr-16388
build: add support for golang v1.25 (backport #16388)
2025-09-10 09:41:15 -06:00
Michael Adam f01e603f94 build: bump controller-gen to v1.19.0
Co-Authored-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e268c09c4e)
2025-09-10 13:36:27 +00:00
Michael Adam 7112b69397 build: add support for golang v1.25
With this change, rook supports the two most recent versions of golang,
v1.24 and v1.25.

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit ae3938d57d)
2025-09-10 13:36:27 +00:00
subham rai 137502b9d9 Merge pull request #16455 from rook/mergify/bp/release-1.18/pr-16449
ci: fix the ci canary vault tests (backport #16449)
2025-09-10 15:09:03 +05:30
parth-gr 34a617ffeb ci: fix the ci canary valut test
use the official way for helm installation
and not use the cdn installation

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit b4fa906202)
2025-09-10 09:02:55 +00:00
Travis Nielsen 63fd3f18b4 Merge pull request #16444 from rook/mergify/bp/release-1.18/pr-16433
Fix secret values in import-external-cluster script (backport #16433)
2025-09-09 07:21:18 -06:00
Travis Nielsen 103033bd22 Merge pull request #16445 from rook/mergify/bp/release-1.18/pr-16383
helm: Do not upgrade storage class with helm upgrade (backport #16383)
2025-09-09 07:21:04 -06:00
parth-gr 6e8effaf14 helm: do not upgrade sc with helm upgrade
sc are immutable, so do not upgrade them
with helm upgrades

closes: https://github.com/rook/rook/issues/11398

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit d9aee27b00)
2025-09-08 19:38:43 +00:00
Ruben Tsirunyan 7f6ad93298 external: fixing secret values in import-external-cluster script
The import-external-cluster.sh script uses $CSI_CEPHFS_NODE_SECRET as the value of userKey when patching the secrets of RBD node, RBD provisioner, CephFS node and CephFS provisioner.
Updated the patch data to use $CSI_RBD_NODE_SECRET, $CSI_RBD_PROVISIONER_SECRET, $CSI_CEPHFS_NODE_SECRET, $CSI_CEPHFS_PROVISIONER_SECRET respectively.

Signed-off-by: Ruben Tsirunyan <rubentsirunyan@gmail.com>
(cherry picked from commit 2169a3e784)
2025-09-08 17:20:46 +00:00
Blaine Gardner d8038f3a68 Merge pull request #16429 from rook/mergify/bp/release-1.18/pr-16421
osd: remove the osd bootstrap keyring (backport #16421)
2025-09-04 10:12:56 -06:00
parth-gr 171cb589e2 osd: remove the osd bootstrap keyring
when the osd is created there is no need for
osd bootstrap keyring, so remove the keyring
and keyring file,

New keyring will be created if
new osd need to be provisoned

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 794a232835)
2025-09-04 15:43:38 +00:00
Blaine Gardner 393722d6ff Merge pull request #16424 from rook/mergify/bp/release-1.18/pr-16372
core: delete bootstrap keys (backport #16372)
2025-09-02 15:08:53 -06:00
Blaine Gardner d2d69da654 Merge pull request #16398 from rook/mergify/bp/release-1.18/pr-16271
core: rotate client.admin cephx key (backport #16271)
2025-09-02 15:08:42 -06:00
Blaine Gardner 30db0f9b19 Merge pull request #16423 from rook/mergify/bp/release-1.18/pr-16409
osd: rotate lockbox keys for encrypted osd (backport #16409)
2025-09-02 15:08:21 -06:00
Santosh Pillai 76285baf24 core: delete bootstrap keys
Delete the client.boostrap.* keys. These keys are not created by rook so
it can't rotate them. This PR just delete these keys in the
postMonStartUpAction.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 4cdba0df54)
2025-09-02 18:17:44 +00:00
Santosh Pillai da12810130 osd: rotate lockbox keys for encrypted osd
ceph-volume creates osd-lockbox keys for the encryted osds. This PR
rotates those keys along with the OSD keys.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit b4e1c1720d)
2025-09-02 18:16:40 +00:00
Travis Nielsen 308b670dac Merge pull request #16422 from rook/mergify/bp/release-1.18/pr-16375
docs: fix `authKeystone` usage in Object Storage CRD docs (backport #16375)
2025-09-02 11:18:29 -06:00
Mörgæsis 224d4b8dcf docs: fix usage of undefined attribute
Update ceph-object-store-crd.md to use known attribute.

Signed-off-by: Mörgæsis <morgaesis+git@morgaes.is>
(cherry picked from commit 65427d8cd1)
2025-09-02 17:17:18 +00:00
Travis Nielsen a308fb3726 Merge pull request #16413 from obnoxxx/release-1.18-prep-v1.18.1
build: Update docs and examples for release v1.18.1
v1.18.1
2025-08-29 11:13:16 -06:00
Michael Adam dde4afd993 build: update release version to v1.18.1
For the patch release update the examples and docs
to v1.18.1

Signed-off-by: Michael Adam <obnox@samba.org>
2025-08-29 18:37:56 +02:00
Travis Nielsen a3df18d58b Merge pull request #16410 from rook/mergify/bp/release-1.18/pr-16382
csi: add watcher for cm cluster controller (backport #16382)
2025-08-29 10:07:00 -06:00
Travis Nielsen f216bc4919 Merge pull request #16411 from rook/mergify/bp/release-1.18/pr-16373
helm: recreate storage class with helm upgrades only for v1.18.x (backport #16373)
2025-08-29 10:06:47 -06:00
Travis Nielsen a8c130e903 Merge pull request #16412 from rook/mergify/bp/release-1.18/pr-16381
csi: delete csi operator CR's when disabled (backport #16381)
2025-08-29 10:06:33 -06:00
subhamkrai 6339c574c7 csi: delete csi operator CR's when disabled
this commit deletes csi operator CR's when
user wants to revert back to csi driver for
some reasons. This commits deletes CR's like
`clientProfile, cephConnection, driver,
operatorConfig, and clientProfileMapping`.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 3b7a7b8958)
2025-08-29 14:32:48 +00:00
parth-gr e2707ddf7e helm: recreate sc with helm upgrades
during upgrade there can be change in sc paramaters,
as storageclass are immutable, we need to recreate them

closes: https://github.com/rook/rook/issues/16362
Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit c8003bfef7)
2025-08-29 14:27:46 +00:00
subhamkrai 8ff513e8ae csi: add watcher for cm cluster controller
this commit add watcher for cm `rook-ceph-operator-config`
to look for updated value of `ROOK_USE_CSI_OPERATOR` before
adding this watcher we had to restart rook operator pod
so that it reconciles and create cephConnection CR.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit dd6693ff97)
2025-08-29 14:24:43 +00:00
subham rai ab01227c55 Merge pull request #16407 from rook/mergify/bp/release-1.18/pr-16405
csi: Set csi operator as default if no settings found (backport #16405)
2025-08-29 14:50:51 +05:30
Travis Nielsen 7c2347b30c csi: cleanup formatting of csi log statement
The csi key creation was not correctly logging params

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0a9262e73b)
2025-08-29 07:58:35 +00:00
Travis Nielsen 904881bd74 csi: set csi operator as default if no settings found
If the ROOK_USE_CSI_OPERATOR setting is not found in the
rook-ceph-operator-config configmap, the default now
is to use the csi operator instead of the previous
csi driver

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b2b28e1280)
2025-08-29 07:58:35 +00:00
Travis Nielsen 389cd2327b Merge pull request #16404 from rook/mergify/bp/release-1.18/pr-16399
csi: Set the cephfs kernel mount options when network encryption is enabled (backport #16399)
2025-08-28 12:17:57 -06:00
Travis Nielsen 2c3543a292 csi: default to secure kernel mount options if network encrypted
If the network is encrypted with msgr2, cephfs requires
the mount options to include ms_mode=secure. Now this
will be set by default if the mount options are not
already set in the cephcluster CR or the operator env
var CSI_CEPHFS_KERNEL_MOUNT_OPTIONS.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 6309cd367e)
2025-08-28 16:28:06 +00:00
Travis Nielsen ea8270fd82 csi: set kernel mount options from env var if not in cluster spec
If the cephfs kernel mount options are not specified in the
cephcluster.spec.csi CR settings, fall back to the setting
in the operator env var CSI_CEPHFS_KERNEL_MOUNT_OPTIONS.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit eeebfbf496)
2025-08-28 16:28:06 +00:00
Travis Nielsen e7d0cfdfa0 csi: update client profile when changing
The csi client profile CR needed to be updated if
the spec changed. Previously, the client profile was never
being updated because it was calling Update() on the
existing CR retreived from Get(), rather than with
the updated spec.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit cc39368964)
2025-08-28 16:28:06 +00:00
Travis Nielsen e719ea2307 Merge pull request #16397 from rook/mergify/bp/release-1.18/pr-16396
csi: fix wrong use of daemon config for cephx status (backport #16396)
2025-08-27 20:50:03 -06:00
Blaine Gardner 14490a075e core: admin cephx key rotation
Implement CephX key rotation for Rook's client.admin user.

Admin user rotation is risky, so this has been tested extensively both
in unit tests as well as by manually injecting failures during runtime.
In testing, all failures were able to be recovered by the recovery
routine.

A mutex is also added to help ensure that two simultaneous admin key
rotation processes cannot be running simultaneously for any given
namespace. The mutex is tested in unit tests, and it was verified during
runtime via  manual testing.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 7c33186e72)
2025-08-27 21:21:29 +00:00
Blaine Gardner 1872784128 csi: fix wrong use of daemon config for cephx status
Fix a wrong usage of the CephX daemon config that should be CephX CSI
config.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 480b407bc2)
2025-08-27 21:15:27 +00:00
Travis Nielsen 96d7141c2c Merge pull request #16394 from rook/mergify/bp/release-1.18/pr-16393
csi: Always initialize CSI driver names (backport #16393)
2025-08-27 12:35:44 -06:00
Travis Nielsen d25ae43bb6 csi: always initialize driver names
The driver names were only being initialized in certain code paths
where the drivers were being started and stopped. However, another
code path relied on those names being set. Now, we initialize the
driver names every time the CSI params are initialized, instead of
initializing the names separately.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit af548ef2f6)
2025-08-27 17:48:19 +00:00
subham rai 2065d929e8 Merge pull request #16380 from rook/mergify/bp/release-1.18/pr-16376
csi: Generate default crush topology labels (backport #16376)
2025-08-26 14:23:03 +05:30
Travis Nielsen 3a4b81250a csi: generate default crush topology labels
The csi read affinity requires the crush topology labels
to be specified in the cephconnection CR. If they are
not specified by the user, rook can generate the default
topology labels instead of expecting them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 79e067ec05)
2025-08-26 08:06:41 +00:00
Travis Nielsen b0cab8a8d1 Merge pull request #16360 from obnoxxx/release-1.18-prep-v1.18.0
build: update release version to v1.18.0
v1.18.0
2025-08-20 14:17:32 -06:00
Michael Adam ec6b3037f5 build: update release version to v1.18.0
For the minor release update the examples and docs
to v1.18.0

Signed-off-by: Michael Adam <obnox@samba.org>
2025-08-20 19:09:25 +02:00
Travis Nielsen fbebb5d257 Merge pull request #16358 from rook/mergify/bp/release-1.18/pr-16343
helm: Enable host network for OpenShift if needed (backport #16343)
2025-08-20 10:47:36 -06:00
Blaine Gardner 5a92934b65 Merge pull request #16356 from rook/mergify/bp/release-1.18/pr-16336
csi: fix the prior key count for csi key rotation (backport #16336)
2025-08-20 10:39:19 -06:00
Travis Nielsen 026a7d074b helm: enable host network for openshift if needed
The securityContextConstraints require setting whether
host networking and host port access is needed by the
ceph cluster service accounts. The helm chart now allows
enabling this mode with the settings:
rook-ceph chart: useOperatorHostNetwork: true
rook-ceph-cluster chart: cephClusterSpec.network.provider: host

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 82262a8472)
2025-08-20 16:12:34 +00:00
parth-gr 2844fcf9b0 csi: fix the prior key count for csi key rotation
fix the prior key count status for the csi
key rotation

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 7b5d476887)
2025-08-20 16:08:29 +00:00