Commit Graph
12627 Commits
Author SHA1 Message Date
Travis Nielsen cbd9ab8c4e Merge pull request #16307 from rook/mergify/bp/release-1.18/pr-16290
rbdmirror: fix status check for rbd rn mirroring (backport #16290)
2025-08-14 09:09:48 -06:00
Travis Nielsen 861068122d Merge pull request #16308 from rook/mergify/bp/release-1.18/pr-16304
csi: update the csi-operator API (backport #16304)
2025-08-14 09:09:25 -06:00
Travis Nielsen a147675c48 Merge pull request #16310 from rook/mergify/bp/release-1.18/pr-16309
csi: remove inline panic handler from CreateDefaultClientProfile (backport #16309)
2025-08-14 09:08:26 -06:00
mergify[bot] 78e8a41fd7 Merge pull request #16315 from rook/mergify/bp/release-1.18/pr-16293
operator: mount udev to cleanup job and disable udev sync (backport #16293)
2025-08-14 15:07:21 +00:00
Travis Nielsen 1851dd033f Merge pull request #16317 from rook/mergify/bp/release-1.18/pr-16312
docs: minor syntax fixes for CephCluster CRD documentation (backport #16312)
2025-08-14 09:07:13 -06:00
Jack Henschel e27a95b848 docs: minor syntax fixes for CephCluster CRD documentation
Signed-off-by: Jack Henschel <jhensche@redhat.com>
(cherry picked from commit d8651f33ea)
2025-08-14 14:24:45 +00:00
Denis Egorenko 6b27d08221 operator: mount udev to cleanup job and disable udev sync
Mount /run/udev inside cluster cleanup jobs and disable udev sync
with DM_DISABLE_UDEV.

Related-Issue: rook#16292
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
(cherry picked from commit 09622a8b8d)
2025-08-14 13:10:47 +00:00
Oded Viner 6157ff570d csi: remove inline panic handler from CreateDefaultClientProfile
remove inline defer that catches and logs panics since it is already handled by pr#16150

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 7f0be04773)
2025-08-13 16:28:58 +00:00
Madhu Rajanna 1938299fc9 csi: update the csi-operator API
updating the csi operator API version
to latest version.

Adding the cephFS and RBD controllerPublish
secret that are required for the fencing
operation that is supported by ceph-csi
with csi-operator.

Updated the storageclass to include the
secrets incase if user wants to override
the defaults in the clientProfile for
new PVC's.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 3d024ce3c7)
2025-08-13 15:08:12 +00:00
parth-gr b078effaec rbdmirror: fix status check for rbd rn mirroring
if the blockpool mirroring is disabled and status check
is not removed, currently rn cr still watches for the status

Add a check if the pool or rados mirroring is disabled then dont
watch for status

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 11b3d7e16e)
2025-08-13 14:16:57 +00:00
Travis Nielsen a2b819129f Merge pull request #16300 from rook/mergify/bp/release-1.18/pr-16289
external: user userID and userKey for rbd (backport #16289)
2025-08-12 22:01:25 -06:00
mergify[bot] 9acdb84b6f Merge pull request #16302 from rook/mergify/bp/release-1.18/pr-16295
csi: update csi-operator yaml to version v0.4.0 (backport #16295)
2025-08-13 03:57:05 +00:00
mergify[bot] 11cb14b2df Merge pull request #16301 from rook/mergify/bp/release-1.18/pr-16294
csi: update Kubernetes CSI-Addons sidecar to version 0.13.0 (backport #16294)
2025-08-12 17:55:21 +00:00
mergify[bot] 923f0e562a Merge pull request #16298 from rook/mergify/bp/release-1.18/pr-16288
csi: update cephfs user and key in secret (backport #16288)
2025-08-12 17:48:47 +00:00
subhamkrai 53cacf4edb csi: update csi-operator yaml to version v0.4.0
this yaml contains all the rbac, crds and csi-operator
deployment all-in-one.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 850ef60a31)
2025-08-12 17:33:53 +00:00
Niels de Vos a6da360d15 csi: update Kubernetes CSI-Addons sidecar to version 0.13.0
Signed-off-by: Niels de Vos <ndevos@ibm.com>
(cherry picked from commit 17d53ed16b)
2025-08-12 17:27:47 +00:00
Madhu Rajanna cc2df188de external: user userID and userKey for rbd
csi never used adminID and adminKey for the
rbd secrets, This currently looks to be a
bug where we are creating the secret with userID
and userKey but updating it with adminID and
adminKey, This commits update the script to
use userID and userKey for RBD secrets.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit db44ef3645)
2025-08-12 17:26:04 +00:00
Madhu Rajanna 788cf7b212 csi: update cephfs user and key in secret
cephCSI already deprecated the adminID and
adminKey keys in the secrets and to be backward
compatible it still supports the adminID and
adminKey but it logs the warning, updating the
secrets created by Rook to use userID and userKey
instead of adminID and adminKey.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit cb89f351ed)
2025-08-12 16:29:27 +00:00
mergify[bot] c698ab260b Merge pull request #16273 from rook/mergify/bp/release-1.18/pr-16269
csi: Create cephconnection CR with name of the cluster namespace (backport #16269)
2025-08-12 07:06:04 +00:00
mergify[bot] b5d64ea340 Merge pull request #16281 from rook/mergify/bp/release-1.18/pr-16075
rbd mirror peer key rotation (backport #16075)
2025-08-11 17:39:04 +00:00
Santosh Pillai 519ec6821c core: rotate rbd mirror peer key
rotate the client.rbd-mirror-peer key based on the cephxconfig.
Also update the cephxStatus in the cephcluster as well as the
mirrored cephblockpool.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit ee0b137d75)
2025-08-11 16:55:09 +00:00
mergify[bot] e920350ff9 Merge pull request #16279 from rook/mergify/bp/release-1.18/pr-16277
csi: use cluster namespace for cephConn (backport #16277)
2025-08-11 07:51:49 +00:00
Madhu Rajanna 41c4e24e35 csi: use cluster namespace for cephConn
CephConnection CR is created with the
kubernetes namespace name as its the
unique name in the entire cluster.
This PR removes unwanted input
parameters and adjust the namespace
name for the cephConnection CR.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 1ff3f07ac5)
2025-08-11 07:12:44 +00:00
Blaine Gardner 4c26697576 Merge pull request #16274 from rook/mergify/bp/release-1.18/pr-16227
core: rotate mirror daemon keys (backport #16227)
2025-08-08 10:23:15 -06:00
Santosh Pillai c78c66f7e6 core: rotate mirror daemon keys
rotate RBD mirror daemon keys, add secret resource version to the mirror
deployment and update the mirror resource status after the key is
rotated

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit d0fbf6c424)
2025-08-08 15:46:23 +00:00
Travis Nielsen dac320bc20 csi: create cephconnection cr with cluster namespace name
The cephconnection CR expects to be created with the name of
the namespace where the cephcluster CR is found, so the CSI
driver can find the cluster when provisioning the volume.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 134e27e353)
2025-08-08 15:08:11 +00:00
mergify[bot] 943ab71cfa Merge pull request #16265 from rook/mergify/bp/release-1.18/pr-16260
core: cleanup csi-related folders from /var/lib/rook during uninstall (backport #16260)
2025-08-07 18:41:04 +00:00
mergify[bot] f17e7e979e Merge pull request #16268 from rook/mergify/bp/release-1.18/pr-16249
mon: Failover mon immediately if node not exist (backport #16249)
2025-08-07 18:13:41 +00:00
mergify[bot] 1688d296d7 Merge pull request #16267 from rook/mergify/bp/release-1.18/pr-16069
object: mark realm as default to avoid zone creation (backport #16069)
2025-08-07 17:03:25 +00:00
Travis Nielsen 66b3e42e03 mon: failover mon immediately if node not exist
During mon failover, if a mon is assigned to a node
but the node does not exist, the mon should be failed
over immediately instead of waiting for a 10 or 20
minute timeout. If the node does not exist, the mon pod
will be in a pending state until the failover is finally
triggered, and no point in waiting that long if the
node is gone.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8b4d3b19cf)
2025-08-07 16:41:14 +00:00
Oded Viner 40a3f704a3 object: mark realm as default to avoid zone creation
add defaultRealm field to cephobjectstore to allow rook to mark the
created realm as default. this prevents ceph from auto-creating a
"default" zonegroup and zone when the default is not explicitly set.
affects only non-multisite setups.

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 182cd211ca)
2025-08-07 16:34:15 +00:00
Oded Viner 6b8e1b6dc9 core: cleanup csi-related folders from /var/lib/rook during uninstall
delete csi-related directories from /var/lib/rook that
match the suffix `.csi.ceph.com`.
these folders were used in earlier versions when rook managed
cephcsi directly. in later versions, logs and data are redirected
to /var/lib/cephcsi, but legacy paths may still exist and require
cleanup during uninstall.
this change improves cleanup completeness for odf 4.18 and earlier.

example of directories removed:
- /var/lib/rook/openshift-storage.cephfs.csi.ceph.com
- /var/lib/rook/openshift-storage.rbd.csi.ceph.com

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 87165cc6d1)
2025-08-07 16:24:19 +00:00
mergify[bot] fdaa1faae5 Merge pull request #16263 from rook/mergify/bp/release-1.18/pr-16244
csi: add CrossNamespaceVolumeDataSource feature gate (backport #16244)
2025-08-07 15:34:26 +00:00
mergify[bot] b30d288d7c Merge pull request #16261 from rook/mergify/bp/release-1.18/pr-16257
tests: Upgrade from 1.17 to master (backport #16257)
2025-08-07 15:29:17 +00:00
CL0Pinette d3285df792 csi: add CrossNamespaceVolumeDataSource feature gate
This enables configuring the CrossNamespaceVolumeDataSource feature gate

Signed-off-by: CL0Pinette <me@cl0pinette.fr>
(cherry picked from commit b63c222d17)
2025-08-07 15:01:30 +00:00
Travis Nielsen 7fac68eddf tests: upgrade from 1.17 to master
For the integration tests, now we start upgrading from v1.17.x
to the master branch, to test that the upgrades are stable
to what will become the 1.18 release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 86d30082ab)
2025-08-07 14:55:25 +00:00
mergify[bot] 9a34af63b6 Merge pull request #16256 from rook/mergify/bp/release-1.18/pr-16224
test: factor out util/admin package for setup of ceph admin client (backport #16224)
2025-08-06 17:56:40 +00:00
Travis Nielsen 46471358e0 Merge pull request #16250 from rook/mergify/bp/release-1.18/pr-16238
docs: Upgrade guide support from 1.17 to 1.18 (backport #16238)
2025-08-06 10:53:43 -06:00
Joshua Hoblitt 0e23655646 test: factor out util/admin package for setup of ceph admin client
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 36f1a3308f)
2025-08-06 16:52:18 +00:00
Travis Nielsen b92c49cdd9 docs: upgrade guide support from 1.17 to 1.18
With the pending 1.18 release, the upgrade guide now
documents considerations for the upgrade from
v1.17 to v1.18.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit ba30d383dc)
2025-08-05 16:05:36 -06:00
mergify[bot] 0394821b29 Merge pull request #16248 from rook/mergify/bp/release-1.18/pr-16239
ci: Update min k8s version to v1.29 (backport #16239)
2025-08-05 20:03:52 +00:00
Travis Nielsen db3287e796 ci: update min k8s version to v1.29
For Rook v1.18 the min supported version of K8s is
v1.29. With the pending release of K8s 1.34, this
will be the typical six most recent releases that
Rook tests against.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 3137244409)
2025-08-05 13:04:12 -06:00
mergify[bot] b96c3f996a Merge pull request #16247 from rook/mergify/bp/release-1.18/pr-16017
osd: validate node topology to prevent invalid crush map hierarchy (backport #16017)
2025-08-05 18:45:34 +00:00
Oded Viner 13faad2269 osd: validate node topology to prevent invalid crush map hierarchy
add a validation check to fail osd deployment when topology labels
like rack or chassis are duplicated across parent domains
(e.g., zones). this prevents invalid crush map hierarchies
(dfbugs-2610).

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 973f8a3a35)
2025-08-05 13:58:38 +00:00
mergify[bot] b3ad41b04b Merge pull request #16241 from rook/mergify/bp/release-1.18/pr-16104
core: set erasure-code-profile plugin based on pool algorithm (backport #16104)
2025-08-04 23:20:02 +00:00
Benoît Knecht 7b082939b8 core: only support isa and jerasure algorithms on ec pools
The `CephBlockPool` CR allowed any algorithm to be specified in
`spec.erasureCoded.algorithm`, but in practice only `isa` or `jerasure`
would work.

Make that restriction explicit by restricting this field to `isa` or
`jerasure` in the CRD.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 0b423a30f9)
2025-08-04 22:47:51 +00:00
Benoît Knecht f1c9de5b4c core: set erasure-code-profile plugin based on pool algorithm
When a `CephBlockPool` defines `spec.erasureCoded.algorithm`, use it as
the erasure-code-profile plugin.

Until now, that parameter would have been ignored completely, and every
erasure-coded pool would use the same plugin as the `default`
erasure-code-profile (i.e. `jerasure`).

Note that using any algorithm other than `jerasure` or `isa` is likely
to fail given the current implementation, as different algorithm require
different sets of parameters, and those cannot be supplied by the
user.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit d7f08693ed)
2025-08-04 22:47:51 +00:00
Travis Nielsen db3c5b6cdb Merge pull request #16235 from rook/mergify/bp/release-1.18/pr-16052
object: simplify CephObjectStoreUser deletion logic (backport #16052)
2025-08-04 15:58:10 -06:00
Travis Nielsen 5d26d2e63d Merge pull request #16236 from rook/mergify/bp/release-1.18/pr-16233
build(deps): bump snyk/actions from 28606799782bc8e809f4076e9f8293bc4212d05e to 77490d94e966421e076e95ad8fa87aa55e5ca409 (backport #16233)
2025-08-04 13:28:04 -06:00
dependabot[bot] 9ebef6a11b build(deps): bump snyk/actions
Bumps [snyk/actions](https://github.com/snyk/actions) from 28606799782bc8e809f4076e9f8293bc4212d05e to 77490d94e966421e076e95ad8fa87aa55e5ca409.
- [Release notes](https://github.com/snyk/actions/releases)
- [Commits](https://github.com/snyk/actions/compare/28606799782bc8e809f4076e9f8293bc4212d05e...77490d94e966421e076e95ad8fa87aa55e5ca409)

---
updated-dependencies:
- dependency-name: snyk/actions
  dependency-version: 77490d94e966421e076e95ad8fa87aa55e5ca409
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 8396b81abd)
2025-08-04 18:23:24 +00:00