Commit Graph
12679 Commits
Author SHA1 Message Date
Michael Adam dde4afd993 build: update release version to v1.18.1
For the patch release update the examples and docs
to v1.18.1

Signed-off-by: Michael Adam <obnox@samba.org>
2025-08-29 18:37:56 +02:00
Travis Nielsen a3df18d58b Merge pull request #16410 from rook/mergify/bp/release-1.18/pr-16382
csi: add watcher for cm cluster controller (backport #16382)
2025-08-29 10:07:00 -06:00
Travis Nielsen f216bc4919 Merge pull request #16411 from rook/mergify/bp/release-1.18/pr-16373
helm: recreate storage class with helm upgrades only for v1.18.x (backport #16373)
2025-08-29 10:06:47 -06:00
Travis Nielsen a8c130e903 Merge pull request #16412 from rook/mergify/bp/release-1.18/pr-16381
csi: delete csi operator CR's when disabled (backport #16381)
2025-08-29 10:06:33 -06:00
subhamkrai 6339c574c7 csi: delete csi operator CR's when disabled
this commit deletes csi operator CR's when
user wants to revert back to csi driver for
some reasons. This commits deletes CR's like
`clientProfile, cephConnection, driver,
operatorConfig, and clientProfileMapping`.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 3b7a7b8958)
2025-08-29 14:32:48 +00:00
parth-gr e2707ddf7e helm: recreate sc with helm upgrades
during upgrade there can be change in sc paramaters,
as storageclass are immutable, we need to recreate them

closes: https://github.com/rook/rook/issues/16362
Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit c8003bfef7)
2025-08-29 14:27:46 +00:00
subhamkrai 8ff513e8ae csi: add watcher for cm cluster controller
this commit add watcher for cm `rook-ceph-operator-config`
to look for updated value of `ROOK_USE_CSI_OPERATOR` before
adding this watcher we had to restart rook operator pod
so that it reconciles and create cephConnection CR.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit dd6693ff97)
2025-08-29 14:24:43 +00:00
subham rai ab01227c55 Merge pull request #16407 from rook/mergify/bp/release-1.18/pr-16405
csi: Set csi operator as default if no settings found (backport #16405)
2025-08-29 14:50:51 +05:30
Travis Nielsen 7c2347b30c csi: cleanup formatting of csi log statement
The csi key creation was not correctly logging params

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0a9262e73b)
2025-08-29 07:58:35 +00:00
Travis Nielsen 904881bd74 csi: set csi operator as default if no settings found
If the ROOK_USE_CSI_OPERATOR setting is not found in the
rook-ceph-operator-config configmap, the default now
is to use the csi operator instead of the previous
csi driver

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b2b28e1280)
2025-08-29 07:58:35 +00:00
Travis Nielsen 389cd2327b Merge pull request #16404 from rook/mergify/bp/release-1.18/pr-16399
csi: Set the cephfs kernel mount options when network encryption is enabled (backport #16399)
2025-08-28 12:17:57 -06:00
Travis Nielsen 2c3543a292 csi: default to secure kernel mount options if network encrypted
If the network is encrypted with msgr2, cephfs requires
the mount options to include ms_mode=secure. Now this
will be set by default if the mount options are not
already set in the cephcluster CR or the operator env
var CSI_CEPHFS_KERNEL_MOUNT_OPTIONS.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 6309cd367e)
2025-08-28 16:28:06 +00:00
Travis Nielsen ea8270fd82 csi: set kernel mount options from env var if not in cluster spec
If the cephfs kernel mount options are not specified in the
cephcluster.spec.csi CR settings, fall back to the setting
in the operator env var CSI_CEPHFS_KERNEL_MOUNT_OPTIONS.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit eeebfbf496)
2025-08-28 16:28:06 +00:00
Travis Nielsen e7d0cfdfa0 csi: update client profile when changing
The csi client profile CR needed to be updated if
the spec changed. Previously, the client profile was never
being updated because it was calling Update() on the
existing CR retreived from Get(), rather than with
the updated spec.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit cc39368964)
2025-08-28 16:28:06 +00:00
Travis Nielsen e719ea2307 Merge pull request #16397 from rook/mergify/bp/release-1.18/pr-16396
csi: fix wrong use of daemon config for cephx status (backport #16396)
2025-08-27 20:50:03 -06:00
Blaine Gardner 1872784128 csi: fix wrong use of daemon config for cephx status
Fix a wrong usage of the CephX daemon config that should be CephX CSI
config.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 480b407bc2)
2025-08-27 21:15:27 +00:00
Travis Nielsen 96d7141c2c Merge pull request #16394 from rook/mergify/bp/release-1.18/pr-16393
csi: Always initialize CSI driver names (backport #16393)
2025-08-27 12:35:44 -06:00
Travis Nielsen d25ae43bb6 csi: always initialize driver names
The driver names were only being initialized in certain code paths
where the drivers were being started and stopped. However, another
code path relied on those names being set. Now, we initialize the
driver names every time the CSI params are initialized, instead of
initializing the names separately.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit af548ef2f6)
2025-08-27 17:48:19 +00:00
subham rai 2065d929e8 Merge pull request #16380 from rook/mergify/bp/release-1.18/pr-16376
csi: Generate default crush topology labels (backport #16376)
2025-08-26 14:23:03 +05:30
Travis Nielsen 3a4b81250a csi: generate default crush topology labels
The csi read affinity requires the crush topology labels
to be specified in the cephconnection CR. If they are
not specified by the user, rook can generate the default
topology labels instead of expecting them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 79e067ec05)
2025-08-26 08:06:41 +00:00
Travis Nielsen b0cab8a8d1 Merge pull request #16360 from obnoxxx/release-1.18-prep-v1.18.0
build: update release version to v1.18.0
v1.18.0
2025-08-20 14:17:32 -06:00
Michael Adam ec6b3037f5 build: update release version to v1.18.0
For the minor release update the examples and docs
to v1.18.0

