Commit Graph
12364 Commits
Author SHA1 Message Date
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
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
Travis Nielsen 4b4d280900 Merge pull request #16028 from rook/mergify/bp/release-1.17/pr-16027
docs: clarify Ceph version support phrasing in upgrade docs (backport #16027)
2025-06-18 12:28:58 -06:00
Deepika Upadhyay 4e304113d1 docs: clarify Ceph version support phrasing in release notes
Signed-off-by: Deepika Upadhyay <deepika.upadhyay@clyso.com>
(cherry picked from commit 984ae7a0f3)
2025-06-18 17:56:46 +00:00
mergify[bot] 7dba3622b8 Merge pull request #16022 from rook/mergify/bp/release-1.17/pr-16009
rbd: blocklist rns image watchers (backport #16009)
2025-06-17 18:13:44 +00:00
Santosh Pillai c1f54b1c4a pool: blocklist rns image watchers
When force-deletion annotation is added to CephRadosNamespace CR, then
blocklist any watchers on the Namespace images in order to remove the
image from the trash

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 98475e847e)
2025-06-17 11:42:43 -06:00
Travis Nielsen d0173785a1 Merge pull request #16021 from rook/mergify/bp/release-1.17/pr-16016
helm: improve the cluster deployment guide (backport #16016)
2025-06-17 09:50:40 -06:00
Michael Adam 3fdda91af1 helm: improve the cluster deployment guide
This improves the guide for deploying ceph clusters with helm
from development builds.

The missing piece was deploying the operator chart before the cluster
chart. The operator chart is needed as it installs the CRDs

Signed-off-by: Michael Adam <obnox@samba.org>
Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1908218f3d)
2025-06-17 15:02:21 +00:00
subham rai 81b4b3850c Merge pull request #16019 from rook/mergify/bp/release-1.17/pr-16013
namespace: Report empty condition for rados namespace (backport #16013)
2025-06-17 12:26:40 +05:30
Travis Nielsen 47eb07305d namespace: report empty condition for rados namespace
The rados namespace status was not reporting if the namespace
was empty. Now the condition will be properly updated if
it is empty.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b47f297608)
2025-06-17 04:31:58 +00:00
Travis Nielsen 0d104f629e Merge pull request #16018 from rook/mergify/bp/release-1.17/pr-16014
docs: fix invalid document links (backport #16014)
2025-06-16 11:50:33 -06:00
Liang Zheng 8bad355367 docs: fix invalid document links
Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
(cherry picked from commit eca3c1a1c0)
2025-06-16 16:17:33 +00:00
Travis Nielsen eab89c0b85 Merge pull request #16012 from rook/mergify/bp/release-1.17/pr-16005
osd: update the table of allowed configutations (backport #16005)
2025-06-13 09:36:31 -06:00
Satoru Takeuchi e65cbf23d8 osd: update the table of allowed configutations
OSD on crypt device in host-based cluster is not allowed.

ref.
https://github.com/rook/rook/issues/15861

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 0b77d4671a)
2025-06-13 15:19:33 +00:00
subham rai 512e4deb84 Merge pull request #16006 from rook/mergify/bp/release-1.17/pr-15972
osd: wipe encryted osd disk from other cluster (backport #15972)
2025-06-12 17:08:01 +05:30
Santosh Pillai 47d0e98e53 osd: wipe encryted osd disk from other cluster
During the OSD preparation step, if the encrypted OSD disk belongs to a
different cluster, then clean the disk if `wipeDeviceFromOtherClusters`
is set to true.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 71bcdb533e)
2025-06-12 03:44:33 +00:00
mergify[bot] 993ae032a8 Merge pull request #16001 from rook/mergify/bp/release-1.17/pr-15951
pool: support targetSizeRatio=0 and default compressionMode="" (backport #15951)
2025-06-11 15:42:16 +00:00
subham rai ed57ab6388 Merge pull request #15998 from rook/mergify/bp/release-1.17/pr-15996
core: fix radosnamespace log message (backport #15996)
2025-06-11 20:53:58 +05:30
Oded Viner a337dd41f5 pool: support targetSizeRatio=0 and default compressionMode=""
allow targetSizeRatio == 0
enforce targetSizeRatio >= 0 via +kubebuilder:validation
set targetSizeRatio and compressionMode="" if unset
remove IsTargetRatioEnabled() and IsCompressionEnabled()

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit dd65dc15d8)
2025-06-11 13:37:07 +00:00
Oded Viner 16b8bfb123 core: fix radosnamespace log message
change logger.info to logger.infof to correctly print
radosnamespace name and namespace

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 41d6baf0e1)
2025-06-11 12:09:16 +00:00
Travis Nielsen 7fc3e28496 Merge pull request #15991 from rook/mergify/bp/release-1.17/pr-15989
rbdmirror: fix the nil point error check during status updates (backport #15989)
2025-06-10 10:41:31 -06:00
parth-gr 15de5a9ae5 rbdmirror: fix the nil point error check during status updates
the status  was still reading from the nil state,
updated the code to dont read from  nil object

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 0b4f89873c)
2025-06-10 16:18:06 +00:00
mergify[bot] 2c89143992 Merge pull request #15982 from rook/mergify/bp/release-1.17/pr-15979
helm(rook-ceph-cluster): use nested if clauses in prometheusrule template (backport #15979)
2025-06-09 22:41:17 +00:00
Artyom Babiy e89a7d7878 helm(rook-ceph-cluster): use nested if clauses in prometheusrule template
This change returns the use of nested if clauses
instead of `and` function shortcut to avoid errors
in older helm versions.

Signed-off-by: Artyom Babiy <artyom.babiy@gmail.com>
(cherry picked from commit 1f183bd675)
2025-06-09 22:13:30 +00:00
mergify[bot] df976c01e6 Merge pull request #15976 from rook/mergify/bp/release-1.17/pr-15928
helm(rook-ceph-cluster): allow prometheusrule edits (backport #15928)
2025-06-09 20:59:30 +00:00
Artyom Babiy 080afce039 helm(rook-ceph-cluster): allow prometheusrule edits
This change allows the chart consumer to optionally
edit PrometheusRule CR by either disabling individual
alerts or tweaking their configuration.

Signed-off-by: Artyom Babiy <artyom.babiy@gmail.com>
(cherry picked from commit 6468255191)
2025-06-09 20:32:10 +00:00
Travis Nielsen 8318d3456c Merge pull request #15977 from rook/mergify/bp/release-1.17/pr-15952
ci: use latest helm version  (backport #15952)
2025-06-09 14:19:29 -06:00
Michael Adam 80682514d8 helm: use the latest version
update the helm version used to the latest (v3.18.2)

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 7c05f532ce)
2025-06-09 19:47:09 +00:00
Travis Nielsen f5a17f4474 Merge pull request #15975 from rook/mergify/bp/release-1.17/pr-15974
doc: fixup bullet points on rgw docs (backport #15974)
2025-06-09 11:14:21 -06:00
Elias Carter a814f0740e doc: fixup bullet points on rgw docs
In #15961 I updated the rgw docs, but I was looking at the published
docs and the bulleting is broken now for Gateway Settings. When I was
working on the PR I was just using the markdown preview in my editor and
wan't using the `docs-preview` target. It turns out that the markdown
editor and mkdocs render things differently.

This PR fixes the bullet formatting and I verified the fix by running
`make docs-preview` on my box and double checking the local website.

Signed-off-by: Elias Carter <elias@dropbox.com>
(cherry picked from commit 5a292f1b52)
2025-06-09 17:02:40 +00:00