Commit Graph
12421 Commits
Author SHA1 Message Date
Travis Nielsen 9460407df4 Merge pull request #16316 from rook/mergify/bp/release-1.17/pr-16312
docs: minor syntax fixes for CephCluster CRD documentation (backport #16312)
2025-08-14 09:07:20 -06:00
Jack Henschel 2f7cdb2e71 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:44 +00:00
Travis Nielsen f37ebcd0cd Merge pull request #16262 from rook/mergify/bp/release-1.17/pr-16244
csi: add CrossNamespaceVolumeDataSource feature gate (backport #16244)
2025-08-07 12:25:01 -06:00
Travis Nielsen 02315a8783 Merge pull request #16264 from rook/mergify/bp/release-1.17/pr-16260
core: cleanup csi-related folders from /var/lib/rook during uninstall (backport #16260)
2025-08-07 12:24:32 -06:00
mergify[bot] 62eb4e6c2a Merge pull request #16266 from rook/mergify/bp/release-1.17/pr-16069
object: mark realm as default to avoid zone creation (backport #16069)
2025-08-07 17:07:14 +00:00
Oded Viner 572f4ead49 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:10 +00:00
Oded Viner 2bd3ec1afb 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:10 +00:00
CL0Pinette 0a5b692342 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:25 +00:00
mergify[bot] 43e80d741a Merge pull request #16240 from rook/mergify/bp/release-1.17/pr-16104
core: set erasure-code-profile plugin based on pool algorithm (backport #16104)
2025-08-04 23:19:10 +00:00
Benoît Knecht 7de58d6648 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:50 +00:00
Benoît Knecht 18e119dc38 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:49 +00:00
mergify[bot] d5dee7d378 Merge pull request #16234 from rook/mergify/bp/release-1.17/pr-16052
object: simplify CephObjectStoreUser deletion logic (backport #16052)
2025-08-04 18:46:49 +00:00
Joshua Hoblitt d698edfb6f object: simplify CephObjectStoreUser deletion logic
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 1163133aec)
2025-08-04 18:15:21 +00:00
mergify[bot] 1508d6e716 Merge pull request #16221 from rook/mergify/bp/release-1.17/pr-16220
object: fix bucket policy in sync detection (backport #16220)
2025-08-01 19:58:19 +00:00
Joshua Hoblitt 15e9669c18 object: fix bucket policy in sync detection
A typo was causing the operator to attempt to sync bucket policy when
the state was already in sync. This resulted in the operator carrying
out unnecessary work and logging activity with no user visible change
resulting.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit fbc60608ed)
2025-08-01 19:27:08 +00:00
mergify[bot] 6c8694134a Merge pull request #16213 from rook/mergify/bp/release-1.17/pr-16201
core: improve cleanup of /var/lib/rook during cluster teardown (backport #16201)
2025-08-01 13:41:10 +00:00
Travis Nielsen ee2fc3ff20 Merge pull request #16212 from obnoxxx/release-1.17-prepare-v1.17.7
build: update release version to v1.17.7
v1.17.7
2025-07-31 12:19:14 -06:00
Oded Viner 8abce40d7d core: improve cleanup of /var/lib/rook during cluster teardown
extend StartHostPathCleanup to remove additional directories
under /var/lib/rook

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 5992415b36)
2025-07-31 17:36:11 +00:00
Michael Adam 3a4de162c4 build: update release version to v1.17.7
For the patch release update the docs and examples to v1.17.7

Signed-off-by: Michael Adam <obnox@samba.org>
2025-07-31 19:24:24 +02:00
mergify[bot] d1bccca9b0 Merge pull request #16207 from rook/mergify/bp/release-1.17/pr-16109
osd: Exclude labels with a value of null from the topology string (backport #16109)
2025-07-30 23:13:52 +00:00
chentao.2022 4f2c92a6c8 osd: exclude labels with a value of null from the topology string
Avoid the OSD startup failing to parse crush_location when
the topology label is empty.

Signed-off-by: chentao.2022 <chentao.2022@bytedance.com>
(cherry picked from commit 62631d2614)
2025-07-30 22:41:33 +00:00
Travis Nielsen b1c6a59f3b Merge pull request #16204 from rook/mergify/bp/release-1.17/pr-16203
rgw: Increase timeout for admin user creation (backport #16203)
2025-07-30 16:29:31 -06:00
mergify[bot] 1e33241145 Merge pull request #16193 from rook/mergify/bp/release-1.17/pr-16186
core: Update ceph version to v19.2.3 (backport #16186)
2025-07-30 22:19:48 +00:00
Travis Nielsen 5b2fd88a4d tests: skip bucket lifecycle policy removal test
In ceph v19.2.3 bucket lifecycle policy removal appears to
be broken, so skip this test for now.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit db2e547779)
2025-07-30 15:48:22 -06:00
Travis Nielsen a08cd25a9b rgw: increase timeout for admin user creation
Creating the rgw admin user is taking on the order of two
minutes instead of the expected seconds, thus the command
was timing out and cause the object store user creation
to fail. The increased timeout allows the admin user creation
to complete, and other users to be created as well.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 79a7a3c01f)
2025-07-30 21:39:16 +00:00
Blaine Gardner 372c474e4a Merge pull request #16191 from rook/mergify/bp/release-1.17/pr-16150
core: log panics in controller reconcile functions (backport #16150)
2025-07-30 14:23:16 -06:00
Travis Nielsen 2d970de83e core: update ceph version to v19.2.3
With the new squid patch release, update the base
image, the docs, and the examples to all use the latest
stable Ceph release v19.2.3.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 66a006b99c)

# Conflicts:
#	tests/manifests/test-cluster-on-pvc-encrypted.yaml
2025-07-29 19:28:03 +00:00
Oded Viner ee0bae1a6c core: log panics in controller reconcile functions
add RecoverAndLogException() helper to log panics with stack trace.
added defer call in all rook controller Reconcile() methods for
better error visibility in operator logs

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit cf13deee6f)
2025-07-29 16:00:49 +00:00
Blaine Gardner af05d4b16f Merge pull request #16187 from rook/mergify/bp/release-1.17/pr-16146
mds: use bash for executing liveness probe script (backport #16146)
2025-07-28 16:28:28 -06:00
José Martínez 7e3f4dd4e7 mds: use bash for executing liveness probe script
This script includes bash features and will fail if sh is not a symlink to bash.

Signed-off-by: José Martínez <xose@google.com>
(cherry picked from commit e421623fd0)
2025-07-28 21:04:03 +00:00
mergify[bot] bdfa450e96 Merge pull request #16180 from rook/mergify/bp/release-1.17/pr-16123
helm: Correct example discover daemon resources (backport #16123)
2025-07-25 21:00:37 +00:00
Steve Wills d65a7a2365 helm: correct example resources
Correct example for adding resources to discover daemon pods

Signed-off-by: Steve Wills <steve@mouf.net>
(cherry picked from commit 0cc6aedd69)
2025-07-25 20:29:54 +00:00
mergify[bot] 79cf6c2423 Merge pull request #16165 from rook/mergify/bp/release-1.17/pr-16157
csi: update ceph-csi to 3.14.2 (backport #16157)
2025-07-22 20:51:39 +00:00
Madhu Rajanna 0c48f8ed41 csi: update ceph-csi to 3.14.2
Updating the ceph-csi image to 3.14.2
release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 052fe4a9af)
2025-07-22 20:22:33 +00:00
Blaine Gardner 82f95e2dbf Merge pull request #16160 from rook/mergify/bp/release-1.17/pr-16153
Update SecurityContextConstraints for rook-ceph helm chart (backport #16153)
2025-07-21 11:58:48 -06:00
Mason a29b12469d helm: update rook-ceph SecurityContextConstraints to match operator-openshift.yaml example
The rook-ceph SecurityContextConstraints in the rook-ceph helm chart does not include all the users necessary for a successful deployment. Specifically, rook-ceph-default, rook-ceph-mgr, rook-ceph-osd, and rook-ceph-rgw are listed in the operator-openshift.yaml example file (https://github.com/rook/rook/blob/master/deploy/examples/operator-openshift.yaml) but are not included in the helm chart. This commit adds these users.

Signed-off-by: Mason Buchanan <masonwb@gmail.com>
(cherry picked from commit a030d2ceb3)
2025-07-21 17:37:34 +00:00
mergify[bot] 6ced439790 Merge pull request #16148 from rook/mergify/bp/release-1.17/pr-16133
multus: support copy file to cmd-proxy container for rgw zone set (backport #16133)
2025-07-16 20:59:52 +00:00
mergify[bot] 9ae4d70900 Merge pull request #16147 from rook/mergify/bp/release-1.17/pr-16144
core: fix nil pointer panic when startupProbe is set in cephfilesystem (backport #16144)
2025-07-16 16:33:48 +00:00
Artem Torubarov 60231a442d multus: support copy file to cmd-proxy container for rgw zone set commands
Signed-off-by: Artem Torubarov <artem.torubarov@sap.com>
(cherry picked from commit c88e6ea952)
2025-07-16 16:29:51 +00:00
Oded Viner 0f395e7851 core: fix nil pointer panic when startupProbe is set in cephfilesystem
fixes a nil pointer dereference in GetProbeWithDefaults when
startupProbe is set in cephfilesystem and currentProbe is nil.
adds panic recovery in cephfilesystem reconcile loop to improve
error visibility and avoid silent reconcile restarts.

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 51e9ddc3f5)
2025-07-16 16:04:42 +00:00
Travis Nielsen dce2a6c321 Merge pull request #16145 from rook/mergify/bp/release-1.17/pr-16140
core: Update go modules to latest except for go 1.24 (backport #16140)
2025-07-16 09:04:49 -06:00
Travis Nielsen 0c934f247c core: update go modules to latest except for go 1.24
Update all the go modules to the latest, except for the modules
that require go 1.24. Those modules will be updated in a
follow-up change.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 24b0b866ab)
2025-07-16 08:16:24 -06:00
mergify[bot] 6091e7a6c9 Merge pull request #16139 from rook/mergify/bp/release-1.17/pr-16135
helm(rook-ceph-cluster): add HTTPRoute for dashboard and objectstore (backport #16135)
2025-07-15 20:02:07 +00:00
synthe102 13b3f3e219 helm(rook-ceph-cluster): add HTTPRoute for dashboard and objectstore
Signed-off-by: synthe102 <leonard@suslian.engineer>
(cherry picked from commit 25a7a910b5)
2025-07-15 13:32:12 -06:00
Travis Nielsen 1462eac4bd Merge pull request #16138 from rook/mergify/bp/release-1.17/pr-16087
osd: treat non existing OSD nodes as drained (backport #16087)
2025-07-15 10:58:51 -06:00
Elias Carter ab9475220c osd: treat non existing OSD nodes as drained
If the node for an OSD does not exist within kubernetes, the PDB
reconciliation logic will fail to make progress. This can be problematic
as new OSDs added to the cluster may not be protected by OSD PDBs after
they are added since the PDB reconcilation logic is failing.

The solution is to treat non existing OSD nodes as drained which is
logically consistent with treating unschedulable OSD nodes as drained as
you cannot schedule a pod onto a node which does not exist.

Fixes: #16086

Signed-off-by: Elias Carter <elias@dropbox.com>
(cherry picked from commit 5f2d6c01d7)
2025-07-15 16:18:44 +00:00
mergify[bot] c7f02858af Merge pull request #16137 from rook/mergify/bp/release-1.17/pr-16129
test: add pathType with ingress dashboard host (backport #16129)
2025-07-15 16:07:45 +00:00
subhamkrai 6609031df8 test: add pathType with ingress dashboard host
Recentally, helm related ci started failing due to
```
testutil: failed to install chart. result=. walk.go:75: found symbolic link in path: /home/runner/work/rook/rook/deploy/charts/rook-ceph-cluster/charts/library resolves to /home/runner/work/rook/rook/deploy/charts/library. Contents of linked file included and used
I0714 09:44:18.963620   18291 warnings.go:110] "Warning: path /ceph-dashboard(/|$)(.*) cannot be used with pathType Prefix"
Error: INSTALLATION FAILED: 1 error occurred:
	* admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: ingress contains invalid paths: path /ceph-dashboard(/|$)(.*) cannot be used with pathType Prefix, err=failed to run helm command on args [install --create-namespace rook-ceph-cluster /home/runner/work/rook/rook/deploy/charts/rook-ceph-cluster --namespace helm-ns -f values-test.yaml] : . walk.go:75: found symbolic link in path: /home/runner/work/rook/rook/deploy/charts/rook-ceph-cluster/charts/library resolves to /home/runner/work/rook/rook/deploy/charts/library. Contents of linked file included and used
I0714 09:44:18.963620   18291 warnings.go:110] "Warning: path /ceph-dashboard(/|$)(.*) cannot be used with pathType Prefix"
Error: INSTALLATION FAILED: 1 error occurred:
```
as default `pathType` is `Prefix`, we need to change it to
`pathType:ImplementationSpecific`.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 8bd4b38399)
2025-07-15 15:40:16 +00:00
Travis Nielsen 9a765a57ba Merge pull request #16136 from rook/mergify/bp/release-1.17/pr-16079
docs: have a StorageClass consume SubVolumeGroup (backport #16079)
2025-07-15 08:30:11 -06:00
raaizik 87609f630f docs: have a StorageClass consume SubVolumeGroup
Adds guide for how to create a storage class that consumes a SubVolumeGroup

Signed-off-by: raaizik <132667934+raaizik@users.noreply.github.com>
Co-Authored-By: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e46de55a90)
2025-07-15 14:09:26 +00:00