Signed-off-by: Michael Adam <obnox@samba.org>
2025-08-20 19:09:25 +02:00
Travis Nielsen fbebb5d257 Merge pull request #16358 from rook/mergify/bp/release-1.18/pr-16343
helm: Enable host network for OpenShift if needed (backport #16343)
2025-08-20 10:47:36 -06:00
Blaine Gardner 5a92934b65 Merge pull request #16356 from rook/mergify/bp/release-1.18/pr-16336
csi: fix the prior key count for csi key rotation (backport #16336)
2025-08-20 10:39:19 -06:00
Travis Nielsen 026a7d074b helm: enable host network for openshift if needed
The securityContextConstraints require setting whether
host networking and host port access is needed by the
ceph cluster service accounts. The helm chart now allows
enabling this mode with the settings:
rook-ceph chart: useOperatorHostNetwork: true
rook-ceph-cluster chart: cephClusterSpec.network.provider: host

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 82262a8472)
2025-08-20 16:12:34 +00:00
parth-gr 2844fcf9b0 csi: fix the prior key count for csi key rotation
fix the prior key count status for the csi
key rotation

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 7b5d476887)
2025-08-20 16:08:29 +00:00
Blaine Gardner d237730ee8 Merge pull request #16354 from rook/mergify/bp/release-1.18/pr-16346
CephX key rotation 1.18 cleanup (backport #16346)
2025-08-19 15:35:04 -06:00
Blaine Gardner 278741fa40 doc: add advanced cephx key rotation doc
Add a minimally useful document explaining how to initiate CephX key
rotation for users.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 52255e314c)
2025-08-19 20:56:16 +00:00
Blaine Gardner af70853894 core: allow cephx rotation for ceph 19.2.3 except mons
Allow Rook to rotate CephX keys for Ceph v19.2.3 and up with the
exception of Ceph mons. While v19.2.3 has the `ceph auth rotate` command
that Rook needs to perform key rotation, there is still ongoing work in
Ceph to change how the `mon.` key is tracked internally. Rook's mon key
rotation requires those currently-unreleased Ceph changes.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit a952b7511a)
2025-08-19 20:56:15 +00:00
Blaine Gardner 0241a57f05 core: finalize CephCluster CephX status handling
Cleanup up overall usage of CephX statuses in CephCluster.

Convert all CephX statuses to non-pointer types. There is no specific
need for pointer types, and keeping these as non-pointers means there is
not a risk of nil pointer exceptions in all the various Rook controllers
for upgraded clusters.

Move initialization of CephCluster CephX status items to
`preMonStartupActions()`. This helps resolve 2 issues:

1. 'Uninitialized' state was being set for external CephClusters where
   CephX statuses are not relevant.
2. 'Uninitialized' state was being set for upgraded clusters whose key
   status cannot be determined.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 2fd9c9a88c)
