Commit Graph
12392 Commits
Author SHA1 Message Date
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
Travis Nielsen 314498a977 Merge pull request #16120 from travisn/release-1.17.6
build: Update release version to v1.17.6
v1.17.6
2025-07-10 14:11:56 -06:00
Travis Nielsen cafb77ecc1 build: update release version to v1.17.6
For the patch release update the docs and examples to v1.17.6

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-07-10 11:53:27 -06:00
Travis Nielsen 8c8da870ce Merge pull request #16118 from rook/mergify/bp/release-1.17/pr-16041
build: merge helm indexes instead of recreating for every release (backport #16041)
2025-07-10 11:24:26 -06:00
mergify[bot] 5889aea80b Merge pull request #16117 from rook/mergify/bp/release-1.17/pr-16056
mon: Failover with host network must use different node (backport #16056)
2025-07-10 17:22:22 +00:00
mergify[bot] 5d7fb3b9bc Merge pull request #16116 from rook/mergify/bp/release-1.17/pr-15666
osd: fix cleanup job disk shredding (backport #15666)
2025-07-10 17:02:05 +00:00
Michael Adam 5ac9b03c18 build: merge helm indexes instead of recreating for every release (really)
A new helm repo index was created from scratch for every new release
    which meant that the release timestamps in the index were basically all
    identical.

    This change intends to fix that by merging the new index with the
    existing one

The first attempt to fix this (PR #16033) did not work properly.
This change is intended to fix the issue for good by closing the gap the
previuous PR has left.

    Fixes: #15604

Co-Authored-By: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 987e9c8bb5)
2025-07-10 16:55:33 +00:00
Travis Nielsen fe98e65d44 mon: failover with host network must use different node
When a mon is failed over, the old mon is left in mon quorum
until the new quorum is confirmed in quorum. When host networking
is enabled, this may result in two mons being in quorum with the
same ip, if the new mon is scheduled on the same node as the
down mon. This results in daemon crashes in the cluster since
they are confused by multiple of the same ip in the mon map.

The solution is to avoid scaling down the bad mon when host networking
is enabled. This will ensure the new mon is not scheduled on the
same node as the previous mon. With host networking, either another
node is necessary or the original mon must come back online to
restore quorum.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit aa61ddb57e)
2025-07-10 16:51:31 +00:00
Vilius Puškunalis cb48cd18e1 osd: fix cleanup job disk shredding
Fixes quick disk shredding by using dd to shred data at additional offsets where ceph metadata is duplicated. For full shred, the shred utility remains in use.

Signed-off-by: Vilius Puškunalis <47086537+puskunalis@users.noreply.github.com>
(cherry picked from commit 27010f96f3)
2025-07-10 16:30:13 +00:00
mergify[bot] 9165a20a55 Merge pull request #16107 from rook/mergify/bp/release-1.17/pr-16105
operator: add missing udev env to discover pod (backport #16105)
2025-07-08 15:10:31 +00:00
subhamkrai 274caf435f operator: add missing udev env to discover pod
currently, we're setting the env `DISCOVER_DAEMON_UDEV_BLACKLIST`
in operator.yaml but we're not reading from the operator env and
setting the value to discover pod env.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 2742a707cc)
2025-07-08 14:27:48 +00:00
mergify[bot] f24ceb9a48 Merge pull request #16100 from rook/mergify/bp/release-1.17/pr-15846
mon: allow running mon pods as root (backport #15846)
2025-07-07 22:50:31 +00:00
Patryk Rostkowski 9632438413 mon: allow running mon pods as root
This change addresses a permission issue where mon pods crashloop
on some Kubernetes setups with SELinux enabled, even when
ROOK_HOSTPATH_REQUIRES_PRIVILEGED is set.

To resolve this, a new function makeMonSecurityContext() was introduced
to explicitly set runAsUser: 0 at the pod level for mon pods
when the environment variable ROOK_CEPH_MON_RUN_AS_ROOT is set to true.

Additionally, the function previously named PodSecurityContext() was renamed
to DefaultContainerSecurityContext() to avoid confusion between
container-level and pod-level security context configuration. All container
SecurityContext usages across Ceph daemons were updated to reflect this change.

This ensures the root user configuration is applied
automatically and consistently in environments where it is required
for mon pod startup, while preserving clear separation of container
and pod-level security logic.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
(cherry picked from commit 7f3e6bd7fa)
2025-07-07 16:17:14 -06:00
subham rai b1a7d6644f Merge pull request #16084 from rook/mergify/bp/release-1.17/pr-16078
core: CephObjectRealm controller generated generated AccessKey invalid chars (backport #16078)
2025-07-03 21:12:00 +05:30
raaizik 016db5500b core: fix CephObjectRealm controller generated generated AccessKey invalid chars
Suggested fix for issue https://github.com/rook/rook/issues/16072
Adds key type differentiation to exclude invalid characters from AccessKey

Signed-off-by: raaizik <132667934+raaizik@users.noreply.github.com>
(cherry picked from commit 1b3f36ff5c)
2025-07-02 15:05:38 +00:00
Travis Nielsen 4e17072b2c Merge pull request #16066 from rook/mergify/bp/release-1.17/pr-16061
csi: Provide a flag to skip csi user creation (backport #16061)
2025-06-27 15:41:32 -06:00
Madhu Rajanna 47e9442638 csi: provide a flag to manage csi users
Added a flag in cephcluster CR CSI section
whether the user wants the Rook to manage
the csi users and secrets or create them on own.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 5094b1f5e6)
2025-06-27 20:59:57 +00:00
Travis Nielsen c126e2d66e Merge pull request #16065 from rook/mergify/bp/release-1.17/pr-16059
ceph: Provide an option to specify the secretName in the cephClient CR (backport #16059)
2025-06-27 14:58:23 -06:00
Madhu Rajanna 9f28101cc3 core: update secret handling for cephclient
If RemoveSecret is set remove the secret.
if not set, do below
check if the current cephClient is owner if
secret is present, if not return as its owned
by other controller, if its not present create
or update the secret.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d37297475e)
2025-06-27 20:27:00 +00:00
Madhu Rajanna 0e992a9e3f core: provide option to specify secret name
When cephClient CR is created by User, the Rook
is creating an User and creating an secret with
its own predefined name + CR name, With this we
are allowing user to specify the secretName

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d6d2e604fc)
2025-06-27 20:26:59 +00:00
Travis Nielsen 6f833fc107 Merge pull request #16051 from rook/mergify/bp/release-1.17/pr-16050
csi: update csi version to 3.14.1 (backport #16050)
2025-06-25 07:29:22 -06:00
Travis Nielsen b9e7449a05 Merge pull request #16053 from rook/mergify/bp/release-1.17/pr-16025
exporter: Add Hostnetwork bool to ceph-exporter (backport #16025)
2025-06-25 07:29:03 -06:00
Muhammad Adil Ghaffar 2c89453f44 exporter: add hostnetwork bool to cephexporter
Signed-off-by: Muhammad Adil Ghaffar <muhammad.adil.ghaffar@est.tech>
(cherry picked from commit 5ea7a177b7)
2025-06-24 20:50:19 +00:00
Madhu Rajanna 2a6e00d501 csi: update csi version to 3.14.1
Updating the cephcsi version to v3.14.1
release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit aa8fd61986)
2025-06-24 16:40:30 +00:00
mergify[bot] 692e2fa1f8 Merge pull request #16046 from rook/mergify/bp/release-1.17/pr-16038
object: allow deletion of CephObjectStoreUser even if secret is missing (backport #16038)
2025-06-23 17:34:58 +00:00
Oded Viner 02323205b8 object: allow deletion of CephObjectStoreUser even if secret is missing
skip key generation during reconcile if CephObjectStoreUser is
being deleted to allow cleanup when referenced secret is missing

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 8249a28145)
2025-06-23 16:52:01 +00:00
Travis Nielsen f8e4513438 Merge pull request #16034 from obnoxxx/release-1.17-prepare-v1.17.5
build: update the release version to v1.17.5
v1.17.5
2025-06-19 15:12:24 -06:00
Michael Adam 596a7086a8 build: update the release version to v1.17.5
For the patch release update the docs and examples
to v1.17.5

Signed-off-by: Michael Adam <obnox@samba.org>
2025-06-19 14:56:42 -06:00
Travis Nielsen c580b6aa28 Merge pull request #16036 from rook/mergify/bp/release-1.17/pr-16033
build: merge helm indexes instead of recreating for every release (backport #16033)
2025-06-19 14:49:19 -06:00
Michael Adam 1dcbf5d6d7 build: merge helm indexes instead of recreating for every release
A new helm repo index was created from scratch for every new release
which meant that the release timestamps in the index were basically all
identical.

This change intends to fix that by merging the new index with the
existing one

Fixes: #15604

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 2704f23ea7)
2025-06-19 20:32:33 +00:00