Commit Graph
12833 Commits
Author SHA1 Message Date
Travis Nielsen 2cf9cbc4d3 Merge pull request #16684 from rook/mergify/bp/release-1.18/pr-16659
docs: Example of application migration between clusters (backport #16659)
2025-11-06 15:28:42 -07:00
Travis Nielsen 03d610a20a docs: example of application migration with dynamic pv
Document how to migrate an application with a dynamic
PV rather than a static PV, since static PVs have limitations
such as not supporting snapshots and clones.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4cd6416dab)
2025-11-06 22:21:51 +00:00
Travis Nielsen fc37e939e3 docs: example of application migration between clusters
Applications can be migrated between clusters that are
connecting to the same external Ceph cluster.
This is done with a static PV that can be mounted
by the application across the clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit dba69aab0a)
2025-11-06 22:21:50 +00:00
Travis Nielsen 62ab01bbb3 Merge pull request #16683 from rook/mergify/bp/release-1.18/pr-16681
doc: Fix typos and yaml formatting (backport #16681)
2025-11-06 12:04:26 -07:00
Richard Goodman 48346c5b1a doc: fix typos and yaml formatting
Noticed two small typos when reading the documentation on object stores.
I also noticed that the lack of a whitespace in the creating a user
example affects the syntax highlighting.

Signed-off-by: Richard Goodman <richardg@brandwatch.com>
(cherry picked from commit f833c549bb)
2025-11-06 18:32:43 +00:00
Travis Nielsen 036df68691 Merge pull request #16682 from rook/mergify/bp/release-1.18/pr-16617
mgr: add hostNetwork field to Manager spec (backport #16617)
2025-11-06 10:14:06 -07:00
Sunnatillo 638cc3a503 mgr: add hostNetwork field to Manager spec
Add optinal hostnetwork field for Ceph Mgr to control whether the
mgr pods to run in host network. If unset, this defaults to
cluster level Network.HostNetwork value. This particulary useful
when user wants to restrict ceph mgr pod from exposing metrics
port in all host interfaces.

Signed-off-by: Sunnatillo <sunnat.samadov@est.tech>
(cherry picked from commit b9a4685f65)
2025-11-06 16:29:17 +00:00
subham rai 8269cf60ae Merge pull request #16676 from rook/mergify/bp/release-1.18/pr-16673
doc: add csi operator creation step for external mode (backport #16673)
2025-11-05 21:36:25 +05:30
parth-gr da93518b51 doc: add csi operator creation step for external mode
Rook has started using csi operator by default,
so with every new rook external mode install,
we need to use create the csi operator

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

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 31d410822d)
2025-11-05 15:54:01 +00:00
subham rai cf87154791 Merge pull request #16671 from rook/mergify/bp/release-1.18/pr-16655
osd: add CephCluster.spec.storage.OSDMaxUpdatesInParallel (backport #16655)
2025-11-05 19:55:46 +05:30
Joshua Hoblitt 2af3a1584a osd: add CephCluster.spec.storage.OSDMaxUpdatesInParallel
Configures the maximum number of OSDs to update in parallel.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 43f26534ed)
2025-11-04 17:37:04 +00:00
Blaine Gardner 68a22d0e37 Merge pull request #16666 from rook/mergify/bp/release-1.18/pr-16665
doc: update broken link in NFS docs (backport #16665)
2025-11-03 09:20:35 -07:00
Blaine Gardner 501f8cbf7f doc: update broken link in NFS docs
Update a broken link due to the Kubernetes in-tree NFS driver being
archived/deprecated. Update the link to refer to the latest NFS CSI
driver.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 55a4c63d31)
2025-11-03 16:02:37 +00:00
Travis Nielsen f36a5039dd Merge pull request #16654 from obnoxxx/prep-v1.18.6
build: set release version to v1.18.6
v1.18.6
2025-10-28 08:06:00 -07:00
Michael Adam caaa367116 build: set release version to v1.18.6
For the patch release update the docs and examples to
v1.18.6

Signed-off-by: Michael Adam <obnox@samba.org>
2025-10-28 15:31:51 +01:00
Travis Nielsen 48a94f8978 Merge pull request #16643 from rook/mergify/bp/release-1.18/pr-16642
docs: fix storageclass ec link (backport #16642)
2025-10-28 07:30:53 -07:00
Travis Nielsen 320913cdbc Merge pull request #16644 from rook/mergify/bp/release-1.18/pr-16640
ci: add kustomize to helm.lint (backport #16640)
2025-10-28 06:55:15 -07:00
Daniel Höxtermann b0c1b2df8c ci: add kustomize to helm.lint
This catches duplicate keys in maps.

Signed-off-by: Daniel Höxtermann <daniel@hxtm.dev>
(cherry picked from commit 5ffd43e539)
2025-10-24 15:34:43 +00:00
Mathieu Parent cd185e92d5 docs: fix storageclass ec link
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
(cherry picked from commit d9109fb3b9)
2025-10-24 15:12:39 +00:00
Travis Nielsen 5b5c1aa464 Merge pull request #16638 from rook/mergify/bp/release-1.18/pr-16637
helm: remove duplicate YAML map entries (backport #16637)
2025-10-23 16:04:33 -06:00
Daniel Höxtermann ca6a2cbff0 helm: remove duplicate YAML map entries
The removed map entries are already provided by the include.

Signed-off-by: Daniel Höxtermann <daniel@hxtm.dev>
(cherry picked from commit b1c58eb175)
2025-10-23 21:21:10 +00:00
Travis Nielsen c0567f400c Merge pull request #16635 from obnoxxx/release-1.18-prep-v1.18.5
build: set release version to v1.18.5
v1.18.5
2025-10-23 12:01:33 -06:00
Michael Adam e92e20bd94 build: set release version to v1.18.5
For the patch release update the docs and examples to
v1.18.5

Signed-off-by: Michael Adam <obnox@samba.org>
2025-10-23 18:55:48 +02:00
Travis Nielsen 588b6d14c4 Merge pull request #16632 from rook/mergify/bp/release-1.18/pr-16619
mon: wait for the canary pods to be terminated (backport #16619)
2025-10-23 10:54:43 -06:00
Santosh Pillai 4a1b6ca3d6 mon: wait for the canary pods to be terminated
Wait for the mon-canary pods to be terminated before starting the actual
mons. When topology spread constraints are added to evenly spread the
mons, then pod-anti affinity does not allow mons to be created on the
same node where other mons are running, this also includes the
mon-canary pods. We delete the mon-canary pods and then start the actual
mon pods. Sometimes the termination of the canary pods might take more
time, so schedular won't schedular mon pods on that node.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 3137a857df)
2025-10-23 16:39:16 +00:00
Travis Nielsen 74fb409c5c Merge pull request #16631 from rook/mergify/bp/release-1.18/pr-16614
osd: Set osd resources for specific device class (backport #16614)
2025-10-23 10:38:52 -06:00
Travis Nielsen f834612c85 osd: set osd resources for specific device class
The OSDs may require different resources based on their device
class. The overall osd resources were only being used, rather
than properly looking up the specific device class resources.
Now the expected resources will take affect per device class.

Co-authored-by: Matthias Osthues <osthues.matthias@gmail.com>
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d3c0bacd88)
2025-10-23 15:55:38 +00:00
Travis Nielsen 95ef325c6e Merge pull request #16630 from rook/mergify/bp/release-1.18/pr-16629
mon: Trap the sigterm to respond quickly to the mon canary pod deletion (backport #16629)
2025-10-23 09:53:13 -06:00
Travis Nielsen 6f799052eb mon: trap the sigterm in the mon canary
The mon canary should quickly shut down after the pod is
deleted, since it has no purpose to continue running.
Since the sleep does not catch the SIGTERM as pid 1,
use a bash trap to exit quickly.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 48b70500fa)
2025-10-23 05:49:20 +00:00
Travis Nielsen e239749916 Merge pull request #16621 from rook/mergify/bp/release-1.18/pr-16618
mgr: add required k8s label for endpointSlice (backport #16618)
2025-10-21 08:54:40 -06:00
subhamkrai 0fc9c0d5a7 mgr: add required k8s label for endpointSlice
k8s requires the endpointSlice must have label
`kubernetes.io/service-name` to be associated with
service. Without this label, the k8s service controller
can't link the EndpointSlice to the service.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 7004213f92)
2025-10-17 16:16:10 +00:00
subham rai 0beaa1654a Merge pull request #16612 from rook/mergify/bp/release-1.18/pr-16588
docs: discourage freezing default values in user values.yaml (backport #16588)
2025-10-17 16:52:11 +05:30
subham rai e7fc5e59a8 Merge pull request #16611 from rook/mergify/bp/release-1.18/pr-16609
pool: Skip setting the target size ratio to 0 by default (backport #16609)
2025-10-17 16:51:27 +05:30
raaizik 1eb1685db2 docs: discourage freezing default values in user values.yaml (fix #16523)
Users sometimes copy‑paste the entire default `values.yaml` into their own configs, which “freezes” all defaults
and prevents them from inheriting new defaults in future chart versions.

This change enhances the Helm chart documentation to emphasize that:
- Only *overridden* fields should be declared by users.
- Avoid duplicating all default values.
- Leaving fields unset allows users to benefit from upstream default updates.

These adjustments help maintain upgrade compatibility, reduce config bloat, and make it easier to adopt new defaults.

Closes: #16523

Signed-off-by: raaizik <132667934+raaizik@users.noreply.github.com>
Co-Authored-By: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit f6c734a576)
2025-10-16 19:14:59 +00:00
Travis Nielsen aeda710840 pool: skip setting the target size ratio to 0 by default
The target size ratio is currently always being set to 0, when
neither the legacy targetSizeRatio nor the parameter for
target_size_ratio are set. In this case, we should not set it to 0,
but rather should skip the command to set the target size ratio.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 938380734d)
2025-10-16 17:00:34 +00:00
Travis Nielsen dd3d6109c0 Merge pull request #16604 from rook/mergify/bp/release-1.18/pr-16595
core: fix ceph health check up status check (backport #16595)
2025-10-15 14:30:15 -06:00
Travis Nielsen 7460c3d44f Merge pull request #16605 from rook/mergify/bp/release-1.18/pr-16593
doc: add recovery steps for topology based pools (backport #16593)
2025-10-15 14:29:54 -06:00
Blaine Gardner 71fb066f9a Merge pull request #16606 from rook/mergify/bp/release-1.18/pr-16603
osd: allow OSD init keyring update to be best-effort (backport #16603)
2025-10-15 14:25:36 -06:00
Blaine Gardner 150f9ed6d0 Merge pull request #16608 from rook/mergify/bp/release-1.18/pr-16594
osd: add a timeout for osd create and update process (backport #16594)
2025-10-15 10:51:21 -06:00
parth-gr 1307ca16a2 osd: add a timeout for osd create and update process
if there a bit long to update osds in parallel,
we need to timeout and abort the synchronous loop
and start the cluster reconcile again from the beginning

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 4377823675)
2025-10-15 16:06:47 +00:00
Blaine Gardner a2176e89d7 osd: allow OSD init keyring update to be best-effort
When OSDs start, init containers attempt to get the latest CephX key for
the OSD to allow OSDs to potentially continue working after key rotation.

However, in Ceph corner cases, mons could be unavailable while OSDs
could still be viable with existing on-disk keys. Since key rotation is
a rare event, it's likely that the on-disk keys are still good.

The worst case scenario is that key updates were needed but didn't
succeed in init containers. In this case, instead of the init container
failing, the OSD startup will fail instead. Thus, this should introduce
no extra risk but merely shift the failure to a different container.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit d9d31fe527)
2025-10-14 19:00:44 +00:00
parth-gr efddcabd7d doc: add recovery steps for topology based pools
Added a recovery steps for replica-1 pool
if the osd went down

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 17fd9ba1e1)
2025-10-14 16:40:36 +00:00
parth-gr b09e3941e1 external: add cluster connected condition in case of external mode
external mode was dependednt on the ceph status to
update the cluster connected condition,
BUt as now the status check will only update the ceph status,
so we will explicitly update the ceph status condition in the
end of the reconcile

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 3f5ebe2f4f)
2025-10-14 16:38:31 +00:00
parth-gr d267bbf710 core: fix cep health check up status check
currently the health checkup was reporting the
condition and reason to be always connected,
But which might not be the case,
So instead of that dont report the condition and
its phase during the health checkups

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 454c221c53)
2025-10-14 16:38:31 +00:00
subham rai 8a0f22d5fc Merge pull request #16590 from rook/mergify/bp/release-1.18/pr-16507
fix: add missing labels to RBAC resources to prevent ArgoCD drift (backport #16507)
2025-10-13 15:56:56 +05:30
fullstackjam 89c316cd68 helm: add missing labels to ConfigMap, SCC, and ServiceAccount resources
Add consistent metadata labels to resources that were missing them:
- configmap.yaml: Add labels to rook-ceph-operator-config ConfigMap
- securityContextConstraints.yaml: Add labels to both rook-ceph and rook-ceph-csi SCCs
- serviceaccount.yaml: Add labels to 6 CSI ServiceAccounts that were missing them

All new labels use the unified library.rook-ceph.labels template for consistency.
Regenerated deploy/examples/common.yaml and deploy/examples/csi/nfs/rbac.yaml
to reflect the updated label definitions.

This addresses reviewer feedback about missing labels in non-RBAC resources
and ensures consistent labeling across all Rook Ceph Helm chart resources.

Signed-off-by: fullstackjam <fullstackjam@outlook.com>
(cherry picked from commit 8656bd493c)
2025-10-09 17:29:36 +00:00
fullstackjam 263f939371 helm: add missing labels to RBAC resources to prevent ArgoCD drift
This PR addresses ArgoCD drift detection issues by adding consistent
metadata labels to RBAC resources in Rook Ceph Helm charts. The problem
occurs because many RBAC resources lack metadata labels, causing ArgoCD
to interpret them as 'labels: null' and report continuous drift.

Changes made:
- Added consistent labels to all RBAC templates in rook-ceph and library charts
- Created _recommended-labels.tpl template for standardized labeling
- Removed app.kubernetes.io/component label per consideRatio feedback to avoid scope creep
- Suppressed Helm-specific labels (version, instance, managed-by, created-by, chart) from static RBAC files
- Regenerated deploy/examples/common.yaml and deploy/examples/csi/nfs/rbac.yaml

Labels added to RBAC resources:
- operator: rook
- storage-backend: ceph
- app.kubernetes.io/name: rook-ceph
- app.kubernetes.io/part-of: rook-ceph-operator

Impact:
- Resolves ArgoCD 'OutOfSync' issues for Rook RBAC resources
- Improves resource identification and management
- Provides consistent labeling across all Rook Helm charts
- No functional changes to RBAC permissions
- Focuses on essential labels to avoid over-engineering

This addresses review feedback from travisn and consideRatio to maintain
scope and ensure static RBAC files only contain meaningful labels.

Signed-off-by: fullstackjam <fullstackjam@outlook.com>
(cherry picked from commit f635d96ae9)
2025-10-09 17:29:35 +00:00
subham rai 2c7b515886 Merge pull request #16587 from rook/mergify/bp/release-1.18/pr-16540
mon: update the clusterinfo with v2 port (backport #16540)
2025-10-09 12:27:32 +05:30
subham rai 54612b551b Merge pull request #16586 from rook/mergify/bp/release-1.18/pr-16556
operator: Allow overriding MDS cache memory limit. (backport #16556)
2025-10-09 12:26:59 +05:30
parth-gr 58f5cc4f48 mon: update the clusterinfo with v2 port
currently we are updating the mon endpoints
and using it with rook-ceph-csi cm,
But we need latest ports in the cluster info,
during the creation of the ceph connection cr
when csi operator is enabled,
so ceph connection cr can use the latest mons ports

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 76a7132c56)
2025-10-08 18:19:31 +00:00