2025-08-19 20:56:15 +00:00
Travis Nielsen d9039a009c Merge pull request #16353 from rook/mergify/bp/release-1.18/pr-16352
csi: update ceph-csi to v3.15.0 (backport #16352)
2025-08-19 12:41:55 -06:00
Travis Nielsen 90c545cadb Merge pull request #16350 from rook/mergify/bp/release-1.18/pr-16320
csi: make csi-operator default deployment (backport #16320)
2025-08-19 11:31:07 -06:00
Praveen M 87331abe01 csi: update ceph-csi to v3.15.0
We have new release for Ceph-CSI v3.15.0 -
https://github.com/ceph/ceph-csi/releases/tag/v3.15.0

Signed-off-by: Praveen M <m.praveen@ibm.com>
(cherry picked from commit 5fc4e15bb1)
2025-08-19 17:31:02 +00:00
subhamkrai 6b57857f1c ci: run csi-operator only in canary and upgrade suite
this commit add check to only run the csi-operator in
all the canary tests and upgrade suite only, other suite
like smoke and object will still test csi-driver.

Also, adding changes to make CI happy.

Signed-off-by: subhamkrai <srai@redhat.com>
Co-Authored-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit c57a47f774)
2025-08-19 13:31:45 +00:00
subhamkrai 92e56d3a31 csi: make csi-operator default deployment
this commits enable the csi-operator by default,
moving it from experimental to stable.

Also, disable the csi-operator chart from generating
rbac in common.yaml

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 506ac2a3ff)
2025-08-19 13:31:44 +00:00
subham rai 2f518812de Merge pull request #16345 from rook/mergify/bp/release-1.18/pr-16313
core: rotate fs mirror daemon cephx key (backport #16313)
2025-08-19 11:56:09 +05:30
Travis Nielsen 0dea03818e Merge pull request #16344 from rook/mergify/bp/release-1.18/pr-16340
build(deps): bump snyk/actions from 77490d94e966421e076e95ad8fa87aa55e5ca409 to 86b1cee1b8e110a78d528b3e1328a80e218111d2 (backport #16340)
2025-08-18 15:22:15 -06:00
Santosh Pillai 4e28392642 core: rotate fs mirror daemon cephx key
Rotate fs mirror daemon cephx keys based on the cephXconfig in the
cephcluster spec and also update the fs mirror status with the latest
cephxStatus

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 8df6b8d0d0)
2025-08-18 21:18:31 +00:00
dependabot[bot] 82991f74a1 build(deps): bump snyk/actions
Bumps [snyk/actions](https://github.com/snyk/actions) from 77490d94e966421e076e95ad8fa87aa55e5ca409 to 86b1cee1b8e110a78d528b3e1328a80e218111d2.
- [Release notes](https://github.com/snyk/actions/releases)
- [Commits](https://github.com/snyk/actions/compare/77490d94e966421e076e95ad8fa87aa55e5ca409...86b1cee1b8e110a78d528b3e1328a80e218111d2)

---
updated-dependencies:
- dependency-name: snyk/actions
  dependency-version: 86b1cee1b8e110a78d528b3e1328a80e218111d2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 46d44ff2a5)
2025-08-18 21:15:28 +00:00
Travis Nielsen 86a262145b Merge pull request #16342 from rook/mergify/bp/release-1.18/pr-16258
docs: CSI operator deployment documentation (backport #16258)
2025-08-18 15:13:27 -06:00
Travis Nielsen aec406c2d8 docs: csi operator deployment documentation
With the csi operator becoming the default for deployment,
the docs are now updated with the details in the quickstart
guide and upgrade guide to help with the transition.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b856338c5e)
2025-08-18 13:59:16 -06:00
Travis Nielsen 480c9803a0 Merge pull request #16337 from rook/mergify/bp/release-1.18/pr-16311
security: Configure sccs for the ceph-csi operator (backport #16311)
2025-08-18 13:32:14 -06:00
Travis Nielsen 10c888200e security: configure sccs for the csi operator
The CSI operator requires the SecurityContextConstraints to
be configured for the service accounts that have a different
name from the previous CSI driver, both via the manifest install
and the helm install.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit cb6da09a44)
2025-08-18 14:23:37 +00:00
Travis Nielsen e351fb04cf Merge pull request #16334 from rook/mergify/bp/release-1.18/pr-16329
pool: fix cephblockpool remove when related pool is already removed (backport #16329)
2025-08-15 15:21:45 -06:00
Denis Egorenko f21cd80606 pool: fix cephblockpool remove when related pool is already removed from cluster
When removeing CephBlockPool check first that related ceph pool is exist in cluster,
since it may be manually removed by mistake.

Related-Issue: #16328
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
(cherry picked from commit c9e0f89a8b)
2025-08-15 19:46:18 +00:00
Blaine Gardner 8dc0af17b7 Merge pull request #16332 from rook/mergify/bp/release-1.18/pr-16176
mon: rotate cephx key (backport #16176)
2025-08-15 13:05:47 -06:00
Blaine Gardner c87934950f Merge pull request #16331 from rook/mergify/bp/release-1.18/pr-16070
core: option to override the ceph user name in cephClient CR (backport #16070)
2025-08-15 11:41:20 -06:00
Santosh Pillai bfe8d50db6 mon: rotate keys
rotate mon daemon keys and update the cephx status for mons in the
cephcluster resource.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit fe42fe102f)
2025-08-15 17:07:19 +00:00
Madhu Rajanna a783abbac1 core: implement client name override
There is a field in the CR spec to override
the name and the feature was not implement,
This commits adds the support to override the
cephclient name if ever required.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit a71cc27b72)
2025-08-15 16:55:16 +00:00
Madhu Rajanna 3d1afc7788 core: skip Name validation
the CR cannot be created without a Name,
Removing the check as it never gets executed.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 36c84aa43c)
2025-08-15 16:55:16 +00